-
-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to cd directly to one-off directories #1758
Comments
It should be possible to do this quite easily with a plugin. There's already a couple |
It's quite basic functionality, so it would be great not needing to install and setup a plugin for it on all my computers/new installs in VMs. |
It serves no purpose, you can literally hit these keys:
for a better and more robust functionality... update: i didnt read the topic and assumed the request was to create sub folders... my bad... |
You are right. Running mkdir to browse a directory makes no sense at all. |
Here's a plugin to do what you want: #!/bin/sh
printf "enter path to cd: "
read -r to
[ -n "$to" ] && printf "0c%s" "${to}" > "$NNN_PIPE"
Whether to include this feature in nnn natively or not is @jarun's call. I don't really have any preference here one way or other. |
Sorry i didn't fully read the topic. This is the way it was implemented on my branch: when in filter mode: I just gave it a try, it still works after 3 years, but I guess it doesnt work while |
We can't add a new keybind for changing directories. However, in this case, did you try to add the following in your ~/.bashrc:
and press Alt-C and paste the destination path? |
Fixed at 9259170. |
Can you add a way to go directly to a one-off directory? Say if I need to a directory in /usr/share it's quite clumsy to have to type `, ^N, usr, share, ... rather than e.g. :cd <ctrl+shift+v> in other file managers.
The text was updated successfully, but these errors were encountered: