You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
improve the experience of using fish over mosh #1363
Is there a way to turn off autosuggest? I find it really disturbing when using fish.
Please note
The original request, disabling autosuggestions, is being handled in issue #102. This issue has morphed into a request for improving the experience of using fish over a mosh connection.
There is no way to turn auto suggestions off. Auto suggestions are meant to help you writing commands more quickly. Is there any specific reason you don't find them useful ?
They dont provide any more information or make me faster in the command line. I keep thinking about what it shows me and that actually makes me slower and stops my current thought pattern.
Reacted by Artem Sapegin, hupfdule, Savvy Raghuvanshi, Coco and Jon Deaton
One workaround is to make color of autosuggestion same as background color of terminal, although it would still show first character of the autosuggestion under cursor.
Is there any way we can improve auto suggestions so that they suit your usage pattern ?
Thinking briefly i dont think so. I like the minimalistic feeling of working in a "shell" where i get stuff that helps me but stays out of the way like syntax highligting and the searching by writing a part of a previous command and using the up keys. Also some part of my brain think that it must be costly to do autosuggest.
The hope for this feature is that it is not intrusive on either your attention or compute resources. Maybe the autosuggestion color contrasts too strongly against your terminal background? You might find it less objectionable to tweak the color to reduce that contrast.
I'd also vote to add an option to disable autosuggest. In fact, I reinstalled fish recently and looked for this option for quite a while before I realized that auto suggestions can not be disabled. henrikbjorn's comment summarized my feelings about this feature quite well, I too find the suggestions highly distracting. I am confident enough in my environment not to need them, and the suggestions disturb my "mental flow", so to speak. When typing in my regular shell, I type blindly most of the time, only focussing on the input line of the terminal after pressing ENTER. Each time an autosuggestion is displayed, it forces me to unwillingly redirect my attention away from whatever I was looking at previously (be it some previous terminal output, or any one of my other windows / monitors) to focus on something that signals it requires my attention through visual change, i.e. the auto suggestions. In fact, this is a major reason which has prevented me from adapting fish as my main shell so far.
I would like to add my vote for this feature. My reason is a little different, but I'm doing some screen recording at the moment to provide tutorials, and all of my history ends up leaking into these recordings. At best, that is distracting for users, at worst that is leaking private information. All I can do for now is move my history aside before starting screen recording, where it would be easier if I could just turn history based autosuggestions off.
Reacted by Alexey Alekhin, ᴀɴᴛᴏɴ ɴᴏᴠᴏᴊɪʟᴏᴠ, Viktor Eriksson, Marvin Gao, Benny Michaels, Kevin Corcoran, Jessica Canady, Tux3, Jason Nader, Varun Arora and 4 more
I'll just pile on here with my own reasons for wanting to disable this. I actually gave up on fish a few years ago because of this exact issue and came back recently having forgotten why. Turns out it's still a problem.
It has never been useful for me. Surely I can't be the only one. The suggestions are almost always bad. For example, if I'm trying to cd somewhere, the chances are one in a million of fish guessing correctly. That's not fish's fault, of course, it's just that I obviously have a lot of directories. But that makes fish trying to guess much more annoying than it would otherwise be. It's visual noise with no benefit. If there are specific commands that I use often enough for fish to know about them, I almost certainly already have an abbreviation or alias bound to them.
Because I mostly work on a laptop, my arms are a little more cramped than someone working on a large keyboard at a desk might be. I prefer to keep my hands on or around the home row at all times, so I don't really use the arrow keys much. This makes accepting fish's suggestions much harder than it would otherwise be.
Visually the feature is rather alarming. Suppose I type cd because I want to go back to my home directory. Instantly, before I can press enter, fish has given me a suggestion (a wrong one of course, see point 1). Now I am looking at the text cd /path/to/somewhere and I mentally have to remind myself that it's still okay to hit enter. I don't like double-taking at my own terminal prompt every time I use it, even if I could eventually get used to this.
The feature overlaps too heavily with tab completion. If I'm in my home directory and type cd D fish immediately fills in ownloads. Great, I think, fish can probably complete that directory name, so I press tab. (Remember that I don't press the arrow key if I can help it, see point 2.) But no, I sadly learn that I have three different directories in my $HOME that begin with D, so tab completing didn't get me a single letter. If I hadn't been cued to take a "smart" interaction by seeing the suggestion text, I would have just kept typing and gotten where I wanted to go faster.
As others have said, it's also rather distracting. If you type quickly the suggestions tend to "flicker" by, which is annoying. Obviously this is subjective, but this is also the point that the largest number of users have made about it. Personally I find it difficult to context switch between telling the computer what to do (by typing) and responding to a suggestion.
We're sensitive to the fact that shells are highly personal. fish allows customization in some areas (font, prompt, key bindings) but not others. The line is subjective and there's close calls, but as a general principle we don't have "disable the feature entirely" as a configuration option. If a feature isn't good enough to be on by default, it shouldn't be in the shell; a weaker form is that if you have to introduce the feature with an option to disable it, it probably shouldn't be in the shell.
On the basis of the argument I've given, and taking the above point for granted, I would say that autocompletions shouldn't be in the shell. Now, that's rather outrageous, certainly. I'm sure the developers of fish and many users do like the autocompletions, they don't find them distracting / annoying / useless, and believe that they are "unobtrusive". The thing is, I'm sympathetic! I'm sure they do find these feature unobtrusive. But that's exactly why configurability would be of great advantage. If there's a feature that is of immense value to some users and makes the program unusable for others, that's the exact case where a toggle is ideal.
I would argue, furthermore, that the autocompletions are more or less part of the "prompt", which the above quote identifies as one area in which users understandably want customization. We're talking about something that literally appears on the prompt line next to your text as you type. I'm not asking anyone to go "full zsh", I think there's really no slippery slope here at all. We're talking about a single toggle for a feature that is certainly (given this thread) highly controversial.
Activity
siteshwar commentedon Mar 25, 2014
There is no way to turn auto suggestions off. Auto suggestions are meant to help you writing commands more quickly. Is there any specific reason you don't find them useful ?
henrikbjorn commentedon Mar 25, 2014
They dont provide any more information or make me faster in the command line. I keep thinking about what it shows me and that actually makes me slower and stops my current thought pattern.
siteshwar commentedon Mar 25, 2014
One workaround is to make color of autosuggestion same as background color of terminal, although it would still show first character of the autosuggestion under cursor.
Is there any way we can improve auto suggestions so that they suit your usage pattern ?
henrikbjorn commentedon Mar 25, 2014
Thinking briefly i dont think so. I like the minimalistic feeling of working in a "shell" where i get stuff that helps me but stays out of the way like syntax highligting and the searching by writing a part of a previous command and using the up keys. Also some part of my brain think that it must be costly to do autosuggest.
ridiculousfish commentedon Mar 26, 2014
The hope for this feature is that it is not intrusive on either your attention or compute resources. Maybe the autosuggestion color contrasts too strongly against your terminal background? You might find it less objectionable to tweak the color to reduce that contrast.
qjcg commentedon Sep 27, 2014
Just want to add my vote for an autosuggestions disable.
zanchey commentedon Sep 28, 2014
Could you give us some idea of why?
qjcg commentedon Sep 29, 2014
I mostly find autosuggestions distracting, and my use of the following features makes autosuggestions redundant much of the time:
jovaha commentedon Nov 5, 2014
I also think this should be optional. I think i would be less intrusive if it didn't change the case of what the user has entered.
For example:
If i type
set $pfish changes it to
set $P|AGERwhere | denotes what is highlighted as autosuggested. this is confusing because what is displayed as already entered is not what would be executed.
mzmm70000 commentedon Nov 15, 2014
I'd also vote to add an option to disable autosuggest. In fact, I reinstalled fish recently and looked for this option for quite a while before I realized that auto suggestions can not be disabled. henrikbjorn's comment summarized my feelings about this feature quite well, I too find the suggestions highly distracting. I am confident enough in my environment not to need them, and the suggestions disturb my "mental flow", so to speak. When typing in my regular shell, I type blindly most of the time, only focussing on the input line of the terminal after pressing ENTER. Each time an autosuggestion is displayed, it forces me to unwillingly redirect my attention away from whatever I was looking at previously (be it some previous terminal output, or any one of my other windows / monitors) to focus on something that signals it requires my attention through visual change, i.e. the auto suggestions. In fact, this is a major reason which has prevented me from adapting fish as my main shell so far.
ocharles commentedon Sep 10, 2015
I would like to add my vote for this feature. My reason is a little different, but I'm doing some screen recording at the moment to provide tutorials, and all of my history ends up leaking into these recordings. At best, that is distracting for users, at worst that is leaking private information. All I can do for now is move my history aside before starting screen recording, where it would be easier if I could just turn history based autosuggestions off.
gitkalz commentedon Jan 16, 2016
I would vote to have an option to Disable autosuggest too .. +1
faho commentedon Jan 16, 2016
@kalzi: The important thing is not a vote - on its own that's rather meaningless.
The important thing is: Why would you like to disable it?
51 remaining items
Add a --private option to launch fish in private mode
rdw20170120 commentedon Sep 10, 2021
lmfont commentedon Sep 14, 2021
I'll just pile on here with my own reasons for wanting to disable this. I actually gave up on fish a few years ago because of this exact issue and came back recently having forgotten why. Turns out it's still a problem.
It has never been useful for me. Surely I can't be the only one. The suggestions are almost always bad. For example, if I'm trying to
cdsomewhere, the chances are one in a million of fish guessing correctly. That's not fish's fault, of course, it's just that I obviously have a lot of directories. But that makes fish trying to guess much more annoying than it would otherwise be. It's visual noise with no benefit. If there are specific commands that I use often enough for fish to know about them, I almost certainly already have an abbreviation or alias bound to them.Because I mostly work on a laptop, my arms are a little more cramped than someone working on a large keyboard at a desk might be. I prefer to keep my hands on or around the home row at all times, so I don't really use the arrow keys much. This makes accepting fish's suggestions much harder than it would otherwise be.
Visually the feature is rather alarming. Suppose I type
cdbecause I want to go back to my home directory. Instantly, before I can press enter, fish has given me a suggestion (a wrong one of course, see point 1). Now I am looking at the textcd /path/to/somewhereand I mentally have to remind myself that it's still okay to hit enter. I don't like double-taking at my own terminal prompt every time I use it, even if I could eventually get used to this.The feature overlaps too heavily with tab completion. If I'm in my home directory and type
cd Dfish immediately fills inownloads. Great, I think, fish can probably complete that directory name, so I press tab. (Remember that I don't press the arrow key if I can help it, see point 2.) But no, I sadly learn that I have three different directories in my $HOME that begin with D, so tab completing didn't get me a single letter. If I hadn't been cued to take a "smart" interaction by seeing the suggestion text, I would have just kept typing and gotten where I wanted to go faster.As others have said, it's also rather distracting. If you type quickly the suggestions tend to "flicker" by, which is annoying. Obviously this is subjective, but this is also the point that the largest number of users have made about it. Personally I find it difficult to context switch between telling the computer what to do (by typing) and responding to a suggestion.
On the basis of the argument I've given, and taking the above point for granted, I would say that autocompletions shouldn't be in the shell. Now, that's rather outrageous, certainly. I'm sure the developers of fish and many users do like the autocompletions, they don't find them distracting / annoying / useless, and believe that they are "unobtrusive". The thing is, I'm sympathetic! I'm sure they do find these feature unobtrusive. But that's exactly why configurability would be of great advantage. If there's a feature that is of immense value to some users and makes the program unusable for others, that's the exact case where a toggle is ideal.
I would argue, furthermore, that the autocompletions are more or less part of the "prompt", which the above quote identifies as one area in which users understandably want customization. We're talking about something that literally appears on the prompt line next to your text as you type. I'm not asking anyone to go "full zsh", I think there's really no slippery slope here at all. We're talking about a single toggle for a feature that is certainly (given this thread) highly controversial.
krobelus commentedon Sep 14, 2021
You can use
Ctrl+Finstead of RIght Arrow to accept autosuggestionsrdw20170120 commentedon Sep 14, 2021
faho commentedon Sep 14, 2021
@rdw20170120 Please move that elsewhere. This is for discussing fish, not other shells.
Honestly, this issue has been going in circles for a while now (and mosh seems to be dormant), so I'm locking it
CHANGELOG updates for 3.4.0