Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

rename file name #424

Open
se7en-x230 opened this issue Nov 14, 2020 · 5 comments
Open

rename file name #424

se7en-x230 opened this issue Nov 14, 2020 · 5 comments

Comments

@se7en-x230
Copy link

Is there a way to rename images?

@sdx23
Copy link
Contributor

sdx23 commented Nov 14, 2020 via email

@ghost
Copy link

ghost commented Nov 19, 2020

This in your keyhandler should do it

    "r")
            name="$(dmenu -p "rename $file to: ")" 2> /dev/null
            if ! [ -z "$name" ]; then
                mv "$file" "$name"
            fi
            ;;

@ProgrammingLife
Copy link

@pikin-cock It's better to use absolute path like this:

	"r")
		name="$(dmenu -p "rename $file to: ")" 2> /dev/null
		if ! [ -z "$name" ]; then
			#mv "$file" "$name"
			mv "$file" "$(dirname $file)/$name"
		fi
		;;

@ghost
Copy link

ghost commented Nov 30, 2020

Oh I see, thanks!

@se7en-x230
Copy link
Author

exellent works like a charm ... thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants