Re: [gentoo-user] Dolphin and adding a option, if it exists.

2022-10-06 Thread Dale
Neil Bothwick wrote:
> On Thu, 6 Oct 2022 10:10:52 +0200, Arve Barsnes wrote:
>
>> This is probably a case of Dolphin not being a good tool, unless it
>> has a built-in command-line?
>> $ mv newfile oldfile
>> will overwrite the old file in place with the new file with the name
>> of the old file.
> And tab-completion makes this a lot quicker than renaming files in a file
> manager.
>

This is a option I haven't thought of.  The mv command is a good
thought.  Next time I have a lot of these to do, I'll try it.  It just
may work.  Plus, tab completion would be a nice bonus.


>> I know there are many file managers with a built-in terminal, so maybe
>> others have similar possible solutions. I saw someone mention midnight
>> commander which I believe is one.
> Or you could use a drop-down terminal like Yakuake to give a terminal on
> demand, whatever program you are using. Yakuake is for KDE, it wraps
> Konsole, but there are GNOME-ish variants too, I wouldn't be without it.
>
>

I look into Yakuake.  I've never heard of it before.  It's emerging and
I have to run to town to help a friend.

Thanks.

Dale

:-)  :-) 



Re: [gentoo-user] Dolphin and adding a option, if it exists.

2022-10-06 Thread Neil Bothwick
On Thu, 6 Oct 2022 17:19:09 +0200, Ramon Fischer wrote:

> And if you like Bash brace expansions; this one is sometimes quicker, 
> than tab-completion and removing characters:
> 
>      $ mv file.txt{,.bak}
>      file.txt.bak
>      $ mv file.txt,{bak,img}
>      file.txt.img
>      $ mv file.txt{img,}
>      file.txt

$ mv -b oldname newname

If newname exists, it is renamed with  a ~ extension.

> 
> -Ramon
> 
> On 06/10/2022 14:45, Neil Bothwick wrote:
> >> This is probably a case of Dolphin not being a good tool, unless it
> >> has a built-in command-line?
> >> $ mv newfile oldfile
> >> will overwrite the old file in place with the new file with the name
> >> of the old file.  
> > And tab-completion makes this a lot quicker than renaming files in a
> > file manager.
> >  
> 




-- 
Neil Bothwick

I'll never forget the 1st time I ran Windows, but I'm trying...


pgp3rAgl4u77o.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Dolphin and adding a option, if it exists.

2022-10-06 Thread Ramon Fischer

I corrected some typos. This one is syntactically correct:

    $ mv file.txt{,.bak}
    file.txt.bak
    $ mv file.txt.{bak,img}
    file.txt.img
    $ mv file.txt{.img,}
    file.txt

-Ramon

On 06/10/2022 17:19, Ramon Fischer wrote:
And if you like Bash brace expansions; this one is sometimes quicker, 
than tab-completion and removing characters:


    $ mv file.txt{,.bak}
    file.txt.bak
    $ mv file.txt,{bak,img}
    file.txt.img
    $ mv file.txt{img,}
    file.txt

-Ramon 


--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF



OpenPGP_0x155BE26413E699BF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: [gentoo-user] Dolphin and adding a option, if it exists.

2022-10-06 Thread Ramon Fischer
And if you like Bash brace expansions; this one is sometimes quicker, 
than tab-completion and removing characters:


    $ mv file.txt{,.bak}
    file.txt.bak
    $ mv file.txt,{bak,img}
    file.txt.img
    $ mv file.txt{img,}
    file.txt

-Ramon

On 06/10/2022 14:45, Neil Bothwick wrote:

This is probably a case of Dolphin not being a good tool, unless it
has a built-in command-line?
$ mv newfile oldfile
will overwrite the old file in place with the new file with the name
of the old file.

And tab-completion makes this a lot quicker than renaming files in a file
manager.



--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF



OpenPGP_0x155BE26413E699BF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: [gentoo-user] Dolphin and adding a option, if it exists.

2022-10-06 Thread Neil Bothwick
On Thu, 6 Oct 2022 10:10:52 +0200, Arve Barsnes wrote:

> This is probably a case of Dolphin not being a good tool, unless it
> has a built-in command-line?
> $ mv newfile oldfile
> will overwrite the old file in place with the new file with the name
> of the old file.

And tab-completion makes this a lot quicker than renaming files in a file
manager.

> I know there are many file managers with a built-in terminal, so maybe
> others have similar possible solutions. I saw someone mention midnight
> commander which I believe is one.

Or you could use a drop-down terminal like Yakuake to give a terminal on
demand, whatever program you are using. Yakuake is for KDE, it wraps
Konsole, but there are GNOME-ish variants too, I wouldn't be without it.


-- 
Neil Bothwick

All things in moderation, ESPECIALLY moderation.


pgpS6Ytt3WGgu.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Dolphin and adding a option, if it exists.

2022-10-06 Thread Arve Barsnes
On Thu, 6 Oct 2022 at 06:40, Dale  wrote:
>
> Howdy,
>
> This may not exist.  If not, oh well.  Sometimes when I'm moving files
> with Dolphin, I need a added feature.  I tend to use split panes when I
> copy or move files.  Quite often, I want to move files from one location
> to another and the new file use the same name as the old file I'm
> replacing.  What I *wish* I could do, move the file from one pane to the
> other and drag the new file on top of the old file and it replace it
> with the name of the old file.  As it is now, I have to bring up
> properties, select the name of the file, while not including the
> extension, and copy it, then close that window and open properties on
> the new file, highlight the old name, paste new name, close window, copy
> new file over and either delete old file or tell it to overwrite the
> file.  Sometimes it has a different extension and I have to delete
> instead.
>
> It would be a lot faster if I could just drag it on top of file I want
> to replace and either it be configured to use name of old file for new
> file or me select in a pop up what I want to do.  Basically, move and
> drop instead of all the properties, copy, repeat with paste on new file
> and then move and maybe delete a file as well.  I went to the services
> window and looked for anything I could add but I didn't see anything
> that would do what I describe but it could be a hidden feature of one
> that isn't obvious.
>
> Has anyone ever seen something that does this?  While I use dolphin, I
> may could use another tool if it has this feature.

This is probably a case of Dolphin not being a good tool, unless it
has a built-in command-line?
$ mv newfile oldfile
will overwrite the old file in place with the new file with the name
of the old file.

In my file manager, emelfm2 (sadly not in tree any more), which has a
built-in command-line there are at least two ways I could solve this.

1. Equivalent to your method
- Select old file, F2 (rename), ctrl+c, esc, select new file in other
pane, shift+F6 (move with rename), ctrl+v, enter

2. Equivalent to explicit command-line on the built-in terminal
- mv %f %F (referencing selected file(s) in the active and inactive
pane respectively)

I know there are many file managers with a built-in terminal, so maybe
others have similar possible solutions. I saw someone mention midnight
commander which I believe is one.

Regards,
Arve



Re: [gentoo-user] Dolphin and adding a option, if it exists.

2022-10-06 Thread Michael
On Thursday, 6 October 2022 08:52:04 BST Wol wrote:
> On 06/10/2022 08:33, Michael wrote:
> > On Thursday, 6 October 2022 05:39:59 BST Dale wrote:
> >> Howdy,
> >> 
> >> This may not exist.  If not, oh well.  Sometimes when I'm moving files
> >> with Dolphin, I need a added feature.  I tend to use split panes when I
> >> copy or move files.  Quite often, I want to move files from one location
> >> to another and the new file use the same name as the old file I'm
> >> replacing.  What I*wish*  I could do, move the file from one pane to the
> >> other and drag the new file on top of the old file and it replace it
> >> with the name of the old file.  As it is now, I have to bring up
> >> properties, select the name of the file, while not including the
> >> extension, and copy it, then close that window and open properties on
> >> the new file, highlight the old name, paste new name, close window, copy
> >> new file over and either delete old file or tell it to overwrite the
> >> file.  Sometimes it has a different extension and I have to delete
> >> instead.
> >> 
> >> It would be a lot faster if I could just drag it on top of file I want
> >> to replace and either it be configured to use name of old file for new
> >> file or me select in a pop up what I want to do.  Basically, move and
> >> drop instead of all the properties, copy, repeat with paste on new file
> >> and then move and maybe delete a file as well.  I went to the services
> >> window and looked for anything I could add but I didn't see anything
> >> that would do what I describe but it could be a hidden feature of one
> >> that isn't obvious.
> >> 
> >> Has anyone ever seen something that does this?  While I use dolphin, I
> >> may could use another tool if it has this feature.
> >> 
> >> Thanks.
> >> 
> >> Dale
> >> 
> >>   
> > 
> > Perhaps I'm missing something ...
> > 
> > If the old file has the*same*  name as the new file, the file manager will
> > warn you and ask you if you want to rename the new file so as it does not
> > overwrite the old file, or if you want to replace the old file.
> 
> This made me think. Some times the old tools are the best - maybe I
> ought to switch from Dolphin to Midnight Commander for my use case, and
> maybe you should too.
> 
> Okay, it doesn't do exactly what you want, but the dance you want to do
> it will make it a lot easier ...
> 
> Cheers,
> Wol

I just had a look in Dolphin configuration.  Under General/Confirmations tab 
you can select to disable asking for confirmation when you move files to 
wastebin, or when you delete files of folders.  Not sure if this is desirable, 
as you could inadvertently delete a file without thinking first, but if you 
are going to be deleting manually a lot of files, confirming this is something 
you really want to do could become so repetitive you may want to disable it at 
least for a while.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Dolphin and adding a option, if it exists.

2022-10-06 Thread Wol

On 06/10/2022 08:33, Michael wrote:

On Thursday, 6 October 2022 05:39:59 BST Dale wrote:

Howdy,

This may not exist.  If not, oh well.  Sometimes when I'm moving files
with Dolphin, I need a added feature.  I tend to use split panes when I
copy or move files.  Quite often, I want to move files from one location
to another and the new file use the same name as the old file I'm
replacing.  What I*wish*  I could do, move the file from one pane to the
other and drag the new file on top of the old file and it replace it
with the name of the old file.  As it is now, I have to bring up
properties, select the name of the file, while not including the
extension, and copy it, then close that window and open properties on
the new file, highlight the old name, paste new name, close window, copy
new file over and either delete old file or tell it to overwrite the
file.  Sometimes it has a different extension and I have to delete
instead.

It would be a lot faster if I could just drag it on top of file I want
to replace and either it be configured to use name of old file for new
file or me select in a pop up what I want to do.  Basically, move and
drop instead of all the properties, copy, repeat with paste on new file
and then move and maybe delete a file as well.  I went to the services
window and looked for anything I could add but I didn't see anything
that would do what I describe but it could be a hidden feature of one
that isn't obvious.

Has anyone ever seen something that does this?  While I use dolphin, I
may could use another tool if it has this feature.

Thanks.

Dale

  

Perhaps I'm missing something ...

If the old file has the*same*  name as the new file, the file manager will
warn you and ask you if you want to rename the new file so as it does not
overwrite the old file, or if you want to replace the old file.


This made me think. Some times the old tools are the best - maybe I 
ought to switch from Dolphin to Midnight Commander for my use case, and 
maybe you should too.


Okay, it doesn't do exactly what you want, but the dance you want to do 
it will make it a lot easier ...


Cheers,
Wol



Re: [gentoo-user] Dolphin and adding a option, if it exists.

2022-10-06 Thread Michael
On Thursday, 6 October 2022 05:39:59 BST Dale wrote:
> Howdy,
> 
> This may not exist.  If not, oh well.  Sometimes when I'm moving files
> with Dolphin, I need a added feature.  I tend to use split panes when I
> copy or move files.  Quite often, I want to move files from one location
> to another and the new file use the same name as the old file I'm
> replacing.  What I *wish* I could do, move the file from one pane to the
> other and drag the new file on top of the old file and it replace it
> with the name of the old file.  As it is now, I have to bring up
> properties, select the name of the file, while not including the
> extension, and copy it, then close that window and open properties on
> the new file, highlight the old name, paste new name, close window, copy
> new file over and either delete old file or tell it to overwrite the
> file.  Sometimes it has a different extension and I have to delete
> instead. 
> 
> It would be a lot faster if I could just drag it on top of file I want
> to replace and either it be configured to use name of old file for new
> file or me select in a pop up what I want to do.  Basically, move and
> drop instead of all the properties, copy, repeat with paste on new file
> and then move and maybe delete a file as well.  I went to the services
> window and looked for anything I could add but I didn't see anything
> that would do what I describe but it could be a hidden feature of one
> that isn't obvious. 
> 
> Has anyone ever seen something that does this?  While I use dolphin, I
> may could use another tool if it has this feature. 
> 
> Thanks.
> 
> Dale
> 
> :-)  :-) 

Perhaps I'm missing something ... 

If the old file has the *same* name as the new file, the file manager will 
warn you and ask you if you want to rename the new file so as it does not 
overwrite the old file, or if you want to replace the old file.

If the old file has a different name, then the new file will be pasted in 
without asking.  In this case isn't it quicker to delete the file you want 
replaced and then copy/move the new file over?  Shift+Delete or right click - 
'Delete' to delete it completely or just Delete/right click - 'Move to 
wastebin' in case you delete the wrong file by mistake and want to recover it 
later.  BTW, pressing F2 after you select a file will allow you to rename it, 
without having to dive into properties.

signature.asc
Description: This is a digitally signed message part.