From a62114c91f2070c8c8453d117f3d81dc113e41ff Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Mon, 25 Mar 2024 16:43:09 +0530 Subject: dotfile update --- .../plugins/zsh-navigation-tools/n-functions | 54 ---------------------- 1 file changed, 54 deletions(-) delete mode 100644 zsh/oh-my-zsh/plugins/zsh-navigation-tools/n-functions (limited to 'zsh/oh-my-zsh/plugins/zsh-navigation-tools/n-functions') diff --git a/zsh/oh-my-zsh/plugins/zsh-navigation-tools/n-functions b/zsh/oh-my-zsh/plugins/zsh-navigation-tools/n-functions deleted file mode 100644 index 1748cbc..0000000 --- a/zsh/oh-my-zsh/plugins/zsh-navigation-tools/n-functions +++ /dev/null @@ -1,54 +0,0 @@ -# Copy this file into /usr/share/zsh/site-functions/ -# and add 'autoload n-functions` to .zshrc -# -# This function allows to choose a function for edition with vared -# -# Uses n-list - -emulate -L zsh - -setopt extendedglob -zmodload zsh/curses -zmodload zsh/parameter - -local IFS=" -" - -unset NLIST_COLORING_PATTERN - -[ -f ~/.config/znt/n-list.conf ] && builtin source ~/.config/znt/n-list.conf -[ -f ~/.config/znt/n-functions.conf ] && builtin source ~/.config/znt/n-functions.conf - -local list -local selected - -NLIST_REMEMBER_STATE=0 - -list=( "${(@k)functions}" ) -list=( "${(@M)list:#(#i)*$1*}" ) - -local NLIST_GREP_STRING="$1" - -if [ "$#list" -eq 0 ]; then - echo "No matching functions" - return 1 -fi - -list=( "${(@i)list}" ) -n-list "$list[@]" - -if [ "$REPLY" -gt 0 ]; then - selected="$reply[REPLY]" - if [ "$feditor" = "zed" ]; then - echo "Editing \`$selected' (ESC ZZ or Ctrl-x-w to finish):" - autoload zed - print -rs "zed -f -- \"$selected\"" - zed -f -- "$selected" - else - echo "Editing \`$selected':" - print -rs "vared functions\\[$selected\\]" - vared functions\[$selected\] - fi -fi - -# vim: set filetype=zsh: -- cgit v1.2.3-59-g8ed1b