Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be smarter about where antidote install writes within zsh_plugins.txt #60

Open
mattmc3 opened this issue Sep 3, 2022 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@mattmc3
Copy link
Owner

mattmc3 commented Sep 3, 2022

Some plugins like history-substring-search and zsh-syntax-highlighting like to be loaded last. antidote install just puts plugins at the bottom of the list in .zsh_plugins.txt. Let's add a simple barrier detection that users can put in their bundle file to tell antidote where to put new plugins:

rupa/z
zsh-users/completions

# < new plugins get inserted here because ### FOOTER ### line detected
### Footer ###

zsh-users/zsh-syntax-highlighting
zsh-users/zsh-history-substring-search

I'm not happy with the word "footer", but this is fine for now. Just something where the user can indicate where new installs go if they choose to. Otherwise, it goes at the end like it does today.

@mattmc3 mattmc3 added the enhancement New feature or request label Sep 3, 2022
@mattmc3
Copy link
Owner Author

mattmc3 commented Sep 6, 2022

One other idea: start off with some character-based text barrier: ### ^^^ ### and then add a zstyle to customize it. It's such a little feature for only a few advanced users, it's not worth too much hand wringing to get it just perfect.

@mattmc3 mattmc3 changed the title Be smarter about where antidote install puts new plugins Be smarter about where antidote install writes within zsh_plugins.txt Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant