Skip to content

improve the experience of using fish over mosh #1363

Closed

Description

@henrikbjorn

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.

Activity

  1. siteshwar commented on Mar 25, 2014

    @siteshwar
    Contributor

    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 ?

  2. henrikbjorn commented on Mar 25, 2014

    @henrikbjorn
    Author

    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.

  3. siteshwar commented on Mar 25, 2014

    @siteshwar
    Contributor

    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 ?

  4. henrikbjorn commented on Mar 25, 2014

    @henrikbjorn
    Author

    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.

  5. ridiculousfish commented on Mar 26, 2014

    @ridiculousfish
    Member

    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.

  6. added this to the milestone on Mar 29, 2014
  7. qjcg commented on Sep 27, 2014

    @qjcg
    Contributor

    Just want to add my vote for an autosuggestions disable.

  8. zanchey commented on Sep 28, 2014

    @zanchey
    Member

    Could you give us some idea of why?

  9. qjcg commented on Sep 29, 2014

    @qjcg
    Contributor

    I mostly find autosuggestions distracting, and my use of the following features makes autosuggestions redundant much of the time:

    • custom functions, fish_user_abbreviations ---> for typing less
    • history-{,token}-search-{backward,forward} ---> for getting commands / arguments from history
  10. jovaha commented on Nov 5, 2014

    @jovaha

    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 $p
    fish changes it to
    set $P|AGER

    where | denotes what is highlighted as autosuggested. this is confusing because what is displayed as already entered is not what would be executed.

  11. mzmm70000 commented on Nov 15, 2014

    @mzmm70000

    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.

  12. ocharles commented on Sep 10, 2015

    @ocharles

    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.

  13. gitkalz commented on Jan 16, 2016

    @gitkalz

    I would vote to have an option to Disable autosuggest too .. +1

  14. faho commented on Jan 16, 2016

    @faho
    Member

    @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?

  15. 51 remaining items

  16. rdw20170120 commented on Sep 10, 2021

    @rdw20170120
  17. deleted a comment from rdw20170120 on Sep 11, 2021
  18. lmfont commented on Sep 14, 2021

    @lmfont

    Why would you like to disable it?

    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.

    1. 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.

    2. 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.

    3. 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.

    4. 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.

    5. 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.

  19. krobelus commented on Sep 14, 2021

    @krobelus
    Contributor

    You can use Ctrl+F instead of RIght Arrow to accept autosuggestions

  20. rdw20170120 commented on Sep 14, 2021

    @rdw20170120
  21. faho commented on Sep 14, 2021

    @faho
    Member

    @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

  22. locked as resolved and limited conversation to collaborators on Sep 14, 2021
  23. unlocked this conversation on Oct 26, 2021
  24. modified the milestones: fish-future, fish 3.4.0 on Nov 4, 2021
  25. added a commit that references this issue on Dec 12, 2021
  26. locked as resolved and limited conversation to collaborators on Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions