LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-14-2014, 01:09 AM   #1
charlemagne-is-my-son
Member
 
Registered: Dec 2012
Location: Shanghai
Distribution: Xubuntu, 14.04
Posts: 54

Rep: Reputation: Disabled
Can gedit support panes in a single txt file?


I am wondering if it's possible for gedit to display multiple panes in the same file. For example, I have a txt file about songwriting. I want the left-most pane to contain only info about specific ideas, the middle pane to have only concepts, and the right-most pane only heuristics for finding song topics.

If not possible, can you suggest another software?

Thanks in advance!

Matt
 
Old 06-14-2014, 05:25 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by charlemagne-is-my-son View Post
I am wondering if it's possible for gedit to display multiple panes in the same file. For example, I have a txt file about songwriting. I want the left-most pane to contain only info about specific ideas, the middle pane to have only concepts, and the right-most pane only heuristics for finding song topics.
I'm not sure I understand what you mean. Do you want to open the same text file two or three times, so that you can edit multiple sections of that file at the same time? Then the answer is no, gedit can't do that. You might be able to start two instances of gedit and open the same file in both of them, but since gedit always assumes it is exclusively working on a file, the two instances would fight each other each time you switch between the two windows.

The same is true for Bluefish, I just tried.

Quote:
Originally Posted by charlemagne-is-my-son View Post
If not possible, can you suggest another software?
I'm afraid no. But then again, maybe I misunderstood you altogether.

[X] Doc CPU
 
Old 06-14-2014, 07:29 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
You can always try Emacs:

http://www.fnal.gov/docs/products/em.../emacs_20.html
 
Old 06-14-2014, 07:46 AM   #4
charlemagne-is-my-son
Member
 
Registered: Dec 2012
Location: Shanghai
Distribution: Xubuntu, 14.04
Posts: 54

Original Poster
Rep: Reputation: Disabled
Clarification

I meant having a single txt file which has vertical divisions for categories, not horizontal divisions.
 
Old 06-14-2014, 07:49 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
As I said - Emacs.

How a window displays a buffer is independent of the data in that buffer. They can be horizontal, vertical, or both...
 
Old 06-14-2014, 08:38 AM   #6
charlemagne-is-my-son
Member
 
Registered: Dec 2012
Location: Shanghai
Distribution: Xubuntu, 14.04
Posts: 54

Original Poster
Rep: Reputation: Disabled
Wow, emacs seems very cool. Thanks for suggesting it. I found out how to split a window horizontally (C-x 3) but when I enter text into one pane, it shows up in the other pane. I would like to have a single text file with multiple independent panes. Could you explain how to do this, jpollard?
 
Old 06-14-2014, 08:55 AM   #7
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by charlemagne-is-my-son View Post
[...] but when I enter text into one pane, it shows up in the other pane.
yes, of course, that's because they're just two displays of the same data.

Quote:
Originally Posted by charlemagne-is-my-son View Post
I would like to have a single text file with multiple independent panes.
That's not possible. You seem to have a misconception of text files: They're just linear streams of characters (including line breaks). There is no such thing as multiple independent sections in one text file. Think of them as a long roll of paper with text on it, and two or more cameras capturing a portion of it. If the two cameras happen to be pointed at the same spot, they both see the same, and they both see at the same time what someone is writing in their field of view.

[X] Doc CPU
 
Old 06-14-2014, 08:59 AM   #8
charlemagne-is-my-son
Member
 
Registered: Dec 2012
Location: Shanghai
Distribution: Xubuntu, 14.04
Posts: 54

Original Poster
Rep: Reputation: Disabled
Then....

That leaves me where I started, then. So I am hoping that somebody could point me toward something I could use to achieve my original purpose. I know a full-fledged word processor like LibreOffice's Writer could do this, but it's slow.
 
Old 06-14-2014, 09:46 AM   #9
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by charlemagne-is-my-son View Post
That leaves me where I started, then. So I am hoping that somebody could point me toward something I could use to achieve my original purpose. I know a full-fledged word processor like LibreOffice's Writer could do this, but it's slow.
It would also corrupt your output.

There is no difference between an office file and any other regular file. They are just streams of bytes.

Last edited by jpollard; 06-14-2014 at 09:47 AM.
 
Old 06-14-2014, 10:20 AM   #10
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by charlemagne-is-my-son View Post
That leaves me where I started, then. So I am hoping that somebody could point me toward something I could use to achieve my original purpose. I know a full-fledged word processor like LibreOffice's Writer could do this, but it's slow.
can it actually? I don't see how. Not on a regular text file, anyway.

So let's look at the issue from a different angle. What you want is definitely NOT a simple text file, because there's no way of structuring it persistently. You can arrange text in a file to some extent, but there's nothing that would make text stay within a box. All so-called layout would have to be based on just the right number of spaces and blank lines. A very fragile thing. Add a few words somewhere, and the whole layout collapses again.

LibreOffice Calc (or MS Excel, for that matter) has an appealing way of combining multiple spreadsheets in one document. If these were just text sheets, would that be what you wish for? Actually, I've been wondering for more than ten years why Excel can't include a simple text sheet in place of a table. It would be real smart. Neither can LibreOffice Calc (unlike Excel, Calc can't even save a chart as a tab of its own, it can only superimpose it on a table sheet).

With Writer, however, you could create a two- or three-column table on the page, adjust the columns as you wish (and disable automatic resizing!), and start typing in one of them. The table will grow downward with more text being typed, but the text will stay within the confines of its column. Is that what you imagine? - However, you can't save that as a plain text file, as it would not retain the structure; instead, you'll have to save it as a real Office file (*.doc or *.docx).

So that's about how I see things. Now it's your turn again. ;-)

[X] Doc CPU
 
Old 06-14-2014, 10:33 AM   #11
charlemagne-is-my-son
Member
 
Registered: Dec 2012
Location: Shanghai
Distribution: Xubuntu, 14.04
Posts: 54

Original Poster
Rep: Reputation: Disabled
Just need something fast....

The reason I was gunning for txt was because applications like gedit are very quick to open on my hardware. Libre Writer is rather slow. In fact, the file type does not matter to me.

Can you suggest something with the same capability in question but on a quicker program?
 
Old 06-14-2014, 12:30 PM   #12
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by charlemagne-is-my-son View Post
The reason I was gunning for txt was because applications like gedit are very quick to open on my hardware. Libre Writer is rather slow. In fact, the file type does not matter to me.

Can you suggest something with the same capability in question but on a quicker program?
Just use separate files...

The difference with writer is that you aren't editing the file.... you are editing a workfile that doesn't have the same form as the text file. When writer exits/saves it has to copy the workfile and it has to rearrange things to be put in the output.

Of course, because writer has to first convert the source file into the workfile it tends to be slower. It has a hell of a lot more work to do.

Last edited by jpollard; 06-14-2014 at 12:34 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
cut first 10 lines of file master.txt and paste in ab1.txt and so on yogeshkumkar Programming 4 08-31-2011 07:23 AM
Gnome 3, Gedit 3.0.5, when I open file with gedit, it created one more unneeded tab Mr. Alex Linux - Software 1 06-18-2011 07:58 AM
how to move 10 files of .dat extention to .txt using single command or script sushil.cool Linux - Newbie 6 11-22-2010 01:40 PM
Copy the contents of a txt file to other txt files (with similar names) by cp command Aquarius_Girl Linux - Newbie 7 07-03-2010 12:54 AM
How can read from file.txt C++ where can save this file(file.txt) to start reading sam_22 Programming 1 01-11-2007 05:11 PM

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

All times are GMT -5. The time now is 03:58 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