#1 2010-05-04 07:45

narayan
Senior Member
Registered: 2009-02-08
Posts: 470

In "Remove" rule, provide entire file name for editing

The Remove rule is supposed to remove an existing part of the file-name.
Yet this rule starts with a blank: The user has to compose the string.

This extra effort (and possible errors) can be avoided if the rule loads the focused file's name in the input box.

The user can now edit that name so that only the string that is to be removed is left in the box.

Optionally, the user can select multiple strings from the name.
(He will have to insert a | separator between those strings.)

For example, I have three files:

Blender-3D-Noob_to_Pro-Beginner.pdf
Blender-3D-Noob_to_Pro-Advanced.pdf
Blender-3D-Noob_to_Pro-Miscellaneous.pdf

And I want to delete the "Blender-3D-Noob_to_Pro-" string from all file names.

In my proposed scenario, the Remove rule will offer the entire file name.
I will remove everything except "Blender-3D-Noob_to_Pro-" and press ENTER.

(In the current version, I have to enter "Blender-3D-Noob_to_Pro-").

Of course, there are other tricks, But that's far too complex for the normal user.

For example, I can press F2 on the focused file, and then select the string "Blender-3D-Noob_to_Pro-", and press CTRL+C to place it on the clipboard. Then I press ESC to cancel the edit mode. Then I launch the Remove rule, and then press CTRL+V to paste the string in the input box.

Last edited by narayan (2010-05-05 02:51)

Offline

#2 2010-06-03 14:53

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,379

Re: In "Remove" rule, provide entire file name for editing

I was skeptical about this feature at first but then decided to give it a try. I've implemented it as experimental feature and will remove it at the at the first sign of any negative side effects, e.g. undesired resetting of user entered text with the sample text.

Try latest development version.

Offline

#3 2010-06-03 16:39

narayan
Senior Member
Registered: 2009-02-08
Posts: 470

Re: In "Remove" rule, provide entire file name for editing

Thank you!

A small point: Only the base name should be picked; not the extension.

Offline

#4 2010-06-03 18:27

eR@SeR
Senior Member
From: Земун, Србија
Registered: 2008-01-23
Posts: 353

Re: In "Remove" rule, provide entire file name for editing

Hmmm seems to work fine. Nice job Denis smile
Maybe it's unnecessary...when is unticked (configured), "Skip extension" should/could select all filename?
Or better to stay with extension but "Skip extension" prevents any undesired removal?


TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!

Offline

Board footer

Powered by FluxBB