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 special input function #3424
Comments
For me hitting the escape key works to "back out". |
(Annoyingly though, it used to be instant but the delay added in recent times adds some inertia you must fight to do this.) |
We can undoubtedly do better here but as a quick-fix if you're not using vi-mode does |
|
It may make sense to have vi mode and emacs mode have different behavior here? |
@floam: They already do. emacs mode timeout is lower than vi. @gertcuykens: What I would suggest here is, instead of some weird variable (which is something we try to keep to a minimum) a different bind command - "complete-no-page" or something like that. This will need changes to the c++ code, specifically reader.cpp. |
You mean like |
What if delete did the same as escape here: close the menu and restore the command line? That seems natural to me. |
Also very nice idea :D and probably better solution then mine, but is it much work to implement? I would like to try it out :D |
You can do it with bindings like so:
|
This is sooo much better, thanks :D I even think floam will like this beacuse its instand without delay. Please consider this default, I am sure allot of people are going to like this :) |
I dig it. Delay aside, this makes a lot of sense to me on backspace. |
We already have some logic in the C++ to end paging on backspace; probably that's where this should be fixed. |
This seems basically solved with the changes to the pager system - we no longer search immediately, so it's much easier to get out of the pager. |
Thanks for this amazing cleanup of old issues 😍 |
I would like to set a rule that pressing tab will block at the input cmd line if there are multiple suggestions and just wait for me to manually press the down button to go into the select menu or wait for me to simple start typing more characters.
Example fish, version 2.3.1
Until now everything fine but here's where I get frustrated a little :)
Once you are in the menu you can't go back to the letters you typed. Meaning you have to back space all the way back to the letter
h
if you wanted to typehi
for example instead ofhe
Al I ask is a config rule that stops tab from entering the menu and simple stop doing anything at all unless there is only one possible completion left or I press the down button manually to select.
The tab should just be ignored until I type more text or press the down arrow to go into the menu.
My proposal is a
set fish_tab wait
that enables tab to wait for more key characters behavior.Or to put it in other words tab never goes into menu mode without pressing the down arrow :) , just showing more suggestions is no problem if there are many more but the cursor and cmd input line should not change.
PS A similar style of tab completion can be tested by using vscode for example, where tab always completes the first solution and never goes into menu mode no matter how many solutions there are. It does show the menu but tab never goes in it.
EDIT: faho idea for a new special bind function instead of flag is way better
https://fishshell.com/docs/current/commands.html#bind
EDIT2: ridiculousfish idea backspace exit like esc is the best so far I think
The text was updated successfully, but these errors were encountered: