Skip to content

autosuggestion hides the same history navigation item #405

Closed

Description

@maxfl

I found that I can not use 'Up' key to get the last item from the history if item is autosuggested.
For example:

echo test_string #Enter
echo tes<Cursor>

echo test_string is then autosuggested and I can not get it from the history by pressing 'UP' key. This is very annoying, since it requires distinguishing which key should be pressed: Up or CtrlF.

I can see two ways of solving this: whether use Up key to use autosuggestion first, either not to delete autosuggested item from the history.

Activity

  1. ridiculousfish commented on Nov 25, 2012

    @ridiculousfish
    Member

    This is by design - I found it annoying to press Up and be offered the same option that I was already looking at.

  2. maxfl commented on Nov 25, 2012

    @maxfl
    ContributorAuthor

    then I see that both attitudes are annoying. What should be chosen?

  3. ridiculousfish commented on Nov 29, 2012

    @ridiculousfish
    Member

    Let's hear any ideas about how these features should interact.

  4. maxfl commented on Nov 29, 2012

    @maxfl
    ContributorAuthor

    Offtopic: I see that people mostly do not read the issues and so they do not comment. There could be some other place for discussing ambiguous topics. Perhaps mailing list is good for it, since everybody is already there. Or there could be some polls. What do you think?

  5. siteshwar commented on Nov 29, 2012

    @siteshwar
    Contributor

    Probably get the last item when there's nothing being auto suggested. If I have removed last few characters with backspace from command, then I have to manually type next character to get auto suggestion.

  6. maxfl commented on Dec 18, 2012

    @maxfl
    ContributorAuthor

    another problem with hiding last history item:
    you can move through history freely by up/down as much as you want. But there is no way (or I'm missing it) to undo the applied autosuggestion. If autosuggestion is too long it's end is hidden and you can not see the tokens in the end. To see the tail you have to apply the autosuggestion. But if the command turns out to be not the command you want, you can not go to the previous history item, because autosuggestion is applied and up/down navigation doesn't work anymore.

  7. added a commit that references this issue on Oct 7, 2016
  8. krader1961 commented on Mar 19, 2017

    @krader1961
    Contributor

    Closing. No comments in 4.3 years to justify changing the current behavior.

  9. gagarine commented on Oct 16, 2018

    @gagarine

    I installed fish, and that was the first things I searched. The current behaviors is inconsistent.

  10. locked as resolved and limited conversation to collaborators on Apr 17, 2020
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions