Re: Any interest in a batch file renamer in KIO?

2021-05-20 Thread Méven
Le mer. 19 mai 2021 à 17:13, Nate Graham  a écrit :

> On 5/19/21 9:10 AM, Nomen Luni wrote:
> > I can't remember if KRename comes pre-installed in Neon? If not, doing
> > so would increase discoverability- which may filter to other
> > distributions. Also, the Dolphin service menu entry appears as 'Rename
> > with KRename,' which IMO could do with changing. 'Batch rename,' or
> > 'Bulk rename' would be much more aesthetic and meaningful to the average
> > user, IMO.
>
> Absolutely agree.
>
> We should also not show the context menu item when there is only one
> file selected. :)
>

You just need to implement a KAbstractFileItemActionPlugin like for
instance: https://invent.kde.org/graphics/gwenview/-/merge_requests/24/diffs
.

You can then even start with special modes for photos, images, etc based on
mimetype of input files easily.

Once we have a KAbstractFileItemActionPlugin in krename, including it in
default apps installed makes a lot more sense for distros.

We could imagine splitting krename, so that you can the minimal install
this plugin without having the advanced app.
Then you'd have something worse considering always installed.

-- 
Méven

Le mer. 19 mai 2021 à 17:32, Glen Ditchfield  a
écrit :

> On Wednesday, May 19, 2021 10:10:32 A.M. CDT Nomen Luni wrote:
> > I can't remember if KRename comes pre-installed in Neon?
>
> It does not.
>
>
>

-- 
Méven


Re: Any interest in a batch file renamer in KIO?

2021-05-19 Thread Glen Ditchfield
On Wednesday, May 19, 2021 10:10:32 A.M. CDT Nomen Luni wrote:
> I can't remember if KRename comes pre-installed in Neon?

It does not.




Re: Any interest in a batch file renamer in KIO?

2021-05-19 Thread Nate Graham

On 5/19/21 9:10 AM, Nomen Luni wrote:

I can't remember if KRename comes pre-installed in Neon? If not, doing
so would increase discoverability- which may filter to other
distributions. Also, the Dolphin service menu entry appears as 'Rename
with KRename,' which IMO could do with changing. 'Batch rename,' or
'Bulk rename' would be much more aesthetic and meaningful to the average
user, IMO.


Absolutely agree.

We should also not show the context menu item when there is only one 
file selected. :)


Nate


Re: Any interest in a batch file renamer in KIO?

2021-05-19 Thread Nomen Luni

I can't remember if KRename comes pre-installed in Neon? If not, doing
so would increase discoverability- which may filter to other
distributions. Also, the Dolphin service menu entry appears as 'Rename
with KRename,' which IMO could do with changing. 'Batch rename,' or
'Bulk rename' would be much more aesthetic and meaningful to the average
user, IMO.

On 19/05/2021 15:21, Nate Graham wrote:



On 5/19/21 6:33 AM, Konstantin Kharlamov wrote:

On Wed, 2021-05-19 at 15:29 +0300, Konstantin Kharlamov wrote:

On Wed, 2021-05-19 at 13:30 +0200, Harald Sitter wrote:
My point on discoverability was that a person more likely to
question "Hmm,
what plugins do I have in Dolphin" and find out this plugin, rather
than "Hmm,
what can I use to rename a bunch of files", in which case they need
to use
search engine, and after they did it, they'll most likely get a
bunch of bash
solutions. KRename won't be one of them unless they specifically
search for
"KDE file rename tools".

So in that sense, discoverability of a plugin is higher than that of
a stand-
alone app.


To clarify: this of course implies the plugin would be included by
default with
Dolphin. Otherwise indeed, there's no difference in discoverability
compared to
KRename



Since installing KRename adds a relevant item to Dolphin's context
menu automatically, maybe the real problem is simply that KRename
isn't installed by default in the typical distros that our users use,
so nobody ever finds this functionality unless they happened to
already know about about and manually installed KRename.


Nate


Re: Any interest in a batch file renamer in KIO?

2021-05-19 Thread Nate Graham




On 5/19/21 6:33 AM, Konstantin Kharlamov wrote:

On Wed, 2021-05-19 at 15:29 +0300, Konstantin Kharlamov wrote:

On Wed, 2021-05-19 at 13:30 +0200, Harald Sitter wrote:
My point on discoverability was that a person more likely to question "Hmm,
what plugins do I have in Dolphin" and find out this plugin, rather than "Hmm,
what can I use to rename a bunch of files", in which case they need to use
search engine, and after they did it, they'll most likely get a bunch of bash
solutions. KRename won't be one of them unless they specifically search for
"KDE file rename tools".

So in that sense, discoverability of a plugin is higher than that of a stand-
alone app.


To clarify: this of course implies the plugin would be included by default with
Dolphin. Otherwise indeed, there's no difference in discoverability compared to
KRename



Since installing KRename adds a relevant item to Dolphin's context menu 
automatically, maybe the real problem is simply that KRename isn't 
installed by default in the typical distros that our users use, so 
nobody ever finds this functionality unless they happened to already 
know about about and manually installed KRename.



Nate


Re: Any interest in a batch file renamer in KIO?

2021-05-19 Thread Konstantin Kharlamov
On Wed, 2021-05-19 at 15:29 +0300, Konstantin Kharlamov wrote:
> On Wed, 2021-05-19 at 13:30 +0200, Harald Sitter wrote:
> > On Mon, May 17, 2021 at 12:38 PM Nomen Luni  wrote:
> > > 
> > > Hi,
> > > 
> > > I actually looked at KRename some time back and it wasn't quite what I
> > > wanted. It does actually appear as a service menu option when installed,
> > > so it has that base covered, however for my needs it's felt a little
> > > unwieldy. My application, whilst no doubt a little less capable feels
> > > smaller and more streamlined to operate and dare I say more at a level
> > > consistent with the Dolphin ethos in terms of the simplicity of the GUI
> > > - I realise this is subjective. If anyone has used the Thunar 'bulk
> > > rename' plugin, mine is heavily influenced by the interface of that (but
> > > implemented in Qt which was one of the prime reasons for its
> > > creation)... so it wasn't a case of 'new code is more fun,' so much as
> > > 'this is exactly what I want.'
> > > 
> > > Since KRename already operates as a Dolphin plugin it shouldn't be too
> > > much work to integrate it directly into Dolphin, or perhaps even just
> > > ship it as a default plugin, however that isn't something I'm interested
> > > in working on as I don't use it... benevolent self interest and all that.
> > > 
> > > Dolphin could really benefit from a batch rename function in my opinion,
> > > what form that functionality should take, pre-existing or new, is a
> > > worthwhile conversation. In any case, Harald's point regarding
> > > discoverability is a valid one, as I'm sure a large proportion of users
> > > never take the time to investigate the service menu plugins.
> > 
> > My point was more that all the "backendy" bits already exist in
> > krename, the discoverability it lends is just bonus. And while I
> > completely agree that the current UI is very... eh, advanced... you
> > could simply stick another simplistic UI on top, or rework the default
> > appearance of krename so it is simpler by default and powerful when
> > needed. The way I see it krename could definitely become more
> > appealing to potential users by being simpler, and at the same time if
> > you invest UI engineering into krename you don't have to worry about
> > any of the logic behind renaming in of itself since that already
> > exists and is QA'd.
> > 
> > HS
> 
> My point on discoverability was that a person more likely to question "Hmm,
> what plugins do I have in Dolphin" and find out this plugin, rather than "Hmm,
> what can I use to rename a bunch of files", in which case they need to use
> search engine, and after they did it, they'll most likely get a bunch of bash
> solutions. KRename won't be one of them unless they specifically search for
> "KDE file rename tools".
> 
> So in that sense, discoverability of a plugin is higher than that of a stand-
> alone app.

To clarify: this of course implies the plugin would be included by default with
Dolphin. Otherwise indeed, there's no difference in discoverability compared to
KRename



Re: Any interest in a batch file renamer in KIO?

2021-05-19 Thread Konstantin Kharlamov
No worries!

On Wed, 2021-05-19 at 13:27 +0100, Nomen Luni wrote:
> P.S. Apologies - I believe the point regarding discoverability may have
> been Konstantin's.
> 
> On 19/05/2021 12:30, Harald Sitter wrote:
> > On Mon, May 17, 2021 at 12:38 PM Nomen Luni  wrote:
> > > Hi,
> > > 
> > > I actually looked at KRename some time back and it wasn't quite what I
> > > wanted. It does actually appear as a service menu option when installed,
> > > so it has that base covered, however for my needs it's felt a little
> > > unwieldy. My application, whilst no doubt a little less capable feels
> > > smaller and more streamlined to operate and dare I say more at a level
> > > consistent with the Dolphin ethos in terms of the simplicity of the GUI
> > > - I realise this is subjective. If anyone has used the Thunar 'bulk
> > > rename' plugin, mine is heavily influenced by the interface of that (but
> > > implemented in Qt which was one of the prime reasons for its
> > > creation)... so it wasn't a case of 'new code is more fun,' so much as
> > > 'this is exactly what I want.'
> > > 
> > > Since KRename already operates as a Dolphin plugin it shouldn't be too
> > > much work to integrate it directly into Dolphin, or perhaps even just
> > > ship it as a default plugin, however that isn't something I'm interested
> > > in working on as I don't use it... benevolent self interest and all that.
> > > 
> > > Dolphin could really benefit from a batch rename function in my opinion,
> > > what form that functionality should take, pre-existing or new, is a
> > > worthwhile conversation. In any case, Harald's point regarding
> > > discoverability is a valid one, as I'm sure a large proportion of users
> > > never take the time to investigate the service menu plugins.
> > My point was more that all the "backendy" bits already exist in
> > krename, the discoverability it lends is just bonus. And while I
> > completely agree that the current UI is very... eh, advanced... you
> > could simply stick another simplistic UI on top, or rework the default
> > appearance of krename so it is simpler by default and powerful when
> > needed. The way I see it krename could definitely become more
> > appealing to potential users by being simpler, and at the same time if
> > you invest UI engineering into krename you don't have to worry about
> > any of the logic behind renaming in of itself since that already
> > exists and is QA'd.
> > 
> > HS




Re: Any interest in a batch file renamer in KIO?

2021-05-19 Thread Konstantin Kharlamov
On Wed, 2021-05-19 at 13:30 +0200, Harald Sitter wrote:
> On Mon, May 17, 2021 at 12:38 PM Nomen Luni  wrote:
> > 
> > Hi,
> > 
> > I actually looked at KRename some time back and it wasn't quite what I
> > wanted. It does actually appear as a service menu option when installed,
> > so it has that base covered, however for my needs it's felt a little
> > unwieldy. My application, whilst no doubt a little less capable feels
> > smaller and more streamlined to operate and dare I say more at a level
> > consistent with the Dolphin ethos in terms of the simplicity of the GUI
> > - I realise this is subjective. If anyone has used the Thunar 'bulk
> > rename' plugin, mine is heavily influenced by the interface of that (but
> > implemented in Qt which was one of the prime reasons for its
> > creation)... so it wasn't a case of 'new code is more fun,' so much as
> > 'this is exactly what I want.'
> > 
> > Since KRename already operates as a Dolphin plugin it shouldn't be too
> > much work to integrate it directly into Dolphin, or perhaps even just
> > ship it as a default plugin, however that isn't something I'm interested
> > in working on as I don't use it... benevolent self interest and all that.
> > 
> > Dolphin could really benefit from a batch rename function in my opinion,
> > what form that functionality should take, pre-existing or new, is a
> > worthwhile conversation. In any case, Harald's point regarding
> > discoverability is a valid one, as I'm sure a large proportion of users
> > never take the time to investigate the service menu plugins.
> 
> My point was more that all the "backendy" bits already exist in
> krename, the discoverability it lends is just bonus. And while I
> completely agree that the current UI is very... eh, advanced... you
> could simply stick another simplistic UI on top, or rework the default
> appearance of krename so it is simpler by default and powerful when
> needed. The way I see it krename could definitely become more
> appealing to potential users by being simpler, and at the same time if
> you invest UI engineering into krename you don't have to worry about
> any of the logic behind renaming in of itself since that already
> exists and is QA'd.
> 
> HS

My point on discoverability was that a person more likely to question "Hmm, 
what plugins do I have in Dolphin" and find out this plugin, rather than "Hmm, 
what can I use to rename a bunch of files", in which case they need to use 
search engine, and after they did it, they'll most likely get a bunch of bash 
solutions. KRename won't be one of them unless they specifically search for 
"KDE file rename tools".

So in that sense, discoverability of a plugin is higher than that of a 
stand-alone app.



Re: Any interest in a batch file renamer in KIO?

2021-05-19 Thread Nomen Luni

P.S. Apologies - I believe the point regarding discoverability may have
been Konstantin's.

On 19/05/2021 12:30, Harald Sitter wrote:

On Mon, May 17, 2021 at 12:38 PM Nomen Luni  wrote:

Hi,

I actually looked at KRename some time back and it wasn't quite what I
wanted. It does actually appear as a service menu option when installed,
so it has that base covered, however for my needs it's felt a little
unwieldy. My application, whilst no doubt a little less capable feels
smaller and more streamlined to operate and dare I say more at a level
consistent with the Dolphin ethos in terms of the simplicity of the GUI
- I realise this is subjective. If anyone has used the Thunar 'bulk
rename' plugin, mine is heavily influenced by the interface of that (but
implemented in Qt which was one of the prime reasons for its
creation)... so it wasn't a case of 'new code is more fun,' so much as
'this is exactly what I want.'

Since KRename already operates as a Dolphin plugin it shouldn't be too
much work to integrate it directly into Dolphin, or perhaps even just
ship it as a default plugin, however that isn't something I'm interested
in working on as I don't use it... benevolent self interest and all that.

Dolphin could really benefit from a batch rename function in my opinion,
what form that functionality should take, pre-existing or new, is a
worthwhile conversation. In any case, Harald's point regarding
discoverability is a valid one, as I'm sure a large proportion of users
never take the time to investigate the service menu plugins.

My point was more that all the "backendy" bits already exist in
krename, the discoverability it lends is just bonus. And while I
completely agree that the current UI is very... eh, advanced... you
could simply stick another simplistic UI on top, or rework the default
appearance of krename so it is simpler by default and powerful when
needed. The way I see it krename could definitely become more
appealing to potential users by being simpler, and at the same time if
you invest UI engineering into krename you don't have to worry about
any of the logic behind renaming in of itself since that already
exists and is QA'd.

HS


Re: Any interest in a batch file renamer in KIO?

2021-05-19 Thread Nomen Luni

Point taken. I guess the moral of the story here is I should have got in
touch before building my application.

On 19/05/2021 12:30, Harald Sitter wrote:

other simplistic UI on top, or rework the default
appearance of krename so it is simpler by default and powerful when
needed. The way I see it krename could definitely become more
appealing to potential users by being simpler, and at the same time if
you invest UI engineering into krename you don't have to worry about
any of the logic behind renaming in of itself since that already
exists and is QA'd.


Re: Any interest in a batch file renamer in KIO?

2021-05-19 Thread Harald Sitter
On Mon, May 17, 2021 at 12:38 PM Nomen Luni  wrote:
>
> Hi,
>
> I actually looked at KRename some time back and it wasn't quite what I
> wanted. It does actually appear as a service menu option when installed,
> so it has that base covered, however for my needs it's felt a little
> unwieldy. My application, whilst no doubt a little less capable feels
> smaller and more streamlined to operate and dare I say more at a level
> consistent with the Dolphin ethos in terms of the simplicity of the GUI
> - I realise this is subjective. If anyone has used the Thunar 'bulk
> rename' plugin, mine is heavily influenced by the interface of that (but
> implemented in Qt which was one of the prime reasons for its
> creation)... so it wasn't a case of 'new code is more fun,' so much as
> 'this is exactly what I want.'
>
> Since KRename already operates as a Dolphin plugin it shouldn't be too
> much work to integrate it directly into Dolphin, or perhaps even just
> ship it as a default plugin, however that isn't something I'm interested
> in working on as I don't use it... benevolent self interest and all that.
>
> Dolphin could really benefit from a batch rename function in my opinion,
> what form that functionality should take, pre-existing or new, is a
> worthwhile conversation. In any case, Harald's point regarding
> discoverability is a valid one, as I'm sure a large proportion of users
> never take the time to investigate the service menu plugins.

My point was more that all the "backendy" bits already exist in
krename, the discoverability it lends is just bonus. And while I
completely agree that the current UI is very... eh, advanced... you
could simply stick another simplistic UI on top, or rework the default
appearance of krename so it is simpler by default and powerful when
needed. The way I see it krename could definitely become more
appealing to potential users by being simpler, and at the same time if
you invest UI engineering into krename you don't have to worry about
any of the logic behind renaming in of itself since that already
exists and is QA'd.

