jEdit Community - Resources for users of the jEdit Text Editor
Archives
Current project directory
Submitted by takeshin on Saturday, 1 November, 2008 - 12:11
Hi!

How to get current project directory? (stored in ProjectViewer's xml)
I'd like to have action "add new file to this project".

--
takeshin
Options for Ruby plugin! (especially for auto-complete)
Submitted by alanomaly on Saturday, 1 November, 2008 - 18:02
The Ruby plugin is great, but it contains a lot of features that change how normal data entry into a jEdit buffer works, and not all of these can be turned off.

In particular, I really, really want to turn off the auto-complete for ", (, /, etc. I know a lot of people like this feature, so I understand why it's turned on as default, but why is there no option to disable it? (other than uninstalling RubyPlugin, which I have now done)

Personally, the main reason I like jEdit is because it DOESN'T try to be helpful like this unless I tell it to - if I wanted TextMate or Aptana, I'd get it, thanks. I love the RubyPlugin API browser and error detection, and I'd really like to be able to use these features without the plug-in changing my favourite thing about jEdit.

Please, keep the feature, maybe even keep it as activated by default, but please let me disable it if I want to. It seems like exactly the sort of thing that should have a toggle-on, toggle-off feature.

Thanks!

(p.s. if anyone knows any hacks I could use now to cut it out myself I'd be really grateful, thanks)
All tasks in a project (Project_Task_List.bsh v1.0 by Dale Anson)
Submitted by daleanson on Tuesday, 4 November, 2008 - 05:16
I like the TaskList plugin, it shows the "TODO" messages in a file so it's easy to see them. A feature I've always wanted for this plugin is to be able to show a list of all such messages in a ProjectViewer project, so I don't have to do a search. This macro provides that ability. This macro requires both TaskList and ProjectViewer to be installed.
Accessibility & JEdit - A field of improvement!
Submitted by FMarrenbach on Tuesday, 4 November, 2008 - 09:41
Hello,

Screen Reader´s like VoiceOver on a Mac does not interact with JEdit! Users can not listen to their text while typing. (May be it is possible to bridge the gap with a macor or apple script?)

the toolbox icon will be found by VoiceOver (Screen Reaser of Mac OS X) There are tool tip tests too, but VoiceOver can not read it.

the web site of cmmunity has also problems with accessibility!

Yours
Frank Marrenbach
Accessibility & JEdit - A field of improvement!
Submitted by FMarrenbach on Tuesday, 4 November, 2008 - 09:52
Hello All!

JEdit is a powerful tool to support the development of source code and applications. the rise the usability is it possible to increase the accessibility for handicaped developer. Screen Reader like VoiceOver (Mac OS X) or JAWS (Windows) transform screen content into speech or brailie.

User of JEdit e.g. can not listen to their text while tipping or moving the cursor through the text.

Yours
Frank Marrenbach
Somewhat Advanced SuperAbbrevs
Submitted by takeshin on Tuesday, 4 November, 2008 - 22:10
Hello, Is there any chance of getting SupperAbrrevs to process variable twice? I'm trying to do something like that, but it doesn’t work: ${1:public} <# if ("$1" == "private") { #> <#= "_" #> <# } #> If user enters "private" it should write underscore. Another problem is processing entered variables like this: /** * Setter for property '${1:property}' * * @access ${2:public} * @name set<# fu = "$1"; fu = fu.toUpperCase(); #><#= fu #> * @param ${3:string} \$$1 $4 * @return ${5:null} */ $2 function set${1=firstUp(s)}(\$$1) { \$this->${6:_}$1 = \$$1; } $end It returns setter in PHP like this: /** * Setter for property 'property' * * @access public * @name setproperty * @param string $property * @return null */ public function setProperty($property) { $this->_property = $property; } But I want to have camelCase setProperty after @name How to achieve that? -- regards, takeshin
TextAutocomplete download 0.9.8b do not work.
Submitted by Berthold58 on Wednesday, 5 November, 2008 - 06:23
Hallo,

the download of the plugin TextAutocomplete 0.9.8b do not work.
Does anybody know why ?
How can I solve the problem.
Thanks.
Berthold.
Viewing Jar files & encoding
Submitted by paulvon on Thursday, 6 November, 2008 - 16:46
When I use jEdit (4.3 pre 15) to view a jar file. I am having an encoding issue.

a) Error message on start - The file could not be loaded correctly ... with the encoding xxx
b) There are a lot of square boxes in the code.

