Skip to content

Commit

Permalink
Update program name in plugin files
Browse files Browse the repository at this point in the history
leo-arch committed Jan 28, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f262e17 commit bff0b08
Showing 14 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion plugins/BFG.cfg
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ FZFHEIGHT="80%"
# "${XDG_CONFIG_HOME:-$HOME/.config}/clifm/plugins/BFG.sh"
BFG_FILE=""

# Resource opener to use. Defaults to Lira, CliFM's built-in opener
# Resource opener to use. Defaults to Lira, Clifm's built-in opener
OPENER="clifm"

# BFG caches images to speed up the previewing process (only files
2 changes: 1 addition & 1 deletion plugins/batch_copy.sh
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ fi

DEST=$(mktemp "${TMPDIR:-/tmp}/clifm_bcd.XXXXXX")

printf "# CliFM - Copy files in batch\n\
printf "# Clifm - Copy files in batch\n\
# Write here destinty files/directories, one per line.\n\
# Blank and commented lines are omitted.\n\
# Just quit the editor to cancel the operation.\n" > "$DEST"
2 changes: 1 addition & 1 deletion plugins/batch_create.sh
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ DIRS=$(mktemp "$TMP_DIR/clifm_bn_dirs.XXXXXX")
dirsn=0
filesn=0

printf "# CliFM - Create files in batch\n\
printf "# Clifm - Create files in batch\n\
#\n\
# Write below the file names to be created.\n\
# End file names with a slash to create a directory.\n\
8 changes: 4 additions & 4 deletions plugins/bm_import.sh
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ if ! [ -f "$file" ]; then
fi

if [ -z "$CLIFM" ] || ! [ -f "${CLIFM}/bookmarks.clifm" ]; then
printf "Bookmarks file for CliFM not found\n" >&2
printf "Bookmarks file for Clifm not found\n" >&2
exit 1
fi

@@ -44,22 +44,22 @@ while read -r line; do
fi

if [ -z "$name" ] || [ -z "$path" ]; then
printf "CliFM: %s: Bookmark cannot be imported\n" "$line" >&2
printf "clifm: %s: Bookmark cannot be imported\n" "$line" >&2
continue
fi
bmn=$((bmn + 1))
printf "[%s]%s\n" "$name" "$path" >> "$clifm_bm"
done < "$file"

if [ "$bmn" -gt 0 ]; then
printf "CliFM: %d bookmark(s) successfully imported\n" "$bmn"
printf "clifm: %d bookmark(s) successfully imported\n" "$bmn"
if [ -n "$CLIFM_BUS" ]; then
echo "bm reload" > "$CLIFM_BUS"
else
printf "Restart CliFM for changes to take effect\n"
fi
else
printf "CliFM: No bookmarks imported\n"
printf "clifm: No bookmarks imported\n"
fi

exit 0
2 changes: 1 addition & 1 deletion plugins/clip.sh
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ print_help() {
name="${CLIFM_PLUGIN_NAME:-$(basename "$0")}"
printf "Interact with the system clipboard\n"
printf "\n\x1b[1mUSAGE\x1b[0m\n %s [e, export] [i, import]\n" "$name"
printf "\nUse the 'e, export' parameter to send selected files to the system clipboard (as a newline separated list of entries), and the 'i, import' parameter to import files (as a newline separated list) from the system clipboard to CliFM's Selection Box\n"
printf "\nUse the 'e, export' parameter to send selected files to the system clipboard (as a newline separated list of entries), and the 'i, import' parameter to import files (as a newline separated list) from the system clipboard to Clifm's Selection Box\n"
}

if [ -z "$1" ] || [ "$1" = "--help" ] || [ "$1" = "-h" ] ; then
2 changes: 1 addition & 1 deletion plugins/colors.sh
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ name="${CLIFM_PLUGIN_NAME:-$(basename "$0")}"
USAGE="Usage: $name [16, 256, test]"

if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
printf "Terminal colors test script for CliFM\n"
printf "Terminal colors test script for Clifm\n"
printf "\n\x1b[1mUSAGE\x1b[0m\n %s [16, 256, test]\n" "$name"
exit 1
fi
2 changes: 1 addition & 1 deletion plugins/disk_analyzer.sh
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
# Right, Enter: cd into hovered directory or open hovered file and exit.
# Home/end: go to first/last file
# TAB: Select files
# Ctrl-s: Confirm selection: send selected files to CliFM Selbox
# Ctrl-s: Confirm selection: send selected files to Clifm's Selbox
# Shift+up/down: Move one line up/down in the preview window
# Alt+up/down: Move to the beginning/end in the preview window
# Press Esc or Ctrl-q to exit.
2 changes: 1 addition & 1 deletion plugins/finder.sh
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ if [ "$finder" = "fzf" ]; then
--bind "tab:accept" --info=inline --color="$(get_fzf_colors)")"
else
# shellcheck disable=SC2012
FILE="$(ls -A | rofi -dmenu -p CliFM)"
FILE="$(ls -A | rofi -dmenu -p clifm)"
fi

if [ -n "$FILE" ]; then
2 changes: 1 addition & 1 deletion plugins/fzfdesel.sh
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@

