fish-shell/share/functions
Joel Kuhn a3dfa21737 Change vi-mode tilde to toggle character case
This updates the behavior of tilde to match the behavior found in vim.
In vim, tilde toggles the case of the character under the cursor and
advances one character. In visual mode, the case of each selected
character is toggled, the cursor position moves to the beginning of
the selection, and the mode is changed to normal. In fish, tilde
capitalizes the current letter and advances one word. There is no
current tilde command for visual mode in fish.

This patch adds the readline commands `togglecase-letter` and
`togglecase-selection` to match the behavior of vim more closely. The
only difference is that in visual mode, the cursor is not modified.
Modifying the cursor in visual mode would require either moving it in
`togglecase-selection`, which seems outside its scope or adding
something like a `move-to-selection-start` readline command.
2020-04-18 14:59:37 +02:00
..
__fish_abbr_old.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
__fish_any_arg_in.fish completions/git: some improvements 2019-10-29 19:13:31 +01:00
__fish_anypython.fish functions/__fish_anypython: Also try python{3,2}.7 2019-06-25 19:40:22 +02:00
__fish_append.fish functions/__fish_append: Stringify 2019-03-14 13:23:48 +01:00
__fish_cancel_commandline.fish __fish_cancel_commandline: Always repaint 2019-12-04 21:21:34 +01:00
__fish_commandline_is_singlequoted.fish Auto-escape pastes inside single-quotes 2017-03-16 16:08:13 +01:00
__fish_complete_atool_archive_contents.fish
__fish_complete_bittorrent.fish
__fish_complete_blockdevice.fish
__fish_complete_cd.fish Revert "Fix cd completions if a directory exists in $CDPATH and $PWD" 2017-10-16 19:33:38 +02:00
__fish_complete_clang.fish Rename functions to match others 2020-02-17 09:55:05 +01:00
__fish_complete_command.fish Complete empty subcomands consistently 2019-11-05 09:05:46 +01:00
__fish_complete_convert_options.fish fix 'grep ... | sed' 2018-04-09 01:09:49 +02:00
__fish_complete_directories.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
__fish_complete_external_command.fish Restore directory completions for subcommands 2020-03-24 20:18:07 +01:00
__fish_complete_ftp.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
__fish_complete_gpg_key_id.fish Restyle 2020-02-17 14:14:05 +01:00
__fish_complete_gpg_user_id.fish refactor gpg.fish completions 2019-10-29 19:07:35 +01:00
__fish_complete_gpg.fish minor fixes to version-specific completions 2019-11-03 21:37:57 +08:00
__fish_complete_group_ids.fish Complete IDs for unix users and groups that start with _ 2020-03-10 20:56:45 +01:00
__fish_complete_groups.fish remove sed from __fish_complete_groups.fish 2018-04-25 15:45:12 +02:00
__fish_complete_job_pids.fish
__fish_complete_list.fish
__fish_complete_lpr_option.fish Remove use of caret redirection from share/* 2018-04-01 13:42:38 -07:00
__fish_complete_lpr.fish
__fish_complete_man.fish Run fish_indent on all files 2020-04-18 10:53:11 +02:00
__fish_complete_mount_opts.fish Fixed mount -o<TAB> exception 2019-03-19 09:28:14 +01:00
__fish_complete_netcat.fish add completion for netcat 2020-04-13 23:45:40 +02:00
__fish_complete_path.fish
__fish_complete_pg_database.fish Improve psql completions and add some related commands (#6620) 2020-02-28 11:16:41 +01:00
__fish_complete_pg_user.fish Improve psql completions and add some related commands (#6620) 2020-02-28 11:16:41 +01:00
__fish_complete_pgrep.fish Rewrite __fish_complete_proc 2018-11-22 15:23:05 +01:00
__fish_complete_pids.fish Rename $pid (née %self) to $fish_pid 2018-03-24 11:54:27 -05:00
__fish_complete_ppp_peer.fish
__fish_complete_proc.fish Rewrite __fish_complete_proc 2018-11-22 15:23:05 +01:00
__fish_complete_ssh.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
__fish_complete_subcommand.fish Restore directory completions for subcommands 2020-03-24 20:18:07 +01:00
__fish_complete_suffix.fish __fish_complete_suffix: Remove eval 2019-12-28 17:10:23 +01:00
__fish_complete_user_at_hosts.fish a make style-all cleanup 2017-07-18 22:40:25 -07:00
__fish_complete_user_ids.fish Complete IDs for unix users and groups that start with _ 2020-03-10 20:56:45 +01:00
__fish_complete_users.fish Use the new string split --fields feature 2020-04-12 14:01:21 -07:00
__fish_complete_wireshark.fish add completions for wireshark/tshark/dumpcap 2020-01-30 16:45:02 +01:00
__fish_complete_zfs_mountpoint_properties.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
__fish_complete_zfs_pools.fish Reformat all files 2019-05-05 12:09:25 +02:00
__fish_complete_zfs_ro_properties.fish completion helper functions: do not use gettext 2020-03-06 22:23:50 +01:00
__fish_complete_zfs_rw_properties.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
__fish_complete_zfs_write_once_properties.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
__fish_config_interactive.fish Allow file completions for more builtins 2020-04-06 18:59:10 +02:00
__fish_contains_opt.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
__fish_crux_packages.fish
__fish_cursor_1337.fish
__fish_cursor_konsole.fish
__fish_cursor_xterm.fish Revert "Switch to bare vars in our math invocations" 2017-09-09 23:35:47 -07:00
__fish_describe_command.fish __fish_describe_command: print only exact match and exit 2020-02-17 20:22:39 -06:00
__fish_first_token.fish Reformat all files 2019-05-05 12:09:25 +02:00
__fish_git_prompt.fish Move __fish_git_prompt -> fish_git_prompt 2019-02-10 14:44:50 +01:00
__fish_gnu_complete.fish
__fish_hg_prompt.fish Rename __fish_hg_prompt -> fish_hg_prompt 2019-02-10 14:44:50 +01:00
__fish_is_first_arg.fish Reformat all files 2019-05-05 12:09:25 +02:00
__fish_is_first_token.fish
__fish_is_git_repository.fish Remove use of caret redirection from share/* 2018-04-01 13:42:38 -07:00
__fish_is_switch.fish Reformat all files 2019-05-05 12:09:25 +02:00
__fish_is_token_n.fish
__fish_is_zfs_feature_enabled.fish Fix zfs completions under FreeBSD 2018-05-26 12:20:04 -05:00
__fish_list_current_token.fish Fix error on typing Alt-l on a token that starts with a dash 2019-10-19 12:31:09 +02:00
__fish_make_completion_signals.fish Restyle 2020-02-17 14:14:05 +01:00
__fish_man_page.fish __fish_man_page: ignore prefixing variable assignments 2019-12-19 23:44:58 +01:00
__fish_md5.fish In Fish MD5 on BSD now use given String and not -s 2020-04-05 17:25:02 -07:00
__fish_move_last.fish Use $PWD to retrieve the current directory in __fish_move_last. 2019-12-07 12:20:31 +01:00
__fish_no_arguments.fish
__fish_not_contain_opt.fish fix typo in error message 2017-06-09 12:12:36 -07:00
__fish_npm_helper.fish Privatise completion-only funtions 2020-03-07 13:26:27 -08:00
__fish_number_of_cmd_args_wo_opts.fish
__fish_paginate.fish Handle multiple arguments in $PAGER 2019-12-02 15:15:33 +01:00
__fish_parent_directories.fish Reformat all files 2019-05-05 12:09:25 +02:00
__fish_pipestatus_with_signal.fish Reformat all files 2019-05-05 12:09:25 +02:00
__fish_prepend_sudo.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
__fish_prev_arg_in.fish Reformat all files 2019-05-05 12:09:25 +02:00
__fish_preview_current_file.fish new function __fish_preview_current_file to open file at the cursor in pager 2020-04-07 22:30:05 +02:00
__fish_print_addresses.fish remove sed from __fish_print_addresses.fish 2018-04-25 15:45:12 +02:00
__fish_print_cmd_args_without_options.fish functions/__fish_print_cmd_args_without_options: Stringify 2019-01-26 19:20:16 +01:00
__fish_print_cmd_args.fish
__fish_print_commands.fish Clean up $__fish_*dir variable names 2018-03-12 08:34:20 -05:00
__fish_print_debian_apache_confs.fish
__fish_print_debian_apache_mods.fish
__fish_print_debian_apache_sites.fish
__fish_print_encodings.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
__fish_print_filesystems.fish add ffs to known filesystems 2017-12-12 19:18:47 +01:00
__fish_print_gpg_algo.fish refactor gpg.fish completions 2019-10-29 19:07:35 +01:00
__fish_print_groups.fish Added completions/translations for zfs and zpool 2017-12-21 16:39:06 +01:00
__fish_print_help.fish Handle multiple arguments in $PAGER 2019-12-02 15:15:33 +01:00
__fish_print_hostnames.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
__fish_print_interfaces.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
__fish_print_lpr_options.fish Remove use of caret redirection from share/* 2018-04-01 13:42:38 -07:00
__fish_print_lpr_printers.fish Remove use of caret redirection from share/* 2018-04-01 13:42:38 -07:00
__fish_print_modules.fish Remove use of caret redirection from share/* 2018-04-01 13:42:38 -07:00
__fish_print_mounted.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
__fish_print_packages.fish Improve Arch Linux package completions 2020-03-15 13:19:25 +01:00
__fish_print_pacman_repos.fish functions/__fish_print_pacman_repos.fish: fix 2019-10-26 18:11:29 +02:00
__fish_print_pipestatus.fish prompt: don't consider SIGPIPE a failure 2020-03-07 14:13:58 +01:00
__fish_print_portage_available_pkgs.fish Rename functions to match others 2020-02-17 09:55:05 +01:00
__fish_print_portage_installed_pkgs.fish Rename functions to match others 2020-02-17 09:55:05 +01:00
__fish_print_portage_repository_paths.fish Rename functions to match others 2020-02-17 09:55:05 +01:00
__fish_print_service_names.fish Remove use of caret redirection from share/* 2018-04-01 13:42:38 -07:00
__fish_print_svn_rev.fish
__fish_print_users.fish refactor the __*_users functions 2017-04-23 20:08:40 -07:00
__fish_print_VBox_vms.fish
__fish_print_xdg_applications_directories.fish Fix xdg mimetype completion 2020-01-22 16:33:56 +01:00
__fish_print_xdg_mimetypes.fish Fix xdg mimetype completion 2020-01-22 16:33:56 +01:00
__fish_print_xwindows.fish Reformat all files 2019-05-05 12:09:25 +02:00
__fish_print_zfs_snapshots.fish Reformat all files 2019-05-05 12:09:25 +02:00
__fish_pwd.fish Stringify __fish_pwd.fish 2020-01-24 19:05:08 +01:00
__fish_seen_argument.fish add -o/--old to __fish_seen_argument 2019-11-02 14:48:57 -07:00
__fish_seen_subcommand_from.fish
__fish_set_locale.fish Remove some dead code 2018-05-12 13:48:32 +02:00
__fish_shared_key_bindings.fish new function __fish_preview_current_file to open file at the cursor in pager 2020-04-07 22:30:05 +02:00
__fish_should_complete_switches.fish Reformat all files 2019-05-05 12:09:25 +02:00
__fish_status_to_signal.fish add __fish_status_to_signal.fish and __fish_pipestatus_with_signal.fish 2019-02-26 18:09:37 +00:00
__fish_svn_prompt.fish Rename __fish_svn_prompt -> fish_svn_prompt 2019-02-10 14:44:50 +01:00
__fish_systemctl_services.fish systemctl completions: Use --plain where appropriate 2020-04-18 11:11:27 +02:00
__fish_systemctl.fish systemctl completions: Use --plain where appropriate 2020-04-18 11:11:27 +02:00
__fish_systemd_machine_images.fish
__fish_systemd_machines.fish Revert "Move __fish_systemd_machines into machinectl completion script" 2019-12-09 21:07:21 +01:00
__fish_toggle_comment_commandline.fish
__fish_use_subcommand.fish
__fish_vcs_prompt.fish Rename __fish_vcs_prompt -> fish_vcs_prompt 2019-02-10 14:44:50 +01:00
__fish_whatis_current_token.fish Only print extra newlines for multi-line prompts (#6179) 2019-10-08 19:14:51 +02:00
__fish_whatis.fish Reformat all files 2019-05-05 12:09:25 +02:00
__terlar_git_prompt.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
_.fish functions/_.fish: Use ggetext if available 2019-02-13 13:05:50 +01:00
_validate_int.fish add ability for argparse to validate args 2017-07-18 14:42:50 -07:00
abbr.fish Keep "; and" and "; or" on fish files 2019-05-05 13:34:38 +02:00
alias.fish alias.fish: unbreak listing aliases without backslashes 2020-04-18 09:35:33 +02:00
cd.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
cdh.fish cdh: Only replace home directory with ~ at the start of paths 2018-08-13 18:24:42 +02:00
contains_seq.fish Revert "Switch to bare vars in our math invocations" 2017-09-09 23:35:47 -07:00
delete-or-exit.fish
dirh.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
dirs.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
down-or-search.fish
edit_command_buffer.fish Fix VSCode not blocking in edit_command_buffer 2020-03-14 14:15:10 +01:00
export.fish Fix export returning 1 on success 2017-10-01 01:11:17 -07:00
fish_breakpoint_prompt.fish Revert "Switch to bare vars in our math invocations" 2017-09-09 23:35:47 -07:00
fish_clipboard_copy.fish Always use wl-{copy,paste} if running on wayland 2019-10-24 11:42:33 +02:00
fish_clipboard_paste.fish Revert "Set fish_clipboard_paste handler once on startup" 2019-11-04 20:47:58 +01:00
fish_config.fish Reformat all files 2019-05-05 12:09:25 +02:00
fish_default_key_bindings.fish Refine when we expand abbreviations 2020-03-21 13:55:15 +01:00
fish_default_mode_prompt.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
fish_git_prompt.fish git prompt: better check for git stashes 2020-04-10 00:22:16 +02:00
fish_hg_prompt.fish Activate untracked status in hg prompt 2020-04-16 19:18:22 +02:00
fish_hybrid_key_bindings.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
fish_indent.fish Rename $FISH_VERSION back to the original $version. 2017-10-14 08:33:02 -07:00
fish_key_reader.fish Rename $FISH_VERSION back to the original $version. 2017-10-14 08:33:02 -07:00
fish_mode_prompt.fish
fish_opt.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
fish_print_git_action.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
fish_print_hg_root.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
fish_prompt.fish prompts: fix pipestatus for jobs prefixed with "not" 2020-02-06 01:43:17 +01:00
fish_svn_prompt.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
fish_title.fish Disable fish_title in emacs 2019-05-06 17:06:40 +02:00
fish_update_completions.fish Add __fish_anypython helper function 2019-03-09 18:04:21 +01:00
fish_vcs_prompt.fish Disable svn prompt by default 2020-03-01 17:04:02 +01:00
fish_vi_cursor.fish Disable vi-cursor in tests 2019-05-05 17:31:33 +02:00
fish_vi_key_bindings.fish Change vi-mode tilde to toggle character case 2020-04-18 14:59:37 +02:00
funced.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
funcsave.fish Revert "Make funcsave update the function <-> file mapping" 2020-03-20 10:18:52 -05:00
grep.fish
help.fish Dogfooding to show off use case 2020-04-04 15:30:09 +02:00
history.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
hostname.fish
isatty.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
la.fish
ll.fish
ls.fish Reformat all files 2019-05-05 12:09:25 +02:00
man.fish Fix man function for NetBSD 2019-02-14 10:57:38 +01:00
N_.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
nextd-or-forward-word.fish
nextd.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
open.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
popd.fish Revert "convert popd and pushd to use argparse" 2017-09-14 12:36:37 +08:00
prevd-or-backward-word.fish
prevd.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
prompt_hostname.fish Revert prompt_hostname to short hostname only 2018-03-12 08:24:42 -05:00
prompt_pwd.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
psub.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
pushd.fish Revert "convert popd and pushd to use argparse" 2017-09-14 12:36:37 +08:00
realpath.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
seq.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
setenv.fish fix setenv and add unit tests 2017-04-05 15:31:13 -07:00
suspend.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
trap.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
type.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
umask.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
up-or-search.fish
vared.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00