-
-
Notifications
You must be signed in to change notification settings - Fork 591
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
[QUESTION] filter_mode is "directory" but zsh-autosuggestions are global #1769
Comments
To your first question, atuin has no suggestions so zsh is looking at your second option - pulling from your zsh history. Feel free to disable that if that's what you'd prefer. To your second unrelated question: if you disable the up arrow for atuin, then the up/down scrolling pulls from your zsh history and not from atuin. There has been consideration for adding up/down scrolling as a new feature but it is not yet implemented. See #798 if you want to set it up yourself. |
The example above used
Awesome! I've read through that discussion and it sounds like there's clear enthusiasm for it. Would love to see it implemented! |
Ya know what, as I putz around for other examples to share, I'm starting to wonder if I have been imagining things all along... There have definitely been cases where the autosuggestions did not seem per-directory, but then I just opened Now that I'm taking the time to carefully curate some unambiguous examples, I'm struggling to actually reproduce the problem I described at the outset! I will close this issue for now and reopen if and only if I am no longer seeing smoke and mirrors. Sorry for the goose chase! |
@arcuru Okay, I think I've seen through the smoke and mirrors, but your earlier reply may inadvertently cleared it up! Let me just confirm... You said:
With the However, it seems that Consider this example (apologies for the production quality, apparently I'm not a great screenshotter): example.movWhat I've tried to demonstrate are two scenarios:
My initial Have I understood how it all works? If so, I suppose my confusion comes from the fact that with the |
Yes, that is what I meant when I said
To get the behavior you're expecting you should change To be fair, it does seem a little bit strange with how we've setup the fallback to go to your zsh history by default... |
Okay great, thanks so much for clarifying! In the end, while I in fact was not imagining things (phew!), I was misunderstanding exactly how So it seems that only my brain/expectations need to be updated here, not Thanks again! |
Sorry to pollute the issue space with this one which is probably particular to me. But it's killing me and I'm not sure how else to get definitive answers.
So far as I can tell, my system is completely up to date with respect to both
atuin
andzsh-autosuggestions
:Furthermore, my
atuin
config specifies"directory"
as the filter mode:Lastly,
ZSH_AUTOSUGGESTIONS
listsatuin
as the first entry:Despite all this, when I begin to type a command in a directory, the completions
zsh-autosuggestions
provides seem to come from my global history.Why might
zsh-autosuggestions
not be utilizingatuin
's "directory" history as per myfilter_mode
setting, despite what theatuin
docs say?And finally, just for good measure:
I have one other - partially-related - question, which I will tack on here to avoid further polluting the issue space.
I moved to
atuin
fromper-directory-history
, which can also toggle between global and directory modes likeatuin
.When using the
per-directory-history
with directory mode enabled, the up/down arrows would scroll through only those commands run from the given$PWD
. Is it possible to enable the same usingatuin
? Because for me, althoughatuin
opens in "directory" mode, up/down scrolling seems to pull from my global history.Apologies if this is already addressed somewhere!
Note
I know it's possible to open
atuin
with the up arrow keybinding, but this isn't what I'm asking.After running
atuin init
with--disable-up-arrow
, I'm wondering if it's possible to still apply myfilter_mode
settings to filter commands when up/down arrowing.The text was updated successfully, but these errors were encountered: