jEdit Community - Resources for users of the jEdit Text Editor
Archives
Use jEdit as external editor
Submitted by lg on Thursday, 4 March, 2010 - 09:43
I want to use jEdit as external editor for my e-mail client. When invoking an external editor my e-mail client creates a temporary file and then opens the editor with that file as the argument. Then when I am finished editing I need to close the editor to notify the parent process that I am done. However since I almost always have jEdit open I don't want to close it in full (I might have 5-10 other buffers open) when I am done writing my e-mail, just close the current buffer.

What I need is a switch to jEdit that starts a separate process, disconnected from the current running instance of jEdit. I have looked at the man page and seen -wait, -newview, -newplainview and other switches but no one seems to do what I need. Have I missed something or is this a missing feature I should report?

Thanks
Updating Account Information
Submitted by nyambol on Thursday, 4 March, 2010 - 13:58
Hello,

Two items. First and most important, I had to create a new site identity in order to log in, after I reset the theme of my old account to one of the items in the 'theme's option list. That 'theme' was completely broken, a set of template tags that hooked into nothing. So there was no longer any way for me to do anything on the site, including reset the theme, once logged in. I did email someone identified as being in charge of community development, but nothing happened. This is really poor on two fronts. No one to contact when there are problems, and (IMO) worse, a half-assed deployment of Drupal that includes elements that are not implemented. It seems that it's caveat emptor if you are fiddling around with your account settings.

The second item is that I tried to upload an 'avatar' picture, and that feature seems broken, too. At least, I uploaded a picture (74x85 png) and after saving settings, the avatar setting reverted to 'no file chosen.'

C'mon guys. I know everybody has a real job, but it's just common courtesy and sense to disable functions that you don't want to mess around with. Purge the themes list or disable it altogether. It's not like it would hurt my feelings if I was stuck with the default site look. A broken "feature" is worse than no feature at all.

Thanks.

mp
Getting past installation
Submitted by okfqcnpe on Thursday, 4 March, 2010 - 17:29
I like the idea of jEdit and it really appeals to me, especially the portability. Is there any way for me to make it a simple executable jar file that i can run on any java-compatible platform? I want to be able to place it in my external hard drive so if i ever need to borrow a laptop, i can simply plug my hard drive in and start coding. I scanned the Install.java file and saw that every installation checks the current OS and installs based on that. Is there anyway to skip the install part and just compile an executable jar?
Moving rectangual selection of text with jedit?
Submitted by oleg on Friday, 5 March, 2010 - 17:00
Hi all!
I started using jedit a few weeks ago and I have couple of questions:

1) After making rectangular selection of text, how can I move text block left, right up or down. This feature would be very useful to change indentation of the code section

2) Can I force hypersearch to highlight the words it found within the buffers ?

3) Whenever I use multiple vncviews, jedit will only start in the vncview that I started first. Whenever I try to execute jedit in the other view, new jedit window pops up in the first vncview.

4) How can I make hypersearch bar to search within multiple buffers. Hypersearch bar searches only within current buffer, I need to pop the dialog to search multiple buffer. Having another check box next to the bar that switches between current buffer and multiple buffers would be very nice.

5) Hypersearch bar keeps the search history. It keeps 20 past searches. Does the tool allow to increase the size of this history buffer?
How to compile and run a java file?
Submitted by jeremyzeehk on Friday, 5 March, 2010 - 23:08
So i am leaning java with jedit. and in PC, at the bottom, there is a console and i type "javac" and "java" to compile and run java program. but now im have a mac, but there is no console button, and i dont know how to compile it. can anyone help me?
Possible Installation/Permissions Problem?
Submitted by Stuart on Monday, 15 March, 2010 - 00:04
Hi,

I just upgraded to a new Intel Core i7 machine running Windows7 64 bit and reinstalled jEdit.

However, although jEdit starts and runs, I find that if I open a file to edit and then make changes
I am unable to save the file, getting instead a

Cannot save: java.io.IOException Rename failed error.

Since there seems to nothing magical about the file itself (generated text from a Matlab program that can be opened in other text editors and the same behavior occurs when attempting to edit other
txt files), I am inclined to believe that I may have some time of permission error or User Account error going on here that may resulted from settings during my installation in the windows 7 environment.

Curiously, the file name when given is surrounded by # signs rather than the simple string in the error message.

ie:

C:\...\Morphometrics\Ves_iso.nts:
leads to
Cannot save: java.io.IOException: Rename failed: C:\...\Morphometrics\#Ves_iso.nts#save#

Not sure if this is a clue as to what might be failing, but it does suggest something odd that I don't understand that may be related to the problem.

Has anyone else experienced a similar problem and might someone be able to offer and explanation as to the possible nature of this problem and suggestions for a fix?

Thank you.

Stuart
Next/Previous Recent Buffer (recently viewed)
Submitted by chambery on Wednesday, 17 March, 2010 - 13:35
Hi,

Is there a way to bind a key to Next Recent Buffer and Previous Recent Buffer?

