Re: [Lynx-dev] Deleting Local Files to trash?

2023-09-03 Thread Thomas Dickey
On Sun, Sep 03, 2023 at 05:09:17AM -0700, Chime Hart wrote:
> Thank you Tomas. That .h2 item was not in my lynx.cfg, so I pasted in your
> instructions. But after that, can I define a command for deleting files?
> Exactly what belongs in that file, so I can act on an alias? As I mentioned
> last evening, del is aliased to
> /usr/bin/trash-put

Lynx would run "rm" directly (not in a shell, which would have an alias).
But you can make it run a shell script or "any" program such as trash-put.

That's assuming that "trash-put" removes the files given as arguments,
like "rm".  If it needs options, then a short shell-script may make
"trash-put" act like "rm".

(if it's a GUI that can't act like "rm", I don't know...)

> Thanks so much in advance
> Chime
> 

-- 
Thomas E. Dickey 
https://invisible-island.net


signature.asc
Description: PGP signature


Re: [Lynx-dev] Deleting Local Files to trash?

2023-09-03 Thread Chime Hart
Thank you Tomas. That .h2 item was not in my lynx.cfg, so I pasted in your 
instructions. But after that, can I define a command for deleting files? 
Exactly what belongs in that file, so I can act on an alias? As I mentioned 
last evening, del is aliased to

/usr/bin/trash-put
Thanks so much in advance
Chime




Re: [Lynx-dev] Deleting Local Files to trash?

2023-09-03 Thread Thomas Dickey
On Sat, Sep 02, 2023 at 07:56:33PM -0700, Chime Hart wrote:
> Hi All: After several accidental deletions of file I wish I had again, I had
> a set of great advice on another blind Linux list. There are at least 2
> trash programs which work quite well. So I have a "del" aliased to
> /usr/bin/trash-put. However, when I am viewing a local directory from LYNX,
> if I either manually delete or tags items to get rid of, I suppose these are
> done with an rm command? Would I need another alias to have these files also
> endup in trash until I empty them? I am accessing these with lynx .
> Or would I add something in lynx.cfg? Thanks so much in advance
> Chime

That's something that you can override in lynx.cfg:

.h2 RM_PATH
# This is the path used for DIRED mode to remove a file, e.g., the
# Unix command "rm".
#
# Setting this to an empty string will let lynx use a built-in version.

-- 
Thomas E. Dickey 
https://invisible-island.net


signature.asc
Description: PGP signature