#298 Multiple buffers per file

none
open
nobody
BufferSets (1)
2
2013-12-23
2009-07-14
Juergen Weber
No

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

Discussion

  • Seph Soliman
    Seph Soliman
    2009-07-14

    Wouldn't splitting the view do what you want?

    Regards
    Seph

     
  • Juergen Weber
    Juergen Weber
    2009-07-14

    > 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

     
  • Seph Soliman
    Seph Soliman
    2009-07-14

    > 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

     
  • Juergen Weber
    Juergen Weber
    2009-07-14

    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.

     
  • Townsfolk
    Townsfolk
    2009-07-15

    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?

     
  • Juergen Weber
    Juergen Weber
    2009-07-15

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

     
  • Dale Anson
    Dale Anson
    2009-07-15

    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.

     
  • Townsfolk
    Townsfolk
    2009-07-15

    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.

     
  • Alan Ezust
    Alan Ezust
    2013-12-09

    • labels: core --> BufferSets
    • Group: --> unrealistic
    • Priority: 5 --> 2
     
  • Juergen Weber
    Juergen Weber
    2013-12-23

    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/

     
    • Dale Anson
      Dale Anson
      2013-12-23

      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.