Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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?
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.
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.
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:
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Quote:
Originally Posted by littlebigman
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.