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

Tab Completion #8

Closed
hamon-e opened this issue Jan 19, 2018 · 3 comments
Closed

Tab Completion #8

hamon-e opened this issue Jan 19, 2018 · 3 comments

Comments

@hamon-e
Copy link

hamon-e commented Jan 19, 2018

This command broke circular tab completion

bind -M $_pisces_bind_mode \t _pisces_complete

See this example,
(first command pressing lot of TAB)
(second command pressiong lot of SHIFT-TAB)
https://asciinema.org/a/bShqIYrla3TCMwILAyAZShYRs

As we can see the first completion doesn't return to the beginning

@laughedelic
Copy link
Owner

laughedelic commented Jan 21, 2018

Hi @hamon-e! This reminds me of an issue I opened in the fish-shell repo a time ago: fish-shell/fish-shell#4331. So the problem comes from some general inconsistencies in the Fish pager. You can see that _pisces_complete function uses builtin down-or-serach when in the pager:

if commandline --paging-mode
down-or-search
else

It's also used by ^N in the standard keybindings. So I think the problem with navigation is in that function. I guess, I didn't notice that the plugin makes it worse, because I usually use ^N/^P to navigate completions and it behaves the same with or without pisces.

I agree that it's annoying, but I don't have a workaround at the moment, except of rebinding \t back in your config:

bind \t complete

(with -M insert if you're using vi/hybrid keybindings)

It would be nice if you reported this problem back to the fish-shell repo. Or at least comment on that old issue to draw some attention to it again.

@hamon-e
Copy link
Author

hamon-e commented Jan 22, 2018

Well i had already opened an issue so i just commented it

fish-shell/fish-shell#4669

@laughedelic
Copy link
Owner

Great! I'm closing it here then. It seems that fish-shell/fish-shell#4680 should fix it in Fish v3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants