How can I move all `marked` files to another directory in ranger?

20,384

Solution 1

With the files / directories marked, press dd, then navigate to the directory you want to paste them in and press p.

Solution 2

  • use space to mark files i.e "toggle=true"
  • use yt to yank files flagged as "toggle=true"
  • enter the directory you want
  • use pp to paste toggled files
  • use dt instead of yt to cut instead of copy
Share:
20,384

Related videos on Youtube

Matt Deacalion
Author by

Matt Deacalion

Updated on September 18, 2022

Comments

  • Matt Deacalion
    Matt Deacalion almost 2 years

    When I select multiple files within ranger (using <Space> or V), how do I move these selected files to another directory?

    I've tried to use dd and pp, but this only moves the file that's currently highlighted.

    • Matt Deacalion
      Matt Deacalion about 7 years
      I've found one way, using the ":cut" and ":paste" commands. I was looking specifically for a keybinding though.
    • laktak
      laktak about 7 years
      dd is bound to cut by default - so dd should do what you want. Check your keybindings with ?k