Menu

#190 Duplicate buffer as new buffer

closed-accepted
Edit mode (24)
5
2007-12-28
2007-12-12
encorejane
No

The ability to duplicate a buffer as a new buffer would be nice. Here's a simple solution:

file = buffer.getPath();
Buffer buffer = jEdit.openFile(view,null,buffer.getDirectory()+"Copy of " + buffer.getName(),true,null);
buffer.insertFile(view, file);
textArea.goToBufferStart(false);

Discussion

  • Steve Jakob

    Steve Jakob - 2007-12-12

    Logged In: YES
    user_id=17432
    Originator: NO

    Why not just create a macro for this? Use the macro recorder to record the following steps:

    - select all in current buffer
    - copy
    - create new buffer
    - paste

    You can have the macro in the menus or map it to a keystroke.

     
  • Matthieu Casanova

    • assigned_to: nobody --> kpouer
    • status: open --> closed-accepted
     

Log in to post a comment.

MongoDB Logo MongoDB