jEdit Community - Resources for users of the jEdit Text Editor
Append text to end of lines
Submitted by proee on Wednesday, 27 May, 2009 - 22:36
I'm wondering if there's an easy way to do a "block" select across multiple and be able to append text at the end of each line. I usually do this using a rectangular selection, but the rectangular selection is rigid and I would like to find a way to append to the end of the line in it's natural position.

That is, I'm looking for a rectangular selection that can "find" the end of the line as I drag the across multiple lines. I believe this is something that textmate does so I'm sure it's possible...
Templates
Submitted by vhenry on Wednesday, 27 May, 2009 - 18:45
Moving from Dreamweaver, I'm used to being able to create a basic template (usually with header, nav, footer info) and use that to create my other pages, that way, if I need to change something in the navigation for instance, I update the template and it instantly replicates to all other pages in site. Is there such a feature in jedit? I have to imagine there is and I just haven't found it yet.
Downloading latest nightly version?
Submitted by mtgavin on Wednesday, 27 May, 2009 - 18:22
Not sure if this is the correct forum, but it seems as good as any.

There are some bugs in 4.3pre16 that have been fixed since that release. However it seems difficult to download these latest versions- seems like you need to actually compile the source code yourself. (Download and install ant, etc). Frankly I am surprised this is not automated somehow; I had expected the various platform versions would be completely built every night, but apparently they are not.

So is there a way I could just get the latest java.jar for linux (i.e. last night's build) without having to go through a lot of effort with compiling jedit/ant/etc?

Thanks -

Matt
contextmenu on mac?
Submitted by TheGhost on Wednesday, 27 May, 2009 - 05:54
Hello,
how can I add jedit to the context menu on a Mac to open several file types (html, txt, dat, ...)?
Thanks
Dominik
May with JEdit download/edit/upload remote webpage files ?
Submitted by lse123 on Sunday, 24 May, 2009 - 20:56
May with JEdit download/edit/upload remote webpage files ? If yes, I may see and remote hosting folder/file structure ? How many MBs takes on HDD the JEdit ?
Putting my own icons in the Tool Bar?
Submitted by Cheshirewhiskers on Friday, 22 May, 2009 - 01:02
Hi, I'm having trouble putting my own icons into the the Tool Bar... I assume that they have to be 22 by 22 pixels large & either png's or giff's but every time I try to load one, jEdit just freezes. Do the images I'm trying to load have to be in a certain folder or sub directory or something? I'm running jEdit on a mac G4 under OS X 10.4.11
Any help would be appreciated.
Accessing a Remote Database Server
Submitted by vhenry on Thursday, 14 May, 2009 - 20:24
Hi, new convert from Dreamweaver here. I have remote FTP set up but was hoping there is also a feature/plugin that will allow me to remotely connect to my database server. Does anything like that exist? Also 2 questions: is there an html shortcuts menu? is there a way to list css styles?
Jexplorer does not work
Submitted by psimonovsk on Wednesday, 13 May, 2009 - 07:12
Hi! I do not success to get Jexplorer plugin to work... I use jedit 4.3 pre 16 on windows...
I have installed all Java plugins (including Project manager - that Jexplorer depends on)... I get window of Jexplorer pugin... When I enter "create model" - it "creates model" (it appears on list) - but it finish it too fast (almost immediately) and index remains empty... I use java 1.5... Is there any way to troubleshoot it??? Or - any other way to get in jedit xreferences of Java project???
Highlighting the same words by double clicking
Submitted by yirco on Thursday, 7 May, 2009 - 14:10
Hello,

I would like to double click on a word and have all the same words highlighted in the current file I am editing. For example when I double click word "myVariable", all instances of "myVariable" will be highlighted in the current file.

Is it possible to achieve that in jEdit?

Thank you.
Electric Borders
Submitted by jnicholl17 on Monday, 4 May, 2009 - 18:42
- Using jEdit 4.2 -

I find that I am always having to adjust the vertical position of the page so that I can read a few lines before or after the carat position.

Electric Borders solves this problem to some degree, but it seems to be implemented by enforcing a minimum distance from the carat to the window edge of exactly 3 lines.

I am wondering if it is possible to configure Electric Borders so that the distance of 3 lines could be adjustable or user defined.

Better yet, is it possible to configure jEdit so that the carat is always vertically centered?

I am hesitant to add this as a feature request as I am unsure if this is already implemented.

Thanks,

James
Mode Selection
Submitted by gsawyer9 on Friday, 1 May, 2009 - 20:14
How (when) does jEdit determine the mode to be used when editing a file?

My current project has many makefiles named "something.mak." I've set jEdit's makefile mode file name glob to "(*.mak,Makefile,makefile)" but the makefiles are opened in text mode. I can manually change it to makefile mode, but I often forget.

Does anyone know what I'm doing wrong?

Thanks,
Gary.
Global Search and Replace Without Opening Buffers
Submitted by proee on Wednesday, 22 April, 2009 - 22:45
I'm wondering if it's possible to do a "Search and Replace" in a directory without having jEdit open a buffer with the files matching the search criteria.

I'm looking for a way to do a "silent" search and replace where jEdit will make the changes, and save the file, all without opening a buffer (which it's currently doing).

In my case, i have a good 30 files with the matching criteria so when I do a "search and replace" in a directory this opens up 30 buffers.
ErrorList: Sorted as in Console window + clickable?
Submitted by Axel on Monday, 20 April, 2009 - 18:05
Is there a way to get ErrorList behave like this: 1.) Having errors listed in the same order as shown in the Console window (because this order has a meaning) _together with_ 2.) "Clicking on an error will open the file containing the error and move the caret to its location" I can get working only one of these at a time. --- Details below --- Errormessages (of Ruby) look like this, in the Console Window: D:/Test/simple_trx_ui.rb :761:in `on_run_single_test': undefined local variable or method `test_end' for # (NameError) from D:/Test/simple_trx_ui.rb :876:in `eval' from D:/Test/simple_trx_ui.rb :761:in `on_run_single_test' from D:/Test/simple_trx_ui.rb :876:in `main_dialog' from D:/Test/trx/external/highline/menu.rb:312:in `call' from D:/Test/trx/external/highline/menu.rb:312:in `select' from D:/Test/trx/external/highline.rb:309:in `choose' from D:/Test/simple_trx_ui.rb :869:in `main_dialog' from D:/Test/simple_trx_ui.rb :867:in `loop' from D:/Test/simple_trx_ui.rb :867:in `main_dialog' from D:/Test/simple_trx_ui.rb :97:in `initialize' from D:/Test/simple_trx_ui.rb :918:in `new' from D:/Test/simple_trx_ui.rb :918 Process ruby exited with code 1 With: Error Regexp: (\s+from)?\s*(.:[^:]+)\s*:(\d+)Puzzled(.*) Extra lines regexp: I _can_ click every line and caret jumps to the right position, but I don't see the right order because ErrorList is mixed up: --D:/Test/simple_trx_ui.rb | |-- 97:in `initialize' | |-- 761:in `on_run_single_test' | |-- 761:in `on_run_single_test': undefined local variable or method ... | |-- 867:in `loop' | |-- 867:in `main_dialog' | |-- 869:in `main_dialog' | |-- 876:in `eval' | |-- 876:in `main_dialog' | |-- 918 | '-- 918:in `new' | --D:/Test/trx/external/highline/menu.rb | |-- 312:in `call' | '-- 312:in `select' | --D:/Test/trx/external/highline.rb '-- 309:in `choose' With using "Extra lines regexp": Error Regexp: ^([\ \t]*)(.:[^:]+)\s*:(\d+)Puzzled(.*) Extra lines regexp: ^[\ \t]*\s+from\s*(.:[^:]+\s*:\d+:?.*) the error messages are shown in the right order. But when I click the lines the caret jumps to the right position only for the first line (matched by 'Error Regexp'), and if I click the following lines (matched by 'Extra lines regexp'), it does _not_ jump to the the corresponding position. (Using additional grouping with paranthesises in the Extra lines regexp doesn't help.) --D:/Test/simple_trx_ui.rb '-- 761:in `on_run_single_test': undefined local variable or method ... |-- D:/Test/simple_trx_ui.rb :876:in `eval' |-- D:/Test/simple_trx_ui.rb :761:in `on_run_single_test' |-- D:/Test/simple_trx_ui.rb :876:in `main_dialog' |-- D:/Test/trx/external/highline/menu.rb:312:in `call' |-- D:/Test/trx/external/highline/menu.rb:312:in `select' |-- D:/Test/trx/external/highline.rb:309:in `choose' |-- D:/Test/simple_trx_ui.rb :869:in `main_dialog' |-- D:/Test/simple_trx_ui.rb :867:in `loop' |-- D:/Test/simple_trx_ui.rb :867:in `main_dialog' |-- D:/Test/simple_trx_ui.rb :97:in `initialize' |-- D:/Test/simple_trx_ui.rb :918:in `new' '-- D:/Test/simple_trx_ui.rb :918 This view apears to me very usable, if it would have enabled the use of the 'Error Patterns' called 'Filename' and 'Line number'. I'm using: Windows XP jEdit 4.3pre16 Java 1.6.0_07 Console 4.3.8 ErrorList 1.7 RubyPlugin 0.9.2 Error pattern: Name: Ruby Error Regexp: see above Warning regexp: Extra lines regexp: see above Filename: $2 Line number: $3 Error message: $4 "Ruby" is on the top of the Error patterns list Axel
smaller toolbar icons?
Submitted by eldereko on Monday, 20 April, 2009 - 15:50
with 4.2 you could override the toolbar icons, but with 4.3 themes you can only choose from classic or tango... both of which are huge icons compared to almost every other app. is there a way to either override the icons as in 4.2 or switch to a smaller version of the theme, i see there are smaller versions in the jedit jar.
Tag List and Tag Preview Problem
Submitted by gsawyer9 on Friday, 17 April, 2009 - 21:04
I'm trying to use the CtagsInterface plugin Tag List and Tag Preview features. Whenever I invoke either of them, the following error message is generated:

Sourced file: inline evaluation of: `` new dockables.TagList(view); ;'' : Constructor error: Can't find constructor: dockables.TagList( org.gjt.sp.jedit.View ) in class: dockables.TagList : at Line: 2 : in file: inline evaluation of: `` new dockables.TagList(view); ;'' : new dockables .TagList ( view )

I suspect that I've made a mistake in installation or configuration, but I've tried re-installing jEdit and the plugin. Does anyone know what I'm doing wrong?

TIA,
Gary.
Markers and marker browser
Submitted by gryf on Friday, 17 April, 2009 - 17:44
Hi.

In jEdit there is usefull feature called markers (and there is also menu for that) however there is something missing about it. There is no way to agregate all markers in one place like in Hypersearch window (or maybe i cannot find it). After some investigations, I found two things:

1. Plugin Markers Sets (http://plugins.jedit.org/plugins/?MarkerSets)

This is almost what I want, howerver it have two blockers: It have nothing to do with jEdit markers - it provide it own, and it doesn't work with jEdit 4.2 final which I use for "production" as a stable as a rock platform.

Is there any other plugin which can utilize markers information? It'll be perfect if it automaticly scan for marker in entire ProjectViewer project root directory.

2. Macro listMarkers.bsh (http://community.jedit.org/?q=node/view/1057) which uses jEdit markers, but it cannot be docked in way that plugins windows can. Also it list only markers from current buffer.

Is there a way to dock window created by a macro?

And finally - what informations are stored on *.mark file? I can see something like:
!.;289;289
Where dot after exclamation mark is actually null (0x00)

Thanks in advance for any comment.
Untitled Buffers
Submitted by jakbal on Thursday, 16 April, 2009 - 15:26
Hey All -

In my work, I spend a lot of time reading log files. As I read log files, I copy out snippets of information and paste them into tabs within a text editor, formerly UltraEdit. I'm trying to make the switch to jEdit - but I'm running into a really weird issue that I don't seem to get around.

The issue is that I want to have multiple unsaved buffers open at a time. These snippets of information that I paste into the text editor are nothing that I wish to save. In UltraEdit I can open up as many unsaved buffers as I want ... but in jEdit I only seem to be able to open up a single unsaved buffer.

Lets say I have jEdit open with a single buffer, reading a clean (no changes) text file. I hit CTRL-N and a new buffer opens "Untitled-1" - no problems. I hit CTRL-N again to open up a second unsaved buffer - nothing happens! There is no "Untitled-2" ...

Does this have something to do with my configuration of jEdit? Is this a limitation of jEdit? I've done a fair amount of searching and I haven't been able to find anyone else reporting this or discussing it. If it is a limiation, I will probably find myself gravitating back towards UltraEdit, I fear (which I would really like to avoid).

Any ideas?
Block comment dynamic expand
Submitted by alexandrei on Tuesday, 14 April, 2009 - 08:27
Hello,

I am curious if there is a plugin/macro that can do the following thing:
- I manually open a block comment (c/c++, etc), with "/*" or "/**"
- I press enter, and a new * is added at the start of the line, aligned with the previous * (1 line indent)
- the above repeats, until I enter the ending "/"

I've seen this behaviour in vi/vim, and I really like it! This is the only thing that I could not find in jEdit (yet). Otherwise, it's my perfect editor Laughing out loud

Thank you!
Slow paints
Submitted by JMNorris on Friday, 10 April, 2009 - 16:18
I have a new computer and my new installation of jEdit has SLOW window paints/refreshes. My old computer did not have this problem. Refreshes (on opening a new file, scrolling, etc.) snap up with my old installation.

The problem does not occur with at least some other Java apps (eg., Eclipse, SmartSVN) suggesting (but of course not proving) that the problem is not with the JRE. The difference between the two computers does seem to show up with ArgoUML, but I haven't used it enough to know that for sure.

The old compter is a Lenovo T61, the new a Lenovo T400. Both computers are Windows XP, all service packs and other Windows update fixes installed.

Both jEdit installations are v. 4.3pre16. I just upgraded the new computer JRE from 1.6.0, update 11 to update 12. IIRC, the old computer is at update 11.

I tried copying both by ApplicatonData/.jEdit (or, in Micrsoft lingo, ApplicatonData\.jedit) and my Pogram Files/jEdit directories from the old computer to the new computer. It didn't help.

My current Utilities->Global Options->Text Area options include:
Electric (auto scroll) borders [whatever that is]: Off.
Anti Aliased smooth text: none.
Fractional font metrics (for better smooth text display): Off.

At some point, the slowness problem mysteriously (apparently not in response to a settings change) disappeared. However, the slowness reappeared on my next reboot. (I usually try to avoid reboots, preferring stanbys and hibernates. However, this preference is ofeten foiled by the fact that it is Windows.) Could this perhaps suggest that the some setting (fractional font metrics, perhaps) is often ignored???

Any ideas would be greatly appreciated.
Solution: Launching External Apps From Macros
Submitted by ehtyar on Wednesday, 1 April, 2009 - 00:25
Hi guys.

When i first moved to jEdit, I was extremely frustrated by the way Java launches external apps (via Runtime.getRuntime().exec()). It decided internally whether or not you should see a console window for a console program and other stupid stuff like that. There are solutions all over the place using cmd /c and cmd /k to remedy this problem, but that all gets very messy when you're dealing with batch files.

To solve this problem, I downloaded ShellExecute by OptimumX (http://www.optimumx.com/), which basically just uses ShellExecuteEx() to launch the app specified on the command line. When launching apps via this utility, they behave as you would expect them to.

To use it, put it in your jre bin directory, or somewhere in your path environment variable, and use it in your macro like so:

path = buffer.getPath().substring(0, buffer.getPath().lastIndexOf("\\"));
Process proc = Runtime.getRuntime().exec("ShellExecute.exe /F:cmd.exe", null, new File(path));

That example macro will open a command prompt in the directory containing the document of the current buffer.

Hope this helps some people out.

Ehtyar.
User login
Browse archives
« June 2025  
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   108256
Context Free Art (*.cfdg)   0.31   46074
BBEdit scheme   1.0   18610
JBuilder scheme   .001   18511
ColdFusion scheme   1.0   18044
R Edit Mode - extensive version   0.1   17491
Advanced HTML edit mode   1.0   16226
Matlab Edit Mode   1.0   16089
jEdit XP icons   1.0   15248
XP icons for jEdit   1.1   14312