jEdit Community - Resources for users of the jEdit Text Editor
Posiibility to open a file jedit via an URL like txmt://open?url=file://%s&line=%s
Submitted by player on Wednesday, 21 July, 2010 - 11:54
With Textmate you can open a file via an URL from a browser, like txmt://open?url=file://%s&line=%s.
This is very useful if you develop with the playframework which shows you errors in the browser.
So you can jump directly to your file and line via the url.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
This is (mostly) a browser/OS feature
by greghk on Sun, 19/12/2010 - 20:08
I have this set up for Firefox 3.6.13 under Ubuntu 10.04.
- define an edit:// URL user protocol in Gnome
- Firefox then honours this user protocol
- the URLs point to local files that jEdit can meaningfully edit
- create a bash script to correspond to the command specified to Gnome
- the bash script then invokes jEdit in server mode to display the file at the specified offset.
I can supply more details if you have a similar configuration.
For Firefox under Windows I think you have to use the registry and I have no idea about other browser/platform combinations.

The catch with this is that if you edit the source file so the line numbers change then you have to update the line number in the URL that the browser displays. What I have done is to specify unique character strings in the URLs. The unique character strings are generally stable between edits. The bash script calculates the line number (with grep) before invoking jEdit with the +line: parameter. This solution will only position to the correct line for the last saved version of the file. To catch the absolute latest version in the jEdit buffer would require running macro at startup which was beyond my current knowledge of jEdit. A jEdit feature I would like to support this is the ability to pass a parameter to a macro on jEdit startup.
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293