fish-shell/share/functions
ridiculousfish 8a09c99f36 Escape in vi mode to end paging, but stay in insert mode
Change the escape key binding in insert mode (in vi key bindings)
to check if we are in paging mode. If so, emit cancel and stay in
insert mode. Otherwise perform the current behavior of switching
back to default mode and adjusting the cursor.

Fixes #2871
2017-02-05 02:49:52 -08:00
..
_.fish simplify previous change to the _ script 2016-08-07 19:29:14 -07:00
__fish_append.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_bind_test1.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_bind_test2.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_cancel_commandline.fish Use new set_color features for __fish_cancel_commandline 2016-12-31 06:12:05 -08:00
__fish_commandline_test.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_abook_formats.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_ant_targets.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_atool_archive_contents.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_bittorrent.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_blockdevice.fish Split off __fish_complete_blockdevice from mount.fish. 2016-05-27 14:56:47 -07:00
__fish_complete_cd.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_command.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_convert_options.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_directories.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_file_url.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_ftp.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_groups.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_job_pids.fish Add a function to complete job PIDs. 2015-11-27 16:07:16 -08:00
__fish_complete_list.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_lpr.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_lpr_option.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_lsusb.fish misc improvements to scripts 2016-12-21 13:46:43 +01:00
__fish_complete_man.fish time for another make style-all 2017-01-26 20:05:46 -08:00
__fish_complete_path.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_pgrep.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_pids.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_ppp_peer.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_proc.fish Remove eval in __fish_complete_proc 2016-12-29 15:35:19 +01:00
__fish_complete_setxkbmap.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_ssh.fish style fixes to previous commit 2017-02-01 22:49:40 -08:00
__fish_complete_subcommand.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_subcommand_root.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_suffix.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_svn_diff.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_tar.fish Delete trailing spaces 2017-01-15 14:57:21 -08:00
__fish_complete_unrar.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_users.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_wvdial_peers.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_config_interactive.fish Merge branch 'Integration_2.5.0' 2017-02-03 21:14:40 +08:00
__fish_contains_opt.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_crux_packages.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_cursor_1337.fish fish vi mode cursor shape on iTerm2 2016-12-02 19:49:15 -08:00
__fish_cursor_konsole.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_cursor_xterm.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_describe_command.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_filter_ant_targets.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_git_prompt.fish Remove useless-use-of-echo in git_prompt 2016-12-29 13:49:21 +01:00
__fish_gnu_complete.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_hg_prompt.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_is_first_token.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_is_token_n.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_list_current_token.fish make alt-L output respect multi-line prompts 2016-03-18 15:53:29 -07:00
__fish_make_completion_signals.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_man_page.fish Add support for subcommands in __fish_man_page 2016-12-27 16:03:21 -08:00
__fish_move_last.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_no_arguments.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_not_contain_opt.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_number_of_cmd_args_wo_opts.fish Add eselect, rc-update and rc-service completions. (These are utilities used by Gentoo Linux) 2013-11-27 18:36:05 +08:00
__fish_paginate.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_ports_dirs.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_abook_emails.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_addresses.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_arch_daemons.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_cmd_args.fish Add eselect, rc-update and rc-service completions. (These are utilities used by Gentoo Linux) 2013-11-27 18:36:05 +08:00
__fish_print_cmd_args_without_options.fish Add eselect, rc-update and rc-service completions. (These are utilities used by Gentoo Linux) 2013-11-27 18:36:05 +08:00
__fish_print_commands.fish Allow compressed man pages in help 2016-06-10 14:13:15 +02:00
__fish_print_debian_apache_confs.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_debian_apache_mods.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_debian_apache_sites.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_debian_services.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_encodings.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_filesystems.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_function_prototypes.fish requested changes 2016-12-21 18:44:34 +01:00
__fish_print_help.fish emit error message when test is given invalid int 2016-11-27 20:37:30 -08:00
__fish_print_hostnames.fish style fixes to previous commit 2017-02-01 22:49:40 -08:00
__fish_print_interfaces.fish Remove cd in __fish_print_interfaces 2017-01-18 15:44:28 -08:00
__fish_print_lpr_options.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_lpr_printers.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_lsblk_columns.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_make_targets.fish improve make target completion 2016-12-21 19:04:15 -08:00
__fish_print_modules.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_mounted.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_ninja_targets.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_ninja_tools.fish Add completions for ninja build system 2016-10-04 12:32:28 +02:00
__fish_print_packages.fish remove "cat file |" from scripts 2016-12-21 13:46:43 +01:00
__fish_print_pacman_repos.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_service_names.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_svn_rev.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_users.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_VBox_vms.fish Add __fish_print_VBox_vms function 2016-12-21 14:51:48 +01:00
__fish_print_xdg_mimeapps.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_xdg_mimetypes.fish posixify! 2016-12-21 18:47:04 +01:00
__fish_print_xrandr_modes.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_xrandr_outputs.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_xwindows.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_prt_no_subcommand.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_prt_packages.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_prt_ports.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_prt_use_package.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_prt_use_port.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_pwd.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_seen_subcommand_from.fish Drop unneeded '--' when using set builtin in various places 2006-12-13 06:37:27 +10:00
__fish_set_locale.fish if started without a locale read system config 2016-07-27 22:15:54 -07:00
__fish_sgrep.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_shared_key_bindings.fish reinstate some bindings for vi mode 2017-01-15 13:55:43 -08:00
__fish_svn_prompt.fish replace "sort | uniq" with "sort -u" in scripts 2016-12-21 13:46:43 +01:00
__fish_systemctl_automounts.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemctl_devices.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemctl_mounts.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemctl_scopes.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemctl_service_paths.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemctl_services.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemctl_slices.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemctl_snapshots.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemctl_sockets.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemctl_swaps.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemctl_targets.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemctl_timers.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemd_machine_images.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemd_machines.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_test_arg.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_toggle_comment_commandline.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_urlencode.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_use_subcommand.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_vcs_prompt.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__terlar_git_prompt.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
abbr.fish Add the possibility to rename abbreviations 2016-12-01 14:42:20 -08:00
alias.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
cd.fish revert the --shadow-builtin flag 2016-08-24 22:56:19 -07:00
contains_seq.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
delete-or-exit.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
dirh.fish Fix index out of bounds 2016-09-13 20:59:18 -07:00
dirs.fish dirs: Stringify 2017-01-06 16:13:01 +01:00
down-or-search.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
edit_command_buffer.fish deal with multiline commands which have flags 2017-01-23 09:11:06 +08:00
eval.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
export.fish Use string split in export.fish 2016-02-10 20:33:43 +01:00
fish_clipboard_copy.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
fish_clipboard_paste.fish clipboard_paste: Require non-empty clipboard contents 2016-12-10 21:30:57 +01:00
fish_config.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
fish_default_key_bindings.fish reinstate some bindings for vi mode 2017-01-15 13:55:43 -08:00
fish_default_mode_prompt.fish Added default mode prompt function (#3727) 2017-01-12 16:07:41 +01:00
fish_fallback_prompt.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
fish_hybrid_key_bindings.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
fish_indent.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
fish_key_reader.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
fish_mode_prompt.fish Added default mode prompt function (#3727) 2017-01-12 16:07:41 +01:00
fish_prompt.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
fish_update_completions.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
fish_vi_cursor.fish vi_cursor: Refactor detection logic 2016-12-09 19:32:18 +01:00
fish_vi_key_bindings.fish Escape in vi mode to end paging, but stay in insert mode 2017-02-05 02:49:52 -08:00
fish_vi_mode.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
funced.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
funcsave.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
grep.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
help.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
history.fish handle multiline commands in history search output 2016-10-16 21:33:12 -07:00
hostname.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
isatty.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
la.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
ll.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
ls.fish fix extraction of LS_COLORS 2016-12-07 14:22:42 -08:00
man.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
math.fish deal with BC_LINE_LENGTH not being honored 2017-01-09 17:32:11 +08:00
N_.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
nextd-or-forward-word.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
nextd.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
open.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
popd.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
prevd-or-backward-word.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
prevd.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
prompt_hostname.fish change name of the function 2016-10-23 15:02:14 -07:00
prompt_pwd.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
psub.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
pushd.fish pushd: Use $PWD instead of command pwd 2017-01-05 01:49:44 +01:00
realpath.fish fix using external realpath command 2016-11-13 13:34:19 -08:00
seq.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
setenv.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
string.fish string.fish: use if/else. Reindent. 2016-07-02 11:40:22 -07:00
suspend.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
trap.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
type.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
umask.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
up-or-search.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
vared.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00