Score:0

Can I change ranger's delete command to move command?

pr flag

Is it possible to change ranger delete (d, D) command to moving to Downloads directory? I've written own script what delete from this directory all old files, so it's sth like trash bin directory.

Thanks!

vanadium avatar
cn flag
Yes, you can, since you can change keybindings in ~/.config/ranger/rc.conf
Score:1
cn flag

Yes, you can. You can change keybindings in ~/.config/ranger/rc.conf. To change the assignment of the delete command, dD, you can specify

map DD shell mv %s /home/${USER}/.local/share/Trash/files/

To "delete" files to the trash. Substitute any other destination if you feel like so.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.