Doc says only "other plugins can provide their own links". I guess it's done by means
of services. Would be nice to be able to specify links' syntax in some simpler way,
like xml definitions. I've been using an editor which could be configured to enable
links for any external program, with arguments. I configured it to recognize patterns
like: \[program.exe arg1 arg2\].
The XML definition could consist of 3 pieces:
link_regexp
link_type=<open|edit|command>
command - for command type, with references $1 allowed
I'm surprised currently links can only be opened in editor, not with Desktop.
Submitted | jarekczek - 2011-09-05 07:28:52 | Assigned | |
---|---|---|---|
Priority | 3 | Labels | |
Status | open | Group | None |
Resolution | None |
2011-09-05 07:29:27 jarekczek |
- **priority**: 5 --> 3 |
---|---|
2012-09-17 23:47:01 pumbor |
Looks like I had the same idea, but only just found this now. I created a ConfigurableHyperlinks plugin which is in svn and has been submitted to the plugin tracker. Give it a try and let me know what you think. |
2012-09-18 05:42:47 jarekczek |
I think I'll give it a try, when I feel the need for this feature again. But in general
creating a new plugin to enhance another one is a bad idea. Think how many plugins
will jEdit have in several years, if they all evolve this way. How is the user going
to find something then? Open source software developers should cooperate in creating
a common work, not many independent pieces.
|
2012-09-18 13:48:08 pumbor |
Good point, I agree. I originally coded this within the Hyperlinks plugin, but was
concerned about mucking with someone else's code, which is why I separated it. |