HS


Re: Any interest in a batch file renamer in KIO?

2021-05-17 Thread Nomen Luni

Hi,

I actually looked at KRename some time back and it wasn't quite what I
wanted. It does actually appear as a service menu option when installed,
so it has that base covered, however for my needs it's felt a little
unwieldy. My application, whilst no doubt a little less capable feels
smaller and more streamlined to operate and dare I say more at a level
consistent with the Dolphin ethos in terms of the simplicity of the GUI
- I realise this is subjective. If anyone has used the Thunar 'bulk
rename' plugin, mine is heavily influenced by the interface of that (but
implemented in Qt which was one of the prime reasons for its
creation)... so it wasn't a case of 'new code is more fun,' so much as
'this is exactly what I want.'

Since KRename already operates as a Dolphin plugin it shouldn't be too
much work to integrate it directly into Dolphin, or perhaps even just
ship it as a default plugin, however that isn't something I'm interested
in working on as I don't use it... benevolent self interest and all that.

Dolphin could really benefit from a batch rename function in my opinion,
what form that functionality should take, pre-existing or new, is a
worthwhile conversation. In any case, Harald's point regarding
discoverability is a valid one, as I'm sure a large proportion of users
never take the time to investigate the service menu plugins.

Lee


On 17/05/2021 10:53, Konstantin Kharlamov wrote:

On Mon, 2021-05-17 at 11:44 +0200, Harald Sitter wrote:

Yo

On Sat, May 15, 2021 at 4:53 PM Nomen Luni  wrote:

Hi Folks,

First time poster. I've recently developed a batch file renaming utility
which operates as a service menu plugin within Dolphin. If anyone has
seen the 'bulk rename' plugin for Thunar, this is highly inspired by
that app in terms of functionality but is a from-scratch implementation
using the Qt stack.

I'm writing to gauge if there's any interest for inclusion in Plasma and
speaking with Nate Graham he said KIO might be the place for it to live
and directed me here.

So basically, is there any interest and if so, could someone give me
some guidance on how to integrate/get it reviewed and added?

The code is on Github. Currently it's compiling through Qt Creator:

https://github.com/Nomen-Luni/Bionic-Batch-Renamer


Neat!
Have you considered contributing to https://apps.kde.org/krename/

I know new code is more fun but krename is already incredibly powerful :)

 From what I read, the main difference is OP developed a Dolphin plugin, whereas
KRename is a separate app. If this plugin will get included in Plasma, then it
will be immediately available in default Plasma installation. Whereas KRename is
a special utility for specific usecase, which I don't think is a part of of
default installation.

I think a plugin discoverbility for a popular app might be a little bit higher
than that of special application, which one wouldn't know about unless they
specifically search for it.


HS




Re: Any interest in a batch file renamer in KIO?

2021-05-17 Thread Konstantin Kharlamov
On Mon, 2021-05-17 at 11:44 +0200, Harald Sitter wrote:
> Yo
> 
> On Sat, May 15, 2021 at 4:53 PM Nomen Luni  wrote:
> > 
> > Hi Folks,
> > 
> > First time poster. I've recently developed a batch file renaming utility
> > which operates as a service menu plugin within Dolphin. If anyone has
> > seen the 'bulk rename' plugin for Thunar, this is highly inspired by
> > that app in terms of functionality but is a from-scratch implementation
> > using the Qt stack.
> > 
> > I'm writing to gauge if there's any interest for inclusion in Plasma and
> > speaking with Nate Graham he said KIO might be the place for it to live
> > and directed me here.
> > 
> > So basically, is there any interest and if so, could someone give me
> > some guidance on how to integrate/get it reviewed and added?
> > 
> > The code is on Github. Currently it's compiling through Qt Creator:
> > 
> > https://github.com/Nomen-Luni/Bionic-Batch-Renamer
> > 
> 
> Neat!
> Have you considered contributing to https://apps.kde.org/krename/
> 
> I know new code is more fun but krename is already incredibly powerful :)

>From what I read, the main difference is OP developed a Dolphin plugin, whereas
KRename is a separate app. If this plugin will get included in Plasma, then it
will be immediately available in default Plasma installation. Whereas KRename is
a special utility for specific usecase, which I don't think is a part of of
default installation.

I think a plugin discoverbility for a popular app might be a little bit higher
than that of special application, which one wouldn't know about unless they
specifically search for it.

> HS




Re: Any interest in a batch file renamer in KIO?

2021-05-17 Thread Harald Sitter
Yo

On Sat, May 15, 2021 at 4:53 PM Nomen Luni  wrote:
>
> Hi Folks,
>
> First time poster. I've recently developed a batch file renaming utility
> which operates as a service menu plugin within Dolphin. If anyone has
> seen the 'bulk rename' plugin for Thunar, this is highly inspired by
> that app in terms of functionality but is a from-scratch implementation
> using the Qt stack.
>
> I'm writing to gauge if there's any interest for inclusion in Plasma and
> speaking with Nate Graham he said KIO might be the place for it to live
> and directed me here.
>
> So basically, is there any interest and if so, could someone give me
> some guidance on how to integrate/get it reviewed and added?
>
> The code is on Github. Currently it's compiling through Qt Creator:
>
> https://github.com/Nomen-Luni/Bionic-Batch-Renamer
> 

Neat!
Have you considered contributing to https://apps.kde.org/krename/

I know new code is more fun but krename is already incredibly powerful :)

HS


Re: Any interest in a batch file renamer in KIO?

2021-05-15 Thread Chinmoy Pradhan
Hi,

A few years back I worked on a BatchRenameJob for KIO[1]. From a cursory
glance yours seems to have more features.

Can you have a look at BatchRenameJob and see if you could add the features
there?
Or are we talking about two different things here?

Regards,
Chinmoy

[1]:
https://invent.kde.org/frameworks/kio/-/blob/master/src/core/batchrenamejob.h

On Sat, May 15, 2021 at 8:23 PM Nomen Luni  wrote:

> Hi Folks,
>
> First time poster. I've recently developed a batch file renaming utility
> which operates as a service menu plugin within Dolphin. If anyone has
> seen the 'bulk rename' plugin for Thunar, this is highly inspired by
> that app in terms of functionality but is a from-scratch implementation
> using the Qt stack.
>
> I'm writing to gauge if there's any interest for inclusion in Plasma and
> speaking with Nate Graham he said KIO might be the place for it to live
> and directed me here.
>
> So basically, is there any interest and if so, could someone give me
> some guidance on how to integrate/get it reviewed and added?
>
> The code is on Github. Currently it's compiling through Qt Creator:
>
> https://github.com/Nomen-Luni/Bionic-Batch-Renamer
> 
>
> It can be installed through Dolphin if anyone fancies a look:
>
> Settings->Configure Dolphin->Context Menu->Download New Services and
> it's named 'Bionic Batch Renamer.'
>
> There are currently no instruction but it's very intuitive. Select some
> files in Dolphin, right click and select 'Batch rename' then play with
> the GUI to create new filenames based on operations on the old ones,
> e.g. change the case, add numbers, remove characters etc.
>
> Cheers
>
> Lee
>
>


Any interest in a batch file renamer in KIO?

2021-05-15 Thread Nomen Luni

Hi Folks,

First time poster. I've recently developed a batch file renaming utility
which operates as a service menu plugin within Dolphin. If anyone has
seen the 'bulk rename' plugin for Thunar, this is highly inspired by
that app in terms of functionality but is a from-scratch implementation
using the Qt stack.

I'm writing to gauge if there's any interest for inclusion in Plasma and
speaking with Nate Graham he said KIO might be the place for it to live
and directed me here.

So basically, is there any interest and if so, could someone give me
some guidance on how to integrate/get it reviewed and added?

The code is on Github. Currently it's compiling through Qt Creator:

https://github.com/Nomen-Luni/Bionic-Batch-Renamer


It can be installed through Dolphin if anyone fancies a look:

Settings->Configure Dolphin->Context Menu->Download New Services and
it's named 'Bionic Batch Renamer.'

There are currently no instruction but it's very intuitive. Select some
files in Dolphin, right click and select 'Batch rename' then play with
the GUI to create new filenames based on operations on the old ones,
e.g. change the case, add numbers, remove characters etc.

Cheers

Lee