if [ -n "$1" ] && { [ "$1" = "--help" ] || [ "$1" = "-h" ]; }; then
name="${CLIFM_PLUGIN_NAME:-$(basename "$0")}"
printf "Deselect CliFM selected files using FZF\n"
printf "Deselect Clifm selected files using FZF\n"
printf "\n\x1b[1mUSAGE\x1b[0m\n %s\n" "$name"
exit 0
fi
2 changes: 1 addition & 1 deletion plugins/fzfnav.sh
Original file line number Diff line number Diff line change
@@ -158,7 +158,7 @@ $FZF_HEADER" --marker="*" --preview-window=:wrap "$(fzf_borders)" \
# If FZF returned no file, exit
[ ${#file} -eq 0 ] && return 0

# If we have selected files, send them to the CliFM Selbox
# If we have selected files, send them to the Clifm Selbox
if [ -f "$TMP_SEL" ]; then
echo "$file" > "$TMP_SEL"
while read -r line; do
4 changes: 2 additions & 2 deletions plugins/fzfsel.sh
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ starting from the current directory (aka flat or branch view).
\PATTERN is a glob expression used to filter files. Ex: '-f \*.pdf' \
will recursively list all .pdf files in the current directory.
At exit, selected files are sent to CliFM's Selection Box.
At exit, selected files are sent to Clifm's Selection Box.
Dependencies: fzf(1), find(1)\n" "$name"
exit 0
@@ -56,7 +56,7 @@ Ctrl-d: Deselect all files
Ctrl-t: Invert selection
Enter: Confirm selection, exit, and send selected files to CliFM
Enter: Confirm selection, exit, and send selected files to Clifm
Esc: Cancel and exit"

8 changes: 4 additions & 4 deletions plugins/ihelp.sh
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@

if [ -n "$1" ] && { [ "$1" = "--help" ] || [ "$1" = "-h" ]; }; then
name="${CLIFM_PLUGIN_NAME:-$(basename "$0")}"
printf "Interactively browse the CliFM manpage via FZF or Rofi\n"
printf "Interactively browse the Clifm manpage via FZF or Rofi\n"
printf "\n\x1b[1mUSAGE\x1b[0m\n %s\n" "$name"
exit 0
fi
@@ -43,7 +43,7 @@ fi

# Source our plugins helper
if [ -z "$CLIFM_PLUGINS_HELPER" ] || ! [ -f "$CLIFM_PLUGINS_HELPER" ]; then
printf "CliFM: Unable to find plugins-helper file\n" >&2
printf "clifm: Unable to find the plugins-helper file\n" >&2
exit 1
fi
# shellcheck source=/dev/null
@@ -162,9 +162,9 @@ _colors="$(get_fzf_colors)"
while [ -n "$a" ]; do
if [ "$filter" = "fzf" ]; then
# shellcheck disable=SC2154
a="$(printf "%s\n" "$CMDS" | sed 's/@//g' | fzf --prompt="$fzf_prompt" --header "Browse CliFM's manpage" --reverse --height="$fzf_height" --info=inline --color="$_colors")"
a="$(printf "%s\n" "$CMDS" | sed 's/@//g' | fzf --prompt="$fzf_prompt" --header "Browse Clifm's manpage" --reverse --height="$fzf_height" --info=inline --color="$_colors")"
else
a="$(printf "%s\n" "$CMDS" | sed 's/@//g' | rofi -dmenu -p "CliFM")"
a="$(printf "%s\n" "$CMDS" | sed 's/@//g' | rofi -dmenu -p "clifm")"
fi

if [ -n "$a" ]; then
4 changes: 2 additions & 2 deletions plugins/jumper.sh
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@

if [ -n "$1" ] && { [ "$1" = "--help" ] || [ "$1" = "-h" ]; }; then
name="${CLIFM_PLUGIN_NAME:-$(basename "$0")}"
printf "Navigate CliFM's jump database via FZF or Rofi. Press Enter to cd into the selected directory\n"
printf "Navigate Clifm's jump database via FZF or Rofi. Press Enter to cd into the selected directory\n"
printf "\n\x1b[1mUSAGE\x1b[0m\n %s\n" "$name"
exit 0
fi
@@ -45,7 +45,7 @@ fzf --reverse --height "$fzf_height" \
--color="$(get_fzf_colors)" \
--prompt="$fzf_prompt" --header "Jump to a directory in the jump database")"
else
path="$(cut -d ":" -f4 "$FILE" | grep -v ^"@" | rofi -dmenu -p CliFM)"
path="$(cut -d ":" -f4 "$FILE" | grep -v ^"@" | rofi -dmenu -p clifm)"
fi

if [ -n "$path" ]; then
2 changes: 1 addition & 1 deletion plugins/virtualize.sh
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
# Author: L. Abramovich
# License: GPL2+

# Note: A new instance of CliFM will be spawned on a new terminal window
# Note: A new instance of Clifm will be spawned on a new terminal window
# using $term_cmd, which defaults to 'xterm -e'. Edit this variable to
# use your favorite terminal emulator instead, for example:
# term_cmd="kitty sh -c"

0 comments on commit bff0b08

Please sign in to comment.