LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-01-2004, 12:31 PM   #1
sigma957
Member
 
Registered: Sep 2003
Location: Portland Oregon
Distribution: Debian Testing
Posts: 112

Rep: Reputation: 15
Need a certain kind of text editor


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'.

Anything like this you know about? Thanks!

Barbara
 
Old 06-01-2004, 12:39 PM   #2
zmieff
Member
 
Registered: Feb 2004
Location: Austria
Distribution: NetBSD 2.0, DragonFlyBSD 1.0
Posts: 66

Rep: Reputation: 15
well, there are some choices:

1) if you have gnome installed, try gedit. it has all features that you want and you can also run it from the terminal.

2) kate is very similar, except it remains a running KDE install.
 
Old 06-01-2004, 12:56 PM   #3
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 297

Rep: Reputation: Disabled
Gedit probably would be your best bet. If you have swaret installed, getting gedit up and running is only a line away
 
Old 06-01-2004, 02:43 PM   #4
At0mic_PC
Member
 
Registered: Jul 2003
Location: Mississippi
Distribution: Slack9.1
Posts: 159

Rep: Reputation: 30
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.
 
Old 06-01-2004, 04:45 PM   #5
Geist3
Member
 
Registered: Oct 2003
Location: Richmond, Virginia USA
Distribution: Slackware 12.2
Posts: 59

Rep: Reputation: 15
gedit and Kate, too

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.
 
Old 06-01-2004, 05:28 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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"


Cheers,
Tink
 
Old 06-01-2004, 05:50 PM   #7
JohnKFT
Member
 
Registered: Aug 2003
Location: NW Scotland
Distribution: Slackware 10
Posts: 169

Rep: Reputation: 30
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.
 
Old 06-05-2004, 01:22 PM   #8
sigma957
Member
 
Registered: Sep 2003
Location: Portland Oregon
Distribution: Debian Testing
Posts: 112

Original Poster
Rep: Reputation: 15
Unhappy

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
 
Old 06-05-2004, 02:50 PM   #9
At0mic_PC
Member
 
Registered: Jul 2003
Location: Mississippi
Distribution: Slack9.1
Posts: 159

Rep: Reputation: 30
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.
 
Old 06-05-2004, 03:37 PM   #10
JohnKFT
Member
 
Registered: Aug 2003
Location: NW Scotland
Distribution: Slackware 10
Posts: 169

Rep: Reputation: 30
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.
 
Old 06-05-2004, 03:44 PM   #11
oldyas
Member
 
Registered: Jun 2004
Location: Bristol, UK
Distribution: SuSe
Posts: 53

Rep: Reputation: 15
kate remembers what files you had open

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.
 
Old 06-05-2004, 03:59 PM   #12
JohnKFT
Member
 
Registered: Aug 2003
Location: NW Scotland
Distribution: Slackware 10
Posts: 169

Rep: Reputation: 30
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.
 
Old 06-05-2004, 04:09 PM   #13
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Quote:
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.

Last edited by slakmagik; 06-05-2004 at 04:11 PM.
 
Old 06-05-2004, 06:52 PM   #14
the who
Member
 
Registered: Feb 2004
Location: FRG, EU
Distribution: Slackware current
Posts: 51

Rep: Reputation: 15
Quote:
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.

Homepage: http://www.scintilla.org/SciTE.html (Be sure to read the documentation)

Last edited by the who; 06-05-2004 at 06:53 PM.
 
  


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
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM
text editor Mig21 Linux - Software 17 07-07-2005 05:27 PM
E3 Text editor Blackout_08 Fedora 1 03-07-2005 01:21 AM
x text editor monohouse Linux - Software 8 11-08-2004 06:09 AM
vi text editor keevitaja Linux - Newbie 4 08-23-2002 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:52 PM.

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