diff --git a/.config/fish/completions/bob.fish b/.config/fish/completions/bob.fish deleted file mode 100644 index 548cb37d..00000000 --- a/.config/fish/completions/bob.fish +++ /dev/null @@ -1,33 +0,0 @@ -complete -c bob -n "__fish_use_subcommand" -s h -l help -d 'Print help' -complete -c bob -n "__fish_use_subcommand" -s V -l version -d 'Print version' -complete -c bob -n "__fish_use_subcommand" -f -a "use" -d 'Switch to the specified version, by default will auto-invoke install command if the version is not installed already' -complete -c bob -n "__fish_use_subcommand" -f -a "install" -d 'Install the specified version, can also be used to update out-of-date nightly version' -complete -c bob -n "__fish_use_subcommand" -f -a "sync" -d 'If Config::version_sync_file_location is set, the version in that file will be parsed and installed' -complete -c bob -n "__fish_use_subcommand" -f -a "uninstall" -d 'Uninstall the specified version' -complete -c bob -n "__fish_use_subcommand" -f -a "rollback" -d 'Rollback to an existing nightly rollback' -complete -c bob -n "__fish_use_subcommand" -f -a "erase" -d 'Erase any change bob ever made, including neovim installation, neovim version downloads and registry changes' -complete -c bob -n "__fish_use_subcommand" -f -a "list" -d 'List all installed and used versions' -complete -c bob -n "__fish_use_subcommand" -f -a "complete" -d 'Generate shell completion' -complete -c bob -n "__fish_use_subcommand" -f -a "update" -d 'Update existing version' -complete -c bob -n "__fish_use_subcommand" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' -complete -c bob -n "__fish_seen_subcommand_from use" -s n -l no-install -d 'Whether not to auto-invoke install command' -complete -c bob -n "__fish_seen_subcommand_from use" -s h -l help -d 'Print help' -complete -c bob -n "__fish_seen_subcommand_from install" -s h -l help -d 'Print help' -complete -c bob -n "__fish_seen_subcommand_from sync" -s h -l help -d 'Print help' -complete -c bob -n "__fish_seen_subcommand_from uninstall" -s h -l help -d 'Print help' -complete -c bob -n "__fish_seen_subcommand_from rollback" -s h -l help -d 'Print help' -complete -c bob -n "__fish_seen_subcommand_from erase" -s h -l help -d 'Print help' -complete -c bob -n "__fish_seen_subcommand_from list" -s h -l help -d 'Print help' -complete -c bob -n "__fish_seen_subcommand_from complete" -s h -l help -d 'Print help' -complete -c bob -n "__fish_seen_subcommand_from update" -s a -l all -d 'Apply the update to all versions' -complete -c bob -n "__fish_seen_subcommand_from update" -s h -l help -d 'Print help' -complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "use" -d 'Switch to the specified version, by default will auto-invoke install command if the version is not installed already' -complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "install" -d 'Install the specified version, can also be used to update out-of-date nightly version' -complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "sync" -d 'If Config::version_sync_file_location is set, the version in that file will be parsed and installed' -complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "uninstall" -d 'Uninstall the specified version' -complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "rollback" -d 'Rollback to an existing nightly rollback' -complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "erase" -d 'Erase any change bob ever made, including neovim installation, neovim version downloads and registry changes' -complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "list" -d 'List all installed and used versions' -complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "complete" -d 'Generate shell completion' -complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "update" -d 'Update existing version' -complete -c bob -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from use; and not __fish_seen_subcommand_from install; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from uninstall; and not __fish_seen_subcommand_from rollback; and not __fish_seen_subcommand_from erase; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from complete; and not __fish_seen_subcommand_from update; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' diff --git a/.config/fish/completions/fzf_configure_bindings.fish b/.config/fish/completions/fzf_configure_bindings.fish deleted file mode 100644 index f769c94a..00000000 --- a/.config/fish/completions/fzf_configure_bindings.fish +++ /dev/null @@ -1,9 +0,0 @@ -complete fzf_configure_bindings --no-files -complete fzf_configure_bindings --long help --short h --description "Print help" --condition "not __fish_seen_argument --help -h" -complete fzf_configure_bindings --long directory --description "Change the key binding for Search Directory" --condition "not __fish_seen_argument --directory" -complete fzf_configure_bindings --long git_log --description "Change the key binding for Search Git Log" --condition "not __fish_seen_argument --git_log" -complete fzf_configure_bindings --long git_status --description "Change the key binding for Search Git Status" --condition "not __fish_seen_argument --git_status" -complete fzf_configure_bindings --long history --description "Change the key binding for Search History" --condition "not __fish_seen_argument --history" -complete fzf_configure_bindings --long processes --description "Change the key binding for Search Processes" --condition "not __fish_seen_argument --processes" -complete fzf_configure_bindings --long variables --description "Change the key binding for Search Variables" --condition "not __fish_seen_argument --variables" -complete fzf_configure_bindings --long completions --description "Change the key binding for searching completions" --condition "not __fish_seen_argument --completions" diff --git a/.config/fish/completions/gtrash.fish b/.config/fish/completions/gtrash.fish deleted file mode 100644 index 31af26d2..00000000 --- a/.config/fish/completions/gtrash.fish +++ /dev/null @@ -1 +0,0 @@ -gtrash completion fish | source diff --git a/.config/fish/conf.d/abbr_tips.fish b/.config/fish/conf.d/abbr_tips.fish deleted file mode 100644 index 1c6f180d..00000000 --- a/.config/fish/conf.d/abbr_tips.fish +++ /dev/null @@ -1,140 +0,0 @@ -for mode in default insert - bind --mode $mode " " __abbr_tips_bind_space - bind --mode $mode \n __abbr_tips_bind_newline - bind --mode $mode \r __abbr_tips_bind_newline -end - -set -g __abbr_tips_used 0 - -# Trim simple/double quotes from args -function trim_value - echo "$argv" | string trim --left --right --chars '"\'' | string join ' ' -end - -function __abbr_tips_install --on-event abbr_tips_install - # Regexes used to find abbreviation inside command - # Only the first matching group will be tested as an abbr - set -Ux ABBR_TIPS_REGEXES - set -a ABBR_TIPS_REGEXES '(^(\w+\s+)+(-{1,2})\w+)(\s\S+)' - set -a ABBR_TIPS_REGEXES '(^(\s?(\w-?)+){3}).*' - set -a ABBR_TIPS_REGEXES '(^(\s?(\w-?)+){2}).*' - set -a ABBR_TIPS_REGEXES '(^(\s?(\w-?)+){1}).*' - - set -Ux ABBR_TIPS_PROMPT "\n💡 \e[1m{{ .abbr }}\e[0m => {{ .cmd }}" - set -gx ABBR_TIPS_AUTO_UPDATE background - - __abbr_tips_init -end - -function __abbr_tips --on-event fish_postexec -d "Abbreviation reminder for the current command" - set -l command (string split ' ' -- "$argv") - set -l cmd (string replace -r -a '\\s+' ' ' -- "$argv" ) - - # Update abbreviations lists when adding/removing abbreviations - if test "$command[1]" = abbr - # Parse args as abbr options - argparse --name abbr --ignore-unknown a/add e/erase g/global U/universal -- $command - - if set -q _flag_a - and not contains -- "$argv[2]" $__ABBR_TIPS_KEYS - set -a __ABBR_TIPS_KEYS "$argv[2]" - set -a __ABBR_TIPS_VALUES (trim_value "$argv[3..-1]") - else if set -q _flag_e - and set -l abb (contains -i -- "$argv[2]" $__ABBR_TIPS_KEYS) - set -e __ABBR_TIPS_KEYS[$abb] - set -e __ABBR_TIPS_VALUES[$abb] - end - else if test "$command[1]" = alias - # Update abbreviations list when adding aliases - set -l alias_key - set -l alias_value - - # Parse args as `alias` options - argparse --name alias --ignore-unknown s/save -- $command - - if string match -q '*=*' -- "$argv[2]" - set command_split (string split '=' -- $argv[2]) - set alias_key "a__$command_split[1]" - set alias_value $command_split[2..-1] - else - set alias_key "a__$argv[2]" - set alias_value $argv[3..-1] - end - - set alias_value (trim_value "$alias_value") - - if set -l abb (contains -i -- "$argv[3..-1]" $__ABBR_TIPS_KEYS) - set __ABBR_TIPS_KEYS[$abb] $alias_key - set __ABBR_TIPS_VALUES[$abb] $alias_value - else - set -a __ABBR_TIPS_KEYS $alias_key - set -a __ABBR_TIPS_VALUES $alias_value - end - else if test "$command[1]" = functions - # Parse args as `functions` options - argparse --name functions e/erase -- $command - - # Update abbreviations list when removing aliases - if set -q _flag_e - and set -l abb (contains -i -- a__{$argv[2]} $__ABBR_TIPS_KEYS) - set -e __ABBR_TIPS_KEYS[$abb] - set -e __ABBR_TIPS_VALUES[$abb] - end - end - - # Exit in the following cases : - # - abbreviation has been used - # - command is already an abbreviation - # - command not found - # - or it's a function (alias) - if test $__abbr_tips_used = 1 - set -g __abbr_tips_used 0 - return - else if abbr -q "$cmd" - or not type -q "$command[1]" - return - else if string match -q -- "alias $cmd *" (alias) - return - else if test (type -t "$command[1]") = function - and count $ABBR_TIPS_ALIAS_WHITELIST >/dev/null - and not contains "$command[1]" $ABBR_TIPS_ALIAS_WHITELIST - return - end - - set -l abb - if not set abb (contains -i -- "$cmd" $__ABBR_TIPS_VALUES) - for r in $ABBR_TIPS_REGEXES - if set abb (contains -i -- (string replace -r -a -- "$r" '$1' "$cmd") $__ABBR_TIPS_VALUES) - break - end - end - end - - if test -n "$abb" - if string match -q "a__*" -- "$__ABBR_TIPS_KEYS[$abb]" - set -l alias (string sub -s 4 -- "$__ABBR_TIPS_KEYS[$abb]") - if functions -q "$alias" - echo -e (string replace -a '{{ .cmd }}' -- "$__ABBR_TIPS_VALUES[$abb]" \ - (string replace -a '{{ .abbr }}' -- "$alias" "$ABBR_TIPS_PROMPT")) - else - set -e __ABBR_TIPS_KEYS[$abb] - set -e __ABBR_TIPS_VALUES[$abb] - end - else - echo -e (string replace -a '{{ .cmd }}' -- "$__ABBR_TIPS_VALUES[$abb]" \ - (string replace -a '{{ .abbr }}' -- "$__ABBR_TIPS_KEYS[$abb]" "$ABBR_TIPS_PROMPT")) - end - end - - return -end - -function __abbr_tips_update --on-event abbr_tips_update - __abbr_tips_clean - __abbr_tips_install -end - -function __abbr_tips_uninstall --on-event abbr_tips_uninstall - __abbr_tips_clean - functions --erase __abbr_tips_init -end diff --git a/.config/fish/conf.d/autopair.fish b/.config/fish/conf.d/autopair.fish deleted file mode 100644 index abb4bf3e..00000000 --- a/.config/fish/conf.d/autopair.fish +++ /dev/null @@ -1,39 +0,0 @@ -status is-interactive || exit - -set --global autopair_left "(" "[" "{" '"' "'" -set --global autopair_right ")" "]" "}" '"' "'" -set --global autopair_pairs "()" "[]" "{}" '""' "''" - -function _autopair_fish_key_bindings --on-variable fish_key_bindings - set --query fish_key_bindings[1] || return - - test $fish_key_bindings = fish_default_key_bindings && - set --local mode default insert || - set --local mode insert default - - bind --mode $mode[-1] --erase \177 \b \t - - bind --mode $mode[1] \177 _autopair_backspace # macOS ⌫ - bind --mode $mode[1] \b _autopair_backspace - bind --mode $mode[1] \t _autopair_tab - - printf "%s\n" $autopair_pairs | while read --local left right --delimiter "" - bind --mode $mode[-1] --erase $left $right - if test $left = $right - bind --mode $mode[1] $left "_autopair_insert_same \\$left" - else - bind --mode $mode[1] $left "_autopair_insert_left \\$left \\$right" - bind --mode $mode[1] $right "_autopair_insert_right \\$right" - end - end -end - -_autopair_fish_key_bindings - -function _autopair_uninstall --on-event autopair_uninstall - string collect ( - bind --all | string replace --filter --regex -- "_autopair.*" --erase - set --names | string replace --filter --regex -- "^autopair" "set --erase autopair" - ) | source - functions --erase (functions --all | string match "_autopair_*") -end diff --git a/.config/fish/conf.d/done.fish b/.config/fish/conf.d/done.fish deleted file mode 100644 index 3f9f0d3c..00000000 --- a/.config/fish/conf.d/done.fish +++ /dev/null @@ -1,334 +0,0 @@ -# MIT License - -# Copyright (c) 2016 Francisco Lourenço & Daniel Wehner - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -if not status is-interactive - exit -end - -set -g __done_version 1.19.3 - -function __done_run_powershell_script - set -l powershell_exe (command --search "powershell.exe") - - if test $status -ne 0 - and command --search wslvar - - set -l powershell_exe (wslpath (wslvar windir)/System32/WindowsPowerShell/v1.0/powershell.exe) - end - - if string length --quiet "$powershell_exe" - and test -x "$powershell_exe" - - set cmd (string escape $argv) - - eval "$powershell_exe -Command $cmd" - end -end - -function __done_windows_notification -a title -a message - if test "$__done_notify_sound" -eq 1 - set soundopt "