I assume that this is an encoding related issue. I have tried a number of various encoding schemes and I always get the items mentioned above.

In addition I have added a number of Plug-ins but they have not resolved the issue.

Any ideas would be appreciated.
MRJApp.properties not found
Submitted by jsudduth on Friday, 7 November, 2008 - 23:02
jEdit used to work just fine on my MacBook Pro OS X 10.5.5. Now when I try to start it up there's a flash then nothing. In the system.log is the following:

Nov 7 13:43:56 jsudduth-mbp-2 com.apple.launchd[128] (0x10bac0.Locum[1998]): Exited: Terminated
Nov 7 13:44:02 jsudduth-mbp-2 [0x0-0x8a08a].org.gjt.sp.jedit[2002]: [JavaAppLauncher Error] CFBundleCopyResourceURL() failed loading MRJApp.properties file
Nov 7 13:44:02 jsudduth-mbp-2 [0x0-0x8a08a].org.gjt.sp.jedit[2002]: [JavaAppLauncher Error] CFBundleCopyResourceURL() failed while getting Resource/Java directory
Nov 7 13:44:02 jsudduth-mbp-2 [0x0-0x8a08a].org.gjt.sp.jedit[2002]: [LaunchRunner Error] No main class specified
Nov 7 13:44:02 jsudduth-mbp-2 [0x0-0x8a08a].org.gjt.sp.jedit[2002]: [JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
Nov 7 13:44:02 jsudduth-mbp-2 [0x0-0x8a08a].org.gjt.sp.jedit[2002]: Exception in thread "main" java.lang.NullPointerException
Nov 7 13:44:02 jsudduth-mbp-2 [0x0-0x8a08a].org.gjt.sp.jedit[2002]: at apple.launcher.LaunchRunner.run(LaunchRunner.java:112)
Nov 7 13:44:02 jsudduth-mbp-2 [0x0-0x8a08a].org.gjt.sp.jedit[2002]: at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
Nov 7 13:44:02 jsudduth-mbp-2 [0x0-0x8a08a].org.gjt.sp.jedit[2002]: at apple.launcher.JavaApplicationLauncher.main(JavaApplicationLauncher.java:61)
Nov 7 13:44:02 jsudduth-mbp-2 com.apple.launchd[128] ([0x0-0x8a08a].org.gjt.sp.jedit[2002]): Exited with exit code: 1


The odd thing is there's no MRJApp.properties file in the jEdit.app package I downloaded. Why is it suddenly looking for this file?

Thanks,
Jim
Zenburn Look and Feel
Submitted by vlad1410 on Saturday, 8 November, 2008 - 10:14
I badly need the Zenburn theme applied to my Jedit ... got an eye problem to solve.
I saw Dale applied this theme to the Lipstik look and feel, available via the "Look and Feel" plugin. Screenshot: http://www.jedit.org/index.php?page=screenshot&image=35
Now, I'm asking any of you, that can compile the SVN code, to please offer me the jar of the new Look and Feel plugin;
- the new jar of the Lipstik look I already copied, but this is not enough to set the Zen theme.

Also any other possibilities of applying a Zenburn theme is welcomed.

Thanks, Vlad
Autosave of untitled buffers on Vista.
Submitted by Nick Payne on Sunday, 9 November, 2008 - 08:30
Works fine on XP, but on Vista this fails with an error messagebox: "C:\Program Files\jEdit\#Untitled-1#: Cannot save: java.io.FileNotFoundException: C:\Program Files\jEdit\#Untitled-1# (Access is denied)".

I can't see anywhere in Options to change the autosave path away from the Program Files dir. I have 4.3pre15 installed on Vista Business.
Abbreviation improvements
Submitted by zorglub76 on Monday, 10 November, 2008 - 11:11
I wanted to try the abbreviation feature. It seems really useful, but I have some suggestion for improvement:

1) Allow users to chose the sets they want
For instance, I want only HTML set to be enabled, not all of them.
How to implement it:
- The current checkbox ("Space bar expands abbrevs") should enable/disable all abbrev sets
- There should be another checkbox ("Enable this abbrev set") below the "Abbrev set" dropdown list. This one should enable/disable the current abbrev set
- There should also be another checkbox for "select/deselect all" abbrev sets (for resetting everything)

2) Allow users to choose the key for expanding abbrevs
Users should be allowed to choose if the abbrevs should be expanded by space, or some other key combination (e.g. "c-enter")

