Fish-shell: Traversal order of tokens in history has regressed

Created on 16 Aug 2018  路  1Comment  路  Source: fish-shell/fish-shell

Caused by https://github.com/fish-shell/fish-shell/commit/e51e854d8d11c154a17d48ab781a1f05222829ff / https://github.com/fish-shell/fish-shell/issues/4795 (ping @ridiculousfish)

The traversal order of history tokens has ever so slightly changed/broken (i.e. history-token-search-{forward,backward}) since the above change was implemented.

Prior/expected behaviour:

$ echo foo bar baz
foo bar baz
# alt-.
$ baz
# alt-.
$ bar
# alt-.
$ foo

Current/unexpected behaviour:

$ echo foo bar baz
foo bar baz
# alt-.
$ echo
# alt-.
$ foo
# alt-.
$ bar

Would it be possible to reinstate the old traversal order? More often than not, whenever I press alt-., it's to recall the _last_ argument of the previous command. This would also be consistent with bash.

bug regression

Most helpful comment

Please try this in the latest master.

>All comments

Please try this in the latest master.

Was this page helpful?
0 / 5 - 0 ratings