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