3) Create a shortcut for toggling abbreviation functionality
For instance, I would like to switch abbreviations on and off without going to main menu

What do you think?
Is this possible?
vi fo+=w style linewrap compatibility?
Submitted by zhangweiwu on Monday, 10 November, 2008 - 14:55
Hello. I am a new user who want to stay compatible with my colleagues who uses vim. In vim there is a line-wrap mode called "fo+=w". Manual here:

w Trailing white space indicates a paragraph continues in the next line.
A line that ends in a non-white character ends a paragraph.

I want jEdit to behave similarly so we don't have a conflict when we both work on the same project. jEdit currently line-wrap by adding a EOL (end-of-line) right at the point of breaking, without trailing white space. This makes vim user difficult to edit the paragraph again. If vim user remove a word, the first word in the next line in the same paragraph would not flow up to the bottom of the current line as he expect, because the missing trailing space make vim think each line is a paragraph.

I could do a good goole out the solution because naturally it's hard to describe this problem. Can jEdit be configured compatible on this text formatting with vim?
Text area display garbles but only on monitor 2
Submitted by Nick Payne on Monday, 10 November, 2008 - 20:01
I'm running a dual monitor setup using Windows Vista SP1 32-bit with a pair of 20" LCD monitors. Java version is JRE 6 update 10 and jEdit is 4.3pre15. On monitor 1 the jEdit window looks fine, but if I drag the window to monitor 2, at the point where more than 50% of the window is on monitor 2 the text area suddenly changes to show a small part of the file I am editing repeated over and over. If I drag the jEdit window back to monitor 1, as soon as more than 50% is on monitor 1 the window changes back to the correct display.

If you have a look at the screen dumps I have uploaded to http://www.users.on.net/~njpayne/stuff/monitor1.jpg and http://www.users.on.net/~njpayne/stuff/monitor2.jpg you can see what I mean.

The only plugin I've installed in addition to the default ones is LilyPondTool.

The only other Java application I use is Audiveris, and it works fine on either monitor. No other applications on the machine have any display problem on either monitor.

Nick Payne
[Console plugin] : commando in interactive mode
Submitted by poleta33 on Thursday, 13 November, 2008 - 11:06
Hi