There's the "Go to Recent Buffer" available (which toggles between the last two buffers), but I'm looking for functionality along the lines of Eclipse, where the buffers are in "most recently viewed order". I'd like to be able to iterate up/down among them with a keybinding.

Thanks,

Todd
Editing file using SFTP and saving with sudo
Submitted by xeph on Thursday, 18 March, 2010 - 06:08
Hello, I'm just wondering if jEdit have the function to connect to a server via sFTP, then do all the work in sudo mode?

Right now I have to sFTP client to connect to server, use sudo with all the command including vi.

Please help. Thanks.
Copy with format
Submitted by weberjn on Thursday, 18 March, 2010 - 07:20
JEdit has some really nice syntax highlighting, e.g. for HTML and XML.

Occasionally I'd like to paste a snippet from jEdit into MS Word, unfortunately the format of the text is lost.

Is there a way, e.g. with a plugin, to get format information into Windows clipboard (I guess this would be Rich Text)?

Thanks,
Juergen
Focus jumps to source window
Submitted by coolcat on Thursday, 18 March, 2010 - 23:37
Hello, I'm hoping someone else can reproduce this frustrating problem that I experience 10 times a day. (PS I love JEdit and use it 8 hours a day).

Windows XP, Jedit 4.3.1
Plugin: Console 4.4.1 + ErrorList 1.8

I've implemented Error Patterns in Console to find errors from my c-compiler command line output. Works great. When compile is done, the error list plugin pops up with all the warnings / errors that I can click on to jump me to the code in question.

Problem: In the command window I type my build command and say it finishes with no errors or warnings. So I want to switch to a different directory (with a "cd" command) and run build again. Unfortunately, after I press the enter key after my first "cd" command, the focus suddenly jumps to the source window. I type very fast so I end up typing text into some random location in the source code.

Sounds trivial, but it happens again and again and again.

I've disabled "Auto-refocus on the text area" in the error list plugin, but that doesn't help.

Thoughts?

Many thanks

Steve
Opening file: reuseview problem
Submitted by lilive on Friday, 19 March, 2010 - 15:30
Hi,

Since a few days, I can't re-use jEdit view to open a file. My OS is Windows XP.

this command...

start "jEdit startup" "C:\WINDOWS\system32\javaw.exe" -Xmx192M -jar "C:\Program Files\jEdit\jedit.jar" -reuseview a-file.txt

...always launch a new jEdit instance.

I did the same thing during many months without problems. I haven't updated my jEdit installation, nor my JRE.

Can anyone help please?
Open/Save to Google Docs
Submitted by vsPiotr on Monday, 22 March, 2010 - 00:16
Hi All,

I'm a total non-programmer so bear with me Smiling

I would love to be able to open/save to google docs (via a URL or ideally getting the doc list from google to choose file from within jEdit)?
I had a short play with python + gdata (docList?) and it seemed straight forward.

I hope that would give me some sort of syntax highlighting for google docs.


Cheers!
Can you edit the list of open files jEdit tries to restore on start-up?
Submitted by Julian Treadwell on Monday, 22 March, 2010 - 02:25
Hi,

A long-time jEdit user but first-time poster here.

I tried to use jEdit to open a large data file which caused it to hang. jEdit now hangs every time I use the standard start-up batch file (start "jEdit startup" "C:\WINDOWS\system32\javaw.exe" -Xmx192M -jar "C:\Program Files\jEdit\jedit.jar" -reuseview %*) unless I append '-nosettings -norestore'. Just appending '-nosettings' or '-norestore' doesn't fix the problem.

I need to remove this filename from the files jEdit will try and open - anyone know how to do this?

Thanks,

Julian
Visible Tabs?
Submitted by rovf on Tuesday, 23 March, 2010 - 17:29
I have set my global options like this:

Tab Width: 4
Soft Tabs: checked

When I press the Tab character, the text is intended to the next multiple of 4 characters, and the intending is done by inserting spaces. This is OK.

When I however open a file which already containins tabs, these settings cause jedit to display the text alsoe tabulated to a multiple of 4, but there is no visual clue that we have a tab character (it looks not different from spaces).

What I would like, however, is the following behaviour:

- If the text contains "hard tabs", they should be displayed either using some special (rarely used) character - as most text editors do - or by using a different background colour - which I would prefer.

- In addition, I would like to set up a different tab width for hard tabs (for instance, 8 characters).

Is this possible with jEdit?
"Open with jEdit" does not work with Win7 (x64)
Submitted by Hans_Bauer on Friday, 26 March, 2010 - 08:27
Opening a file via the context-menu of the explorer does not work anymore under Win7 (x64), although the associated entry in the registration for the context-menu:
HKCR\*\shell\Open with jEdit\Command
with the content
"C:\Windows\system32\javaw.exe" -Xmx192M -jar "C:\Program Files\jEdit\jedit.jar" -reuseview "%1"
uses correct paths.

