Are you open to PRs for to make either of these configurable? #520
Replies: 2 comments
-
To revert to the default functionality of zle -N {,.}history-incremental-search-backward I’d be happy to accept a pull request for documenting this in the example It looks like your terminal’s color scheme renders bright yellow as gray, which is nonstandard, to say the least. I’d be open to making this highlighting configurable, though. You’d have to add a new Overall, looking at your code, I think you made more changes than is necessary. When writing a pull request, try to adhere to the following principles: |
Beta Was this translation helpful? Give feedback.
-
Thanks for all this. I didn't know quite how to respond and am still finding my way through troubleshooting a bit. As is probably true for you, I don't spend all my time on my shell configuration. I just fix things when I get a few moments. I'm not sure I quite this suggestion enough to offer up a PR for documentation. The way things seemed to me when I used the following block in my zshrc was that some of the history-affecting functionality may have been disabled but things were still not quite the same as if I didn't load your plugin at all. For instance, I found
It's entirely possible this was my own mistake, but I don't feel comfortable writing documentation to suggest how to do something without understanding it. As far as the configurable highlight color, I may still send you a PR -- but that'll depend on my getting everything working with the above and my focus isn't on it at present. Thank you for the prompt response -- I apologize for not returning the favor. I'll follow back up here if I can more clearly identify the problem with my configuration and the |
Beta Was this translation helpful? Give feedback.
-
Thanks for making this nifty tool and sharing it with the world. I specifically like the idea of having completions being generated and displayed for me as I'm typing. Even in just a day I've seen completions I didn't realize I had set up. And it's a great way to get reminders about options and their meanings, even for some tools that don't have manpages.
I ran into a couple of things that didn't work as I expected or as I'm in the habit of working. I wanted to reach out and see if you're open to PRs around them and if so, to gather information about how you'd like to see them implemented.
Disabling incremental history functions
I have years of muscle memory attached to the way that the incremental history search works in zsh. I frequently hit Ctrl-R, type a few letters I think I remember from a recent command, and then Ctrl-R, Ctrl-R, Ctrl-R as I keep hopping back through history entries until I find the correct one that I wanted to run. Next I'll sometimes Ctrl-A to go to the beginning of the line and modify the command before pushing enter to execute it.
For me, I'd prefer work with out-of-the-box zsh incremental history than what's here. I don't discount the use of what you've done for others, but I wanted to the ability to turn it off.
Difficult to read colors in unambiguous mode
I'm using the "unambiguous" mode for autocompletions (i.e.
zstyle ':autocomplete:*' insert-unambiguous yes
, and in that mode there appears to be a hardcoded color that I find difficult to read in my terminal.Here's a screenshot of an ambiguous completion for me. I can't quickly read the dark text on dark background (each of which contains
pod
here). It's possible my terminal has unusual configuration to make the colors look like that -- I'm using iTerm 2 with a light solarized color scheme.Can I help?
I hacked through the above issues in probably careless fashion today so I could try out the other features of this plugin. If you're interested, you can see what I did here:
Again, these were hacks. If you're interested in adding one or both to your repo, I'd be glad to tidy them up and submit PRs.
I'm not an expert at configuring zsh, but I'm a decent bash/posix shell scripter. If you think either of these is valuable, please guide me a little in how you think I should expose the configuration (i.e. should the user set an environment variable in .zshrc? zstyle? something else?) and I'll give it a shot.
Even if you're not interested in PRs, I'd be grateful for any advice you have about implementing these changes the right way rather than the grep-and-comment-or-delete workflow I used so far.
Beta Was this translation helpful? Give feedback.
All reactions