First the commando facility with the xml file is pretty excellent !... now my question : is it possible to invoke my command in interactive mode... it means that after running my command, I have to enter texts which may be differents...
search and replace macro...
Submitted by Molamini on Thursday, 13 November, 2008 - 17:41
Hello, I have a search and replace macro problem. while searching, if the next text (e.g. WEB PAGES) is not in the display, a runtime exception occurs when searching for the next word. An example would be the text WEB PAGES being more than 50 lines down (I'm assuming 50 lines down is below the display of the screen) from the WEB PAGES text found. giving the following macro filename: test.bsh -------------------------- // This is a recorded macro. First, check over the // commands to make sure this is what you intended. Then, // save this buffer, and the macro should appear in the // Macros menu. SearchAndReplace.setSearchString("WEB PAGE"); SearchAndReplace.setAutoWrapAround(false); SearchAndReplace.setReverseSearch(false); SearchAndReplace.setIgnoreCase(false); SearchAndReplace.setRegexp(false); SearchAndReplace.setSearchFileSet(new CurrentBufferSet()); SearchAndReplace.find(view); SearchAndReplace.setSearchString("WEB PAGE"); SearchAndReplace.setReplaceString("<<>>"); SearchAndReplace.setBeanShellReplace(false); SearchAndReplace.setIgnoreCase(false); SearchAndReplace.setRegexp(false); SearchAndReplace.replace(view); SearchAndReplace.setSearchString("WEB PAGE"); SearchAndReplace.setAutoWrapAround(false); SearchAndReplace.setReverseSearch(false); SearchAndReplace.setIgnoreCase(false); SearchAndReplace.setRegexp(false); SearchAndReplace.setSearchFileSet(new CurrentBufferSet()); SearchAndReplace.find(view); SearchAndReplace.setSearchString("WEB PAGE"); SearchAndReplace.setReplaceString("<<>>"); SearchAndReplace.setBeanShellReplace(false); SearchAndReplace.setIgnoreCase(false); SearchAndReplace.setRegexp(false); SearchAndReplace.replace(view); SearchAndReplace.setSearchString("WEB PAGE"); SearchAndReplace.setAutoWrapAround(false); SearchAndReplace.setReverseSearch(false); SearchAndReplace.setIgnoreCase(false); SearchAndReplace.setRegexp(false); SearchAndReplace.setSearchFileSet(new CurrentBufferSet()); SearchAndReplace.find(view); ------------------------------------------- and given the file to search and replace filename: test.txt ------------------------------------------ WEB PAGE ...(about 60 lines down)... WEB PAGE ------------------------------------------------ I get the following runtime error... 9:29:38 AM [error] SearchAndReplace: java.lang.RuntimeException: Invalid screen line count: 10 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.textarea.DisplayManager.getScreenLineCount(DisplayManager.java:192) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.textarea.FirstLine.physDown(FirstLine.java:174) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.textarea.DisplayManager.setFirstPhysicalLine(DisplayManager.java:632) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.textarea.TextArea.setFirstPhysicalLine(TextArea.java:754) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.textarea.TextArea.scrollTo(TextArea.java:981) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.textarea.TextArea.scrollTo(TextArea.java:887) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.search.SearchAndReplace.find(SearchAndReplace.java:661) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.search.SearchAndReplace.find(SearchAndReplace.java:519) 9:29:38 AM [error] SearchAndReplace: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 9:29:38 AM [error] SearchAndReplace: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 9:29:38 AM [error] SearchAndReplace: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 9:29:38 AM [error] SearchAndReplace: at java.lang.reflect.Method.invoke(Method.java:597) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.bsh.Reflect.invokeMethod(Reflect.java:134) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.bsh.Reflect.invokeStaticMethod(Reflect.java:98) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:796) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:336) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:281) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:207) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros.java:1020) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.Macros$Macro.invoke(Macros.java:441) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:383) 9:29:38 AM [error] SearchAndReplace: at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:3000) -----------------------------------------------------
SuperAbbrev Problem
Submitted by nyte on Friday, 14 November, 2008 - 04:29
Hello everyone,

I'm new to jEdit but already love it. I'm trying to setup a nice development area for Ruby on Rails. everything works great. I have superAbbrev plugin abbreviation files for .rhtml files but I would like them to be active for .html.erb files since it's the new way of doing things in ruby on rails. Is there an easy way to associate the the rhtml abbreviation file with the new file extension (.html.erb)

I hope that made sense

thanks,
nyte
Problem on Ubuntu 8.10: can't type {[]}
Submitted by tomK on Sunday, 16 November, 2008 - 16:43
Hello,

I have a small Eye-wink but difficult problem with my jEdit-editor. I use it now a
few years without big problems. But now it's a little bit more ...

I use it under linux (with windows too, but there are no problems), before with
Ubuntu 7.10, with sun java 5 or 6 (it makes no
difference for me for this problem). And - as german - I have german keypad with
"de-nodeadkeys"-config. With "CtrlAlt-Right 7" for example I get "{" and so one.

Now I changed to Ubuntu 8.10. And there, if I type "CtrlAlt-Right 7" I get "7"
instead of "{"! (it's not really good for programming Eye-wink ) Does anybody have
seen such behavior? It looks as it would ignore
"CtrlAlt-Right"-key. Other applications on this installation do not show such,
there all is fine.

I have tried 4.3pre15 and too 4.3pre13 from official ubuntu package servers.
Same thing. Every time fresh installed (e.g. no ~/.jedit directory) and no
plugins. I'm not sure, if Ubuntu 8.04 is ok or not. I had it only a short time
installed and havn't used jEdit much in this time. But I know, that Ubuntu 7.10
works fine with jEdit.

Maybe it depends on new X server, but I'm not sure and I don't know, how to catch
it. Anybody out there with some suggestions? Some comments in other boards suggests also, that something is broken with sun java under Ubuntu 8.10.

Greetings,
Thomas
more recent version of syntax highlighting
Submitted by ehmdjii on Sunday, 16 November, 2008 - 20:36
hello,

i was wondering if there is a more recent version of the syntax highlighting package here: http://syntax.jedit.org/

i'd like to create a texteditor in my java program that highlights some keywords and provides line numbers. does anyone know of a library that can accomplish that? thanks!
Find/Replace: uppercase a search result
Submitted by Todd Chambery on Tuesday, 18 November, 2008 - 15:31
Hi all,

How do I (can I?) uppercase the result of a find?

Thanks,

Todd
User login
Browse archives
« November 2008 »
MoTuWeThFrSaSu
 
2
3
11
12
15
17
19
22
23
24
25
29
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   83281
Context Free Art (*.cfdg)   0.31   46055
BBEdit scheme   1.0   18595
JBuilder scheme   .001   18495
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