Score:0

ranger replace space in filenames

pr flag

I made map for moving file to Downloads directory but it cause problem if file has space

map dD console shell mv %s /home/${USER}/Downloads

Ofc I know that I can give their "" but it will not work then for multiply files (what's important for me) Is any other variable like %s what will replace -> \␣? Or maybe I can resolve this somehow else

Thanks!

Simon Hryszko avatar
pr flag
Are you sure that you cannot see this? https://i.imgur.com/01TsrtN.png
hr flag
@sudodus `map` is part of the `ranger` configuration syntax. According to the [man page](https://man.archlinux.org/man/ranger.1) *"Macros for file paths are generally shell-escaped so they can be used in the "shell" command."* which implies it *should* work as-is. Is `console` strictly necessary here? I wonder if that's stripping one layer of shell escaping?
Simon Hryszko avatar
pr flag
When remove `console` it's work, I added it to need hit ENTER but it's cool, thanks!
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.