LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-01-2010, 04:08 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Posts: 500

Rep: Reputation: 32
Question Notepad-like editor for Linux?


Hello

I can use vi/nano well enough to get around, but I wish there were an editor that would work like Windows' Notepad, ie. no need to switch between edit/command mode all the time, the Home/End/Page(Up|Down)/Ins/Del keys and the arrow keys would work as expected, I would no longer get the familiar "ABCD"'s when using the arrow keys in edit mode in vi, etc.

Do you know if anyone has written a Notepad-like editor for Linux, or are the above still what people use?

Thank you.
 
Old 08-01-2010, 04:20 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

There's lots of 'em: Kate, KEdit, gEdit, Mousepad, etc etc etc

Q: Have you gone to your distro's "start button" or "taskbar" equivalent and looked? There are bound to be several good options pre-packaged with your distro.

'Hope that helps .. PSM

Last edited by paulsm4; 08-01-2010 at 04:21 AM.
 
Old 08-01-2010, 04:24 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
The first place I look when I want to find a program is my distributions package manager ("apt-cache search", in this case). I usually can find something to use within a couple of tries. Failing that there's always google.
 
Old 08-01-2010, 04:39 AM   #4
littlebigman
Member
 
Registered: Aug 2008
Posts: 500

Original Poster
Rep: Reputation: 32
Thanks for the tip. I forgot to say I wanted a command-line alternative to vi/Emacs. I knew about Nano but its lack of support for even the arrow keys turned me off.

For those interested in the same thing: Joe is pretty close to Notepad for the command line.

However, by default, it doesn't seem to support those keys:
- CTRL-C/CTRL-V for copy/pasting
- The Home/End keys don't work
- The PageUp/PageDown just scroll what's in the terminal window (SecureCRT) instead of scrolling within the document currently edited in Joe

If any Joe guru reads this, are those keys just not supported in Joe, or can something be done to enable them?

Thank you.
 
Old 08-01-2010, 05:01 AM   #5
littlebigman
Member
 
Registered: Aug 2008
Posts: 500

Original Poster
Rep: Reputation: 32
Correction: nano does support the arrow keys, but just like Joe, doesn't suppor the other important keys (Home/End, etc.)
 
Old 08-01-2010, 05:11 AM   #6
littlebigman
Member
 
Registered: Aug 2008
Posts: 500

Original Poster
Rep: Reputation: 32
Update: After logging on directly to the Linux host, I notice that the Home/End and PageUp/Down do work.

So the issue is getting those to work over a terminal application from Windows.
 
Old 08-01-2010, 05:30 AM   #7
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Quote:
I forgot to say I wanted a command-line alternative to vi/Emacs.
vi(m) is a command-line editor (gvim is GUI)
You can run emacs in cli: emacs -nw
 
Old 08-01-2010, 07:36 AM   #8
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
"leafpad" is pretty much like Windows notepad.
 
Old 08-01-2010, 10:01 AM   #9
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,493

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
If you start joe with the command jstar you have an editor which uses Wordstar compatible keystrokes if that helps you.

Home/End, PgUp/PgDn all work in the way expected.

You leave with Ctrl-K-X (save) or Ctrl-K-Q (no-save), which is of course the most important while you are caught in a new editor.

Notepad can't even stand in the shade of joe.

jlinkels
 
Old 08-01-2010, 10:54 AM   #10
littlebigman
Member
 
Registered: Aug 2008
Posts: 500

Original Poster
Rep: Reputation: 32
Thanks for the tip.

Update for those interested: The above keys work OK in Joe by connecting through Putty 0.60 but not on SecureCRT 5.1 (at least with the default settings.) So it's just the usual headache of terminal emulation.
 
Old 08-01-2010, 11:24 AM   #11
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,255

Rep: Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686
Well I know you listed it as a criteria that ctrl-v and such should work in the editor you are looking for, but I do find it interesting when people
can clearly see how an editor like vi(m) surpasses anything that any other editor can do under Windows and then say but I would like this feature
from Windows back.

Just as a small example, I am curious how under Notepad you might copy an entire line? Your ctrl-c/ctrl-v are not going to help you until you have used a
combination of other keys. And yet, 'yy' does the job instantly.

Sorry for what may seem an inappropriate rant
 
Old 08-01-2010, 11:36 AM   #12
themanwhowas
Member
 
Registered: Nov 2005
Distribution: CentOS 5, Fedora 23
Posts: 216

Rep: Reputation: 29
leafpad is good as Mr Alex says, but it is not cli
 
Old 08-01-2010, 11:37 AM   #13
littlebigman
Member
 
Registered: Aug 2008
Posts: 500

Original Poster
Rep: Reputation: 32
It's OK, I'm just tired of vi and eg. the endless i/ESC shuffle, and wanted to make sure there weren't something closer before giving up and just using a Windows editor to edit Linux files through Samba.

Joe is pretty much what I was looking for, although I'll have to find why some dead keys don't work through my terminal.

Another issue I just found: When pasting code, the first line is cut, and each line is further indented:

http://img839.imageshack.us/img839/4...jaggedtext.jpg

If someone's seen this and knows what to tweek in Ubuntu, I'm all ears.

Thank you.
 
Old 08-01-2010, 12:53 PM   #14
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by themanwhowas View Post
leafpad is good
No syntax highlighting? That's just lame.
 
Old 08-01-2010, 01:15 PM   #15
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,493

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Quote:
Originally Posted by littlebigman View Post
It's OK, I'm just tired of vi and eg. the endless i/ESC shuffle, and wanted to make sure there weren't something closer before giving up and just using a Windows editor to edit Linux files through Samba.

Joe is pretty much what I was looking for, although I'll have to find why some dead keys don't work through my terminal.

Another issue I just found: When pasting code, the first line is cut, and each line is further indented:

http://img839.imageshack.us/img839/4...jaggedtext.jpg

If someone's seen this and knows what to tweek in Ubuntu, I'm all ears.

Thank you.
That seems to be a terminal emulation issue again or, in any case, this pasting is not handled correctly by joe. The problem is that joe doesn't know anything about pasting like this. You paste in a terminal, and the terminal sends the characters to joe. It is simply not well interfaced.

I have not found a workaround in the past 10 years, but it is corrected fast manually by putting your cursor where you want the line to begin and press CTRL-T to delete up to the first non-blank characted. If you use joe instead of jstar, check the help to see it thisis CTRL-T indeed.

jlinkels
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
text editor vs notepad linux_sj Linux - Newbie 13 03-24-2010 11:48 AM
notepad compatible text editor manuleka Linux - Newbie 5 03-30-2009 03:55 PM
using Windows Notepad in Linux newbiesforever Linux - Software 9 08-07-2008 01:52 PM
How can we copy the program code wriiten in notepad to linux vi editor? mayank027 Linux - General 2 10-25-2005 07:14 AM
Notepad in linux wh33t Linux - Software 10 05-24-2004 11:10 PM


All times are GMT -5. The time now is 01:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration