Comments (8)
It should be possible to do this quite easily with a plugin. There's already a couple cd
related plugin you can take a look at for reference.
from nnn.
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.
from nnn.
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:
!mkdir -p foo/bar/baz<ENTER><CTRL-D>
for a better and more robust functionality...
update: i didnt read the topic and assumed the request was to create sub folders... my bad...
from nnn.
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:
!mkdir -p foo/bar/baz<ENTER><CTRL-D>
for a better and more robust functionality...
You are right. Running mkdir to browse a directory makes no sense at all.
from nnn.
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"
it would be great not needing to install and setup a plugin for it on all my computers/new installs in VMs
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.
from nnn.
Sorry i didn't fully read the topic.
This is the way it was implemented on my branch: when in filter mode: /
will cd into a directory if the highlighted line is a directory otherwise it will clear the filter + show all files and highlight the matched item, essentially allowing you to paste a path to go to the desired location.
I just gave it a try, it still works after 3 years, but I guess it doesnt work while nnn
is running within tmux
...
from nnn.
We can't add a new keybind for changing directories.
Plugins are one of the best features of nnn
and very simple to migrate and use.
However, in this case, did you try to add the following in your ~/.bashrc:
NNN_PLUG='c:!read -r to && [ -n "$to" ] && printf "0c%s" "${to}" > "$NNN_PIPE"*'
and press Alt-C and paste the destination path?
from nnn.
Fixed at 9259170.
from nnn.
Related Issues (20)
- Bulk rename fails when using mate-terminal on Manjaro Linux HOT 2
- `preview-tui` offsets image preview HOT 25
- Preview-tui and kitty: previewing large gif file ( >7 mb) doesn't free ram upon closing nnn or preview-tui plugin HOT 3
- sorting state is shared between contexts HOT 2
- User / group option not working. HOT 1
- NNN command line forward slash filter command won't allow other commands HOT 18
- Current selection does not change to newly created dir, if current working directory path contains a symlink HOT 2
- Opening the help screen corrupts global variables HOT 4
- Can't get jump to command or autojump plugin to work HOT 3
- Preview-tui plugin throws syntax error HOT 3
- U+E5FF / / question mark box HOT 4
- NNN_TRASH_CUSTOM setting not working HOT 4
- preview-tabbed - zathura not focusing HOT 2
- Nerd fonts cause misaligned columns in detail mode with names first HOT 5
- nnn compiled with nerdfonts not displaying correctly in WSL HOT 2
- NNN broken on master HOT 3
- 'size missing' when trying to preview-tui in tmux HOT 7
- NNN does not close Tmux pane on opening a file while preview HOT 5
- Can't batch rename files which names start with dash '-' HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nnn.