fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
d835c5252
master
1# localization: tier1 2# Depending on cursor position and current mode, either search backward or move up one line" 3function up-or-search -d"Search back or move cursor up 1 line" 4# If we are already in search mode, continue 5if commandline --search-mode 6commandline -f history-search-backward 7return 8end 9 10# If we are navigating the pager, then up always navigates 11if commandline --paging-mode 12commandline -f up-line 13return 14end 15 16# We are not already in search mode. 17# If we are on the top line, start search mode, 18# otherwise move up 19set -l lineno( commandline -L) 20 21switch $lineno 22case 1 23commandline -f history-search-backward 24 25case '*' 26commandline -f up-line 27end 28end