I suppose I could use mkdir / touch but I'm not sure if these would go in the current directory as viewed in ranger.

up vote 9 down vote accepted

To create a directory in ranger, just type

:mkdir exampledir


:touch examplefile

You can use :touch somefile, but I prefer it mapped to a key.

:map c console touch  (note the extra space at the end)

Place this at the bottom of your ~/.config/ranger/rc.conf minus the leading :

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.