LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2006, 07:56 PM   #1
jxrod2000
Member
 
Registered: Apr 2006
Location: MA, USA
Distribution: Ubuntu 18.04
Posts: 35

Rep: Reputation: 15
How to copy not cut in the nano text editor


Hello

Is there a way to copy instead of cutting in nano. I haven't been able to find any documentation on it. It only mentions cut.

Thanks.
 
Old 06-21-2006, 08:33 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
There is no copy. What you do is cut it, paste it where it was, then move to the new place in the document and paste again.
 
Old 06-21-2006, 08:59 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
As an aside, if you want to do a block, ^K on several lines, then a single ^U will paste them as a block.

There may be a better way, but it's what I do.
 
Old 06-21-2006, 09:08 PM   #4
jxrod2000
Member
 
Registered: Apr 2006
Location: MA, USA
Distribution: Ubuntu 18.04
Posts: 35

Original Poster
Rep: Reputation: 15
I though I was going crazy, since it doesn't make sence to have cut and not copy.
 
Old 09-29-2010, 08:28 PM   #5
nomnex
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 1
Alt + A = Mark (or select) text
Alt + 6 = Copy text in the buffer
Ctrl + U = Past the text from the buffer

Nano 2.2.4
 
1 members found this post helpful.
Old 09-29-2010, 08:39 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I do what syg00 mentioned - ^k on a line to cut it, and ^u to replace it and/or move/copy it. It doesn't seem to always work for me if I move more than one line at a time, so I tend to do one line at a time, using the keyboard.

If I'm using nano in X, SHIFT+LeftMouse will drag/highlight a block of text, and SHIFT+MiddleClick will paste it at the cursor location. Probably works in a VT too, but offhand I don't know.
 
Old 09-29-2010, 11:10 PM   #7
nomnex
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 1
Quote:
Originally Posted by GrapefruiTgirl View Post
^k on a line to cut it
Why cutting when you want to copy?
 
Old 09-30-2010, 04:55 AM   #8
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by nomnex View Post
Why cutting when you want to copy?
See post #2.
 
Old 09-30-2010, 05:03 AM   #9
nomnex
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 1
Quote:
Originally Posted by GrapefruiTgirl View Post
See post #2.
Not to be insisting, but there is, see post #5. That's what the thread is about: How to copy not cut in the nano text editor

Metakey + 6 copy to buffer
 
Old 09-30-2010, 05:03 AM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Wow, in the grave for four years, and springs back to life!

Evo2.
 
Old 09-30-2010, 05:05 AM   #11
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
LOL - sheesh, and I've been sucked into it :/
 
Old 09-30-2010, 05:06 AM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by nomnex View Post
Alt + A = Mark (or select) text
Alt + 6 = Copy text in the buffer
Ctrl + U = Past the text from the buffer

Nano 2.2.4
Hi,

Thanks for sharing, didn't know that one yet. I used to cut and paste, then paste again. You're saving me time, thanks again.

Kind regards,

Eric
 
Old 09-30-2010, 05:08 AM   #13
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by GrapefruiTgirl View Post
LOL - sheesh, and I've been sucked into it :/
Hi,

You're not the only one! I didn't see the dates either

Kind regards,

Eric
 
Old 06-04-2011, 09:12 AM   #14
malekims
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by nomnex View Post
Alt + A = Mark (or select) text
Alt + 6 = Copy text in the buffer
Ctrl + U = Past the text from the buffer
I surprised!
Thanks nomnex; I wonder why this help is not in the online help of nano or even in its man and info pages!
 
Old 06-05-2011, 12:36 AM   #15
nomnex
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 1
you're welcome.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the best video editor to cut avi movies? lnthai2002 Linux - Software 5 06-05-2020 05:39 AM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM
Nano editor just stop working FlashAsh99 Linux - Newbie 4 06-27-2005 05:54 PM
nano editor not working FlashAsh99 Linux - General 2 06-27-2005 02:40 PM
cut, copy and paste loganwva Linux - General 1 10-11-2001 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration