PreviousNextTracker indexSee it online !

(108/212) 298 - Multiple buffers per file

jEdit should support several buffers per file, so you could have a file several times open with different cursor positions in each buffer. So you could view different file positions at the same time.
Technically this would be similar to opening a file in several views, only it would be within the same jEdit View and you could navigate within different buffers for the same file like you would navigate between different files (e.g. with BufferTabs and RecentBufferSwitcher plugins).

See also http://community.jedit.org/?q=node/view/4218

Submitted weberjn - 2009-07-14 09:15:37 Assigned
Priority 2 Labels BufferSets
Status open Group none
Resolution None

Comments

2009-07-14 09:24:34
scarlac

Wouldn't splitting the view do what you want?

Regards
Seph

2009-07-14 09:30:52
weberjn

> Wouldn't splitting the view do what you want?

No, then you have one row of BufferTabs for each split pane and RecentBufferSwitcher only works within the current pane. Also, I'd like to have each file buffer use the full screen area and I'd like to switch between different file buffer instances like between different files.

Thanks,
Juergen

2009-07-14 10:49:53
scarlac

> then you have one row of BufferTabs for each split pane and
> RecentBufferSwitcher only works within the current pane. Also, I'd like to
> have each file buffer use the full screen area and I'd like to switch
> between different file buffer instances like between different files.
It seems to me that you are describing shortcomings of RecentBufferSwitcher and ButterTabs (mmm). How would you display buffers without actually splitting them or displaying them in a new window - please describe.

Regards
Seph

2009-07-14 11:00:15
weberjn

Given Files a.txt, b.txt, c.txt. c.txt should be displayed in two buffers.
So the user would see buffers a.txt, b.txt, c.txt\[0\], c.txt\[1\]

This would be similar to displaying this web page in two Firefox tabs with different scroll positions for each.

2009-07-15 01:28:13
elberry

I too am confused. So far, it sounds like you're describing the exact behavior of a single view, with a single buffer?

If you have files a.txt, b.txt, c.txt open, you technically have 3 buffers open.

There are shortcuts to switch between each "file" within the currently active buffer, and shortcuts to switch between buffers.

On my messed up Windows on a Mac Keyboard set up, CTRL+PAGE_UP/DOWN switches between buffers, and COMMAND(ALT)+PAGE_UP/DOWN switches between files within the buffer.

I'm confused about the desire to have each buffer fill up the fullscreen, doing so would essentially be the same thing as "unsplitting" the view, no?

2009-07-15 07:48:29
weberjn

> I can't see what advantage having both of these buffers in the same
bufferset can give you.

The same as a new view gives, but within the same view. A new view for a file would be almost what I want, but then you have to switch between views with OS means (e.g. Alt-TAB) instead of jEdit means.
In my example (but with views) I would change within a.txt, b.txt, c.txt\[0\] with jEdit means but to c.txt\[1\] with OS means.

Splitting panes is not an option, I want to have a full screen area.

2009-07-15 14:05:23
daleanson

I think what is being requested is this:

The user frequently works with a large file.
He works at the top and bottom of this file.
He uses BufferTabs to switch between buffers.
He wants 2 tabs, both displaying the same buffer, where one is showing the top, the other showing the bottom.
This would allow him to quickly switch between working at the top and working at the bottom using BufferTabs to do the switch.
He doesn't want a split pane since he wants to see a larger portion of the file.
He doesn't want a view per buffer since that won't let him use BufferTabs to switch between buffers.

2009-07-15 18:20:32
elberry

Ah. I suppose you could accomplish this using markers. If you set a marker at the top and at the bottom, or however many places you want to keep track of, you can switch between markers pretty easily. Although the scrolling might be annoying. However, having multiple tabs open per file would definitely make this a lot easier.

2013-12-09 19:29:12.293000
ezust

- **labels**: core --> BufferSets
- **Group**: --> unrealistic
- **Priority**: 5 --> 2

2013-12-23 09:56:32.332000
weberjn

A similar feature has come into Eclipse 4.4 M4:
split / unsplit the currently active editor
http://download.eclipse.org/eclipse/downloads/drops4/S-4.4M4-201312121600/news/

2013-12-23 15:47:42.009000
daleanson

This new feature in Eclipse looks like the splitting that has been in jEdit for years. Well, not quite the same -- jEdit will let you split multiple times in either direction, it looks like Eclipse will now split once in one direction.