! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Command line argument to prefill bulk renamer widgets
Status:
RESOLVED: MOVED
Severity:
enhancement

Comments

Description Anaël O. 2020-04-29 09:23:31 CEST
It would be very handy to be able to pick a previous "pattern" or "replace" value when entering each field.
Most of the time, those values are re-used on a regular basis, and selecting them without having the need to rewrite them entirely (especially when it's a complex regex) would help a lot.

Deleting each item individually could be done just like in browsers autocomplete fields with Shift+Delete.
Comment 1 alexxcons editbugs 2020-04-29 21:58:31 CEST
Uff .. such a feature would require a serious amount of work, for a small gain.

If you have time to work on it, patches would be welcome !
If not, I would rather close this bug.
Comment 2 Anaël O. 2020-04-30 07:47:21 CEST
Yes I agree this is a bit complex for the gain.
Maybe being able to pass an argument to the command line to prefill those fields would be enough, but I'm not sure this can be done since the renamer is part of Thunar and not a dedicated bin.

You may close this bug. Thanks for your time and for Xfce :)
Comment 3 alexxcons editbugs 2020-04-30 10:04:38 CEST
(In reply to Anaël O. from comment #2)
> Maybe being able to pass an argument to the command line to prefill those
> fields would be enough, but I'm not sure this can be done since the renamer
> is part of Thunar and not a dedicated bin.
Good idea, I guess that could be done with reasonable effort. "thunar_application_command_line" is the method to look into.

Possibly something like:
--prefill-bulk-renamer  search_replace="SearchString"
You would need to define a list of widgets which can be prefilled

I dont have time for that, though if you are motivated, please go for it. Patches always are welcome !

> You may close this bug. Thanks for your time and for Xfce :)
I just renamed it now to reflect your idea.
Comment 4 Anaël O. 2020-04-30 11:25:04 CEST
I would love to help but I'm just a PHP developer so I don't think you would want me to touch such code ;)

I'll take a look to https://www.bountysource.com/teams/xfce in the meantime, I'm a big fan of Xfce so that would seem fair :)
Comment 5 Dmitry Ovcharov 2020-05-12 18:55:23 CEST
I can implement this feature. With pleasure. If this feature will be assigned to me and i will have about 2 weeks for implementing it.
Comment 6 alexxcons editbugs 2020-05-12 21:54:44 CEST
(In reply to Dmitry Ovcharov from comment #5)
> I can implement this feature. With pleasure. If this feature will be
> assigned to me and i will have about 2 weeks for implementing it.

Nice! Take whatever time you need !

Theo usually is not interested in features :)
Comment 7 Dmitry Ovcharov 2020-05-17 17:01:01 CEST
(In reply to alexxcons from comment #6)
> (In reply to Dmitry Ovcharov from comment #5)
> > I can implement this feature. With pleasure. If this feature will be
> > assigned to me and i will have about 2 weeks for implementing it.
> 
> Nice! Take whatever time you need !
> 
> Theo usually is not interested in features :)

Thanks. This task in progress. I have some success with it.
Comment 8 Anaël O. 2020-05-17 18:38:53 CEST
That's nice to hear! Thanks Dmitry!
Comment 9 Dmitry Ovcharov 2020-05-24 17:26:07 CEST
Almost complete. :)
Comment 10 Git Bot editbugs 2020-05-26 23:51:15 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/299.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #16775

Reported by:
Anaël O.
Reported on: 2020-04-29
Last modified on: 2020-05-26

People

Assignee:
Dmitry Ovcharov
CC List:
2 users

Version

Version:
1.8.14

Attachments

Additional information