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.
This is clearly the job of a macro.
See attached macro for an example.
I agree to@Eric Le Jay and would close this.
Last edit: Skeeve 2017-10-28
While the additional feature is too specific to add to the core, having "create a file from selection" would be nice, I think.
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
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.
I don't think it should be in core. Closing now.
It was pending waiting for a response from Victor.