DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th May 2019
Prevet Prevet is offline
Shell Scout
 
Join Date: Oct 2017
Posts: 114
Default nnn: How do you copy, move and delete files?

I've been trying out nnn, but don't see any instructions to copy, move or delete files from within it. Are you meant to press ! to get to the shell and use cp, mv and rm?

I did find this but I would much rather select a file and copy, move or delete it from within nnn than install another file manager.

Quote:
NNN_DE_FILE_MANAGER: set to a desktop file manager to open the current
directory with. E.g.:

export NNN_DE_FILE_MANAGER=thunar

Last edited by Prevet; 25th May 2019 at 07:24 PM.
Reply With Quote
  #2   (View Single Post)  
Old 25th May 2019
victorvas's Avatar
victorvas victorvas is offline
Real Name: Victor
Port Guard
 
Join Date: May 2019
Posts: 22
Default

select file and press <space>
to move file press shift+V
to copy file press shift+P
to delete file press shift+X

more info:

https://github.com/jarun/nnn#features

Last edited by victorvas; 25th May 2019 at 08:21 PM.
Reply With Quote
  #3   (View Single Post)  
Old 26th May 2019
Prevet Prevet is offline
Shell Scout
 
Join Date: Oct 2017
Posts: 114
Default

Pressing space doesn't do anything on my system. The version I have is 1.8. Perhaps you have a more recent version.

export NNN_FALLBACK_OPENER=xdg-open
export NNN_COPIER="$HOME/.config/nnn/copier.sh"

I did get *K to working though. I have copied paths into the clipboard and pasted them into the terminal.

Last edited by Prevet; 26th May 2019 at 01:45 AM.
Reply With Quote
  #4   (View Single Post)  
Old 26th May 2019
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 413
Default

Same here, and actually none of the shift+ options worked.
And, if I use the console, for example via ssh, it freezes when I try to open a text file.
I don't think it is a good option for use on a console,
__________________
My best friends are parrots
Reply With Quote
  #5   (View Single Post)  
Old 26th May 2019
Prevet Prevet is offline
Shell Scout
 
Join Date: Oct 2017
Posts: 114
Default

Quote:
Originally Posted by GarryR View Post
Same here, and actually none of the shift+ options worked.
And, if I use the console, for example via ssh, it freezes when I try to open a text file.
I don't think it is a good option for use on a console,
nnn is noice with lots of features added on top and they are still developing it, so perhaps noice might work for you in ssh.

With noice you move to the directory you want to be in and press ! to open the shell. Then you do your cp, mv and rm from there. e and p work the same as nnn.

To tell it how to open certain file types, you have to change a C header file and rebuild it.
Reply With Quote
  #6   (View Single Post)  
Old 26th May 2019
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 413
Default

That does not sound very convenient, or nice, on noice. Thanks, for mentioning it though. Actually when I am using ssh , to a server I really prefer to just use the CLI, faster and easier then any of the file managers I have tried, the nnn, and also the ranger, you mentioned earlier in another topic, bith were new names to me, so I figured I would give them a try.
RE: nnn
Quote:
and they are still developing it
ahh, ok, well maybe some of the feed back will be use full. That is why I commented, about having the same problem with the keys not doing anything ,
Quote:
Pressing space doesn't do anything on my system.
,...
MC (MidnightCommander) works pretty well, even via ssh, but I don't use it normally either. I guess that should be another topic though.
====edited===
I don't like Linux much, but I do keep a Debian version on a VM, and decided to install nnn on that, interesting to see, the space key, and also the "shift + x", for example worked fine, also the ^O , (Open with ---) worked good on the Linux VM, when I accessed it via ssh,...apparently the OpenBsd version of nnn needs some work. Or some hoops to jump through.

Last edited by PapaParrot; 26th May 2019 at 03:20 AM. Reason: additional note
Reply With Quote
  #7   (View Single Post)  
Old 26th May 2019
victorvas's Avatar
victorvas victorvas is offline
Real Name: Victor
Port Guard
 
Join Date: May 2019
Posts: 22
Default

Check if you have any dependencies missing
https://github.com/jarun/nnn#utility-dependencies
Reply With Quote
  #8   (View Single Post)  
Old 26th May 2019
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 413
Default

Thanks, it does look like I am missing a couple of dependencies based on that list. When I get a chance I will see if they make a difference.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pipe grep to copy files based on name. Daffy Programming 5 28th May 2011 11:03 PM
I want move big files from FreeBSD box to Linux Box mfaridi FreeBSD General 11 4th January 2011 11:50 PM
Cannot copy large files to Flash Drive sharris FreeBSD General 6 30th July 2010 09:57 AM
Delete Files By Schedule Continued plexter OpenBSD General 4 28th June 2008 03:43 AM
Delete Files By Schedule plexter OpenBSD General 12 4th June 2008 10:15 PM


All times are GMT. The time now is 01:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick