Skip to content

Commit

Permalink
Replace menu numbers with alphabets
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Jalal committed Oct 30, 2023
1 parent 319b1b4 commit ebab8e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vedit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,20 +151,20 @@ handle_file() {
*)
echo "Found: $file"
echo "What would you like to do?"
echo "1) Edit"
echo "2) Remove"
echo "3) Copy path to clipboard"
echo "e) Edit"
echo "r) Remove"
echo "c) Copy path to clipboard"
echo -n "Choose an option (1/2/3) or 'n' to exit: "
read -r action
case "$action" in
1)
e)
$EDITOR "$file"
;;
2)
d)
rm "$file"
echo "File removed."
;;
3)
c)
echo -n "$file" | xclip -selection clipboard
echo "Path copied to clipboard."
;;
Expand Down

0 comments on commit ebab8e4

Please sign in to comment.