Menu

#533 Create a new file from selection

none
closed-rejected
None
5
2017-11-04
2017-03-12
No

Not sure if this should be in jEdit feature requests or jEdit plugins feature requests.

Please add "Create a new file from selection" menu item.

An additional useful feature would be to immeditely save this new file to a (configurable) directory under a configurable name dependent on the original file name. For example: editing file Ring.pm I want to create the file /home/porton/t/Ring-extract.pm where /home/porton/t/ is a configurable directory and the file name is determined by the option %s-extract somewhere in preferences.

Discussion

  • Eric Le Lay

    Eric Le Lay - 2017-03-20

    This is clearly the job of a macro.
    See attached macro for an example.

     
  • Eric Le Lay

    Eric Le Lay - 2017-03-20
    • status: open --> pending
    • assigned_to: Eric Le Lay
     
  • Skeeve

    Skeeve - 2017-10-28

    I agree to@Eric Le Jay and would close this.

     

    Last edit: Skeeve 2017-10-28
  • Roman Tsourick

    Roman Tsourick - 2017-11-02

    While the additional feature is too specific to add to the core, having "create a file from selection" would be nice, I think.

     
    • Skeeve

      Skeeve - 2017-11-02

      What for if a macro can do?

      And after all: It's just a three-key workflow (besides naming the file):

      After Marking the selection: Copy - New Buffer - Paste

       
  • Roman Tsourick

    Roman Tsourick - 2017-11-04

    I can not say if three-key flow is too much or not. But if the feature is implemented, I feel like the right place for it is core, so that it also can be placed under File menu (near to others "New ...") and others (like context one) out of the box.

    Probably, as the author needs the whole chain of those specific actions, "create from selection" is out of the scope of this request.

     
  • Eric Le Lay

    Eric Le Lay - 2017-11-04
    • status: pending --> closed-rejected
     
  • Eric Le Lay

    Eric Le Lay - 2017-11-04

    I don't think it should be in core. Closing now.
    It was pending waiting for a response from Victor.

     

Log in to post a comment.