32

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.

Evan Carroll
  • 28,578
  • 45
  • 164
  • 290
Matt
  • 757
  • 1
  • 8
  • 9
  • I've found one way, using the ":cut" and ":paste" commands. I was looking specifically for a keybinding though. – Matt May 23 '17 at 10:41
  • 3
    `dd` is bound to `cut` by default - so `dd` should do what you want. Check your keybindings with `?k` – laktak May 23 '17 at 21:29

2 Answers2

29

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

Chris Stryczynski
  • 5,178
  • 5
  • 40
  • 80
10
  • 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
hbt
  • 291
  • 3
  • 4