Amazing workaround:
Create the file "C:\Temp\JEditStart.bat" with the line
"C:\Program Files\jEdit\jedit.jar" -reuseview %1
And create a registration key
HKCR\*\shell\Open via JEditStart\Command
with the content
"C:\Temp\JEditStart.bat" "%1"
This will do the job.

My first suspicion was, that the tcp/ip-traffic between the jEdit-client and the server could be causal and be blocked by the windows-firewall. So i allowed "C:\Windows\system32\javaw.exe" for internal and external traffic, but nothing changed.

Any ideas to fix/enable the original context-menu-item "Open with jEdit"?

Thank you!
Hans
+line command line attribute does not work with spaces on the filepath ?
Submitted by PlayeFox on Saturday, 27 March, 2010 - 19:29
So, I'm trying to load jedit from the command line and redirect the cursor to a line number.
I copy my test text file readme.txt to the HD root, and do from the jEdit folder:

jedit "c:\readme.txt" +line:2

Works like a charm, cursor is right there on second line. Then I create a directory named "a a" at the root, move the readme, and do:

jedit "c:\a a\readme.txt" +line:4

Nope, still on line 2. Tried fidling with the batch file with no luck.
Any ideas ?
Writing text in two buffers
Submitted by DirkK on Sunday, 28 March, 2010 - 13:31
Hi to all,

I'd like to write text in two new buffers, so I wrote this short beanshell script:

buffer1 = jEdit.newFile(view);
editPane = view.goToBuffer(buffer1);
textArea = editPane.getTextArea();

textArea.setSelectedText("Buffer 1\n");

buffer1.save(view, "C:/Work/test1", true);

buffer2 = jEdit.newFile(view);
editPane = view.goToBuffer(buffer2);
textArea = editPane.getTextArea();

textArea.setSelectedText("Buffer 2\n");

buffer2.save(view, "C:/Work/test2", true);

as soon as the script tries to execute the textArea.setSelectedText, I get an exception "Text component read only". Has anyone an idea why I get this exception?
Moving the buffer1.save downward to the buffer2.save the script works fine.

The next challenge: if I try to write in the buffers alternate (first in buffer1, next buffer2 and then in buffer1 again) all the text is written in just one buffer. how do I select where my text is written?

thanks in advance for your responses, Dirk
Re-installing jEdit 4.2 with appropriate plugins
Submitted by Kuba on Monday, 29 March, 2010 - 23:34
Hi,

I'm looking to re-install jEdit 4.2 with a working Jython Interpreter and am running into problems. The reason I'd like to do this is because the current Jython Interpreter seems to have problems with jEdit 4.3.1 -- http://community.jedit.org/?q=node/view/4354.

On an old computer I have jEdit 4.2final which still works with the Jython Interpreter I installed with it a few years ago. When I copy the jEdit 4.2 folder to my new computer, all the plugins are gone. Where can I find the plugin files on my old computer (Mac powerbook, OS 10.4.11)? Spotlight search for "jython" yields nothing.

Alternatively, I still have the jEdit 4.2 DMG installation file and can re-install. But the plugin manager for 4.2 has a very limited list of plugins available for installation, and I'm having trouble installing Jython Interpreter manually. I've downloaded it from the current Plugins page, copied the .jar files into the jars folder, but I get a string of install messages that lead me to install ErrorList and then Sidekick, which, finally, does not seem compatible with my program.

So, does anyone out there know how to run Python macros in jEdit using Jython Interpreter either in jEdit 4.3.1 or 4.2?

Many thanks in advance for your suggestions!
Kuba
Is there a way to create a local mirror for one plugin?
Submitted by patrick_toole on Wednesday, 31 March, 2010 - 04:57
I am developing a plugin that I dont necessarily believe is best served for public consumption. Is there a way for me to create a local "mirror" with only my plugin on it, without having to actually mirror everything?

Basically, I'd like my users to pull from the public mirrors, but have access to our Intranet to download an additional plugin.

Thanks.
Extending the action bar - passing arguments to actions
Submitted by irumat on Wednesday, 31 March, 2010 - 22:46
Hi all,

Long time reader, first time poster. I was thinking of adding a (probably awful) hack to the ActionBar to see if I could have the action bar do something like:

<ctrl+enter>action_name my_arg<enter>

For example, it could be "my.save.as filename.bak". Ofcourse, it would be a big effort to have this work for the built-in jEdit actions. But one could, perhaps, write a macro that took an argument like that. It would replace having to show a dialog box to collect simple input.

Any thoughts? Do you think it is possible and worth pursuing?

Cheers,
Irumat
User login
Browse archives
« March 2010 »
MoTuWeThFrSaSu
3
4
6
7
8
9
10
11
12
13
14
16
20
21
24
25
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   108250
Context Free Art (*.cfdg)   0.31   46071
BBEdit scheme   1.0   18607
JBuilder scheme   .001   18508
ColdFusion scheme   1.0   18041
R Edit Mode - extensive version   0.1   17488
Advanced HTML edit mode   1.0   16222
Matlab Edit Mode   1.0   16086
jEdit XP icons   1.0   15245
XP icons for jEdit   1.1   14309