SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Okay, just trying to find an editor that has some certain functions.
First, command line, I use Nano. No Vi/Emacs wars please!
I'm looking for a gui text editor. I'd like it to have tabs and to re-bring up the docs in the tabs each time its' opened. (In Windows I use Notetab and it does that and I love it!) Second, I run Slack as my user name.. but sometimes I need to edit a config file as root. I can su in a terminal and run nano, but I'd like a gui editor that I can just say.. for this file, save it as 'this user'.
I use gedit sometimes. It's nice and tabbed. For root you can do this from a term to use any gui apps: 'su -c "appname --options"' It will ask you for the root password and you just enter it and hit enter. If correctly entered you will have that app open with root privilages. This should work with any WM/DM you try. This other way may not work with everything. In gnome you can click Applications | System Tools | New Login in Nested Window. Log in as root and you have the whole desktop as root for the nested window. I su -c all the time, only once in a nested window and that was just "What does this do?" kind of thing.
I have used gedit, but now Kate for "light" or GUI editing like pasting stuff off the Web. Sometimes gedit would hang or do something annoying. Seems I had a problem pasting long texts into email compositions. So now Kate for casual editing. I use vim for "serious" editing.
How do you get Kate to open in tabs? I've tried, but just either have 50 recent files in memory with one showing in a window; or multiple windows. How do you change the 50 to maybe 20? Loads slowly at 50.
As for the "Save as such and such user" bit - I don't know
of any editor that will allow this. You'll have to use one of
the various methods of invoking a program as root in an
X environment.
One would be to open a shell and
ssh -X root@localhost "kate <your config file"
I use an editor called Katoob which is very similar to Gedit but miles quicker to load up and much smaller. Spell check, tabs. syntax highlighting, dictionary, line numbers, word wrap, left to right or right to left, many encodings, etc etc. It is Arabic but works fine in English for me.
Okay, I did install gedit. I do like it, but it doesn't do one thing.
What I want to do is open say.. 6 files. Close gedit. Tomorrow, reopen gedit and those six files are there, open in their tabs. Is there anyway to make gedit do that? I can't find a preference for that.
I don't know of any editor that does that. gedit will open that many files at one time though. An odd fix for it would be to create sym links of the files on the desktop or make a bash script to open each file up but this wouldn't be a convenient as what you speak of.
I used to use Moleskine http://www.micampe.it/moleskine.html before I discovered Katoob and I remember you could save multi-file projects and reopen all the files in a project together. I cannot try it now as it does not work with Pygtk2 but if that is OK for you I guess you could save your open files as a project then open that project the next day.
I seem also to remember another editor with that facility and will try to think of its name for you.
In kate you can click on "Settings > Configure Kate > Application > General" and check "Restore files at startup" and it will then restore all tabs and their scroll positions on startup.
I don't know of any way to save files as different users, but I doubt a plug-in to do this would be very hard to write.
CUTE http://cute.sourceforge.net/features.html does projects and also saves sessions with open files, working directory and cursor position. It is a programming editor so a bit complex but would seem to do what you want. Nedit might also be worth a look.
Originally posted by sigma957 Okay, I did install gedit. I do like it, but it doesn't do one thing.
What I want to do is open say.. 6 files. Close gedit. Tomorrow, reopen gedit and those six files are there, open in their tabs. Is there anyway to make gedit do that? I can't find a preference for that.
Or any other editor that does that?
Thanks
Barbara
There's this thing called SciTE which will do it. I don't much like it but it does restore tab-sessions. Or, as oldyas says, apparently kate will.
-- Or CUTE, it seems. I left the window to this thread up awhile.
Originally posted by digiot There's this thing called SciTE which will do it.
File > Save/Load Session.
It also has a tabbed interface and has syntax highlighting for some several dozen languages. It's my absolute favorite editor. I do also use Nano on the console btw.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.