Skip to content

Bug with highlighty thing #1412

Closed
Closed

Description

@suspiciousfellow

image

If it isn't clear from the above, you can reproduce this bug by typing in the sudo mv command in the above image. Then, when the next line goes to autocomplete the sudo, the s,u, etc are strung out in a colourful repeating way.

It's not JUST the file name, either, as I show by using the file name in another command.

Please note that the directory that I have blanked out is AAAA_AAAAAAAA where A is a-z and _ is, well, _.

All the escaping of the file name, btw, is done by fish autocomplete, so if the escaping is incorrect then you can assume that is the bug. But clearly the autocomplete of sudo should not be leaving trails of multicoloured 's's all over the place.

Activity

  1. suspiciousfellow commented on Apr 16, 2014

    @suspiciousfellow
    Author

    OS of system I am SSHing into is ubuntu 12.04 LTS if that matters.

  2. ridiculousfish commented on Apr 16, 2014

    @ridiculousfish
    Member

    This happens when fish's notion of the cursor position gets out of sync with that of the terminal, which in this case is SuperPuTTY.

  3. suspiciousfellow commented on Apr 16, 2014

    @suspiciousfellow
    Author

    So... is that a bug with SSH, Putty, or Fish?

    Also - since I have your attention ;) - I did have a go subsequent to your reply at replicating this on my laptop (also ubuntu 12.04 LTS, until tomorrow anyway) and as you promise it wasn't a problem. What I did notice though was the auto completes seemed to be using a different logic to the one installed on that server in terms of which one they were suggesting (or at least it seemed it to me) - rather than wasting your time asking you to explain it please could you link me to the relevant method in the source code and I'll work it out from there.

    BTW this also leads to a feature request - can we have some tickboxes to remove multiple history items at once? Not surprisingly I gave up on doing this through the web interface myself and did it manually. Actually I can implement that for you if you want?

    Oh and btw thanks for your work with fish (I appreciate you aren't the guy who started it) - I hadn't come across it until last week but already I've converted some guys in the office to it. I'm not a sysadmin, I'm a programmer, and never remember the gazillion options for even the most common *nix commands. The colourful autocomplete alone is massively increasing my productivity when I have to use the shell... You need more exposure to a wider audience (I only learned about you from an offhand comment on stackexchange!), let's hope you get it, I will be mentioning fish to others...

  4. ridiculousfish commented on Apr 16, 2014

    @ridiculousfish
    Member

    It may or may not be a bug in PuTTY, but we should attempt to fix it in fish.

    I'll be glad to merge support for deleting multiple history items. One possible interface is a "delete all" method, that deletes every item that's filtered (i.e. that match the search field).

    The logic for autosuggestions is encapsulated in threaded_autosuggest in reader.cpp, and tab completions is in complete() in complete.cpp. But I don't mind describing how it works if it would be useful.

    Thanks for your kind words. More exposure would be nice - shells are one of those things that people tend to tolerate until habits are ingrained, and then they're hard to break. We should be knocking down the various incompatibilities (rvm, virtualenvwrapper, etc.) too.

  5. added this to the milestone on Oct 8, 2014
  6. ridiculousfish commented on Apr 24, 2015

    @ridiculousfish
    Member

    Pushing this out of 2.2.0

  7. jihygk commented on Sep 7, 2015

    @jihygk

    I had the same issue using iTerm2, but it went away when I unchecked "Treat ambiguous-width characters as double width" in iTerm's settings.

    screen shot 2015-09-07 at 17 05 13

  8. krader1961 commented on Mar 23, 2017

    @krader1961
    Contributor

    We recently greatly improved the ability to delete history items. Unicode support has also been improved and several relevant bugs fixed since this was opened. So I'm going to assume this is resolved.

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

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions