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)
- mv: unrecognized option '--cp' HOT 2
- Icons does not work when NNN is opened with -C option HOT 5
- preview-tui: mpv HOT 11
- Syntax error with prescribed split-pane script HOT 7
- tabs content colorization is not working (zsh+tmux) HOT 3
- preview-tui does not work with tmux 3.4 HOT 1
- Wrong position of previews in 4K monitor with fractional scaling of 1.5
- Files created with `n`, `f` have incorrect permissions HOT 5
- sort order.... whatever it means.. HOT 2
- preview-tui with wezterm: No FIFO available! ($NNN_FIFO='') HOT 2
- Respect keys regardless of kb language input HOT 4
- Visual Glitch, visual bug, the whole screen breaks, resize does something, redraw does not
- Sorting bug, different behavior for t and ^T HOT 2
- Misleading typo in the wiki HOT 1
- [plugin] file preview panel get stuck when use plugin preview-tui with tmux and bat HOT 1
- Keybind collision when using the colemak patch HOT 5
- malloc: error pointer being freed was not allocated HOT 9
- The first letter of the file is not correct after change dir HOT 1
- mess with shell colors HOT 8
- [bash] nnn can't return after executing command (] key) if invoked from a `bind -x` keybinding. HOT 4
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.