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
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.
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...
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.
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.
Activity
suspiciousfellow commentedon Apr 16, 2014
OS of system I am SSHing into is ubuntu 12.04 LTS if that matters.
ridiculousfish commentedon Apr 16, 2014
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.
suspiciousfellow commentedon Apr 16, 2014
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...
ridiculousfish commentedon Apr 16, 2014
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_autosuggestin reader.cpp, and tab completions is incomplete()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.
ridiculousfish commentedon Apr 24, 2015
Pushing this out of 2.2.0
jihygk commentedon Sep 7, 2015
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.
krader1961 commentedon Mar 23, 2017
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.