Why do I get two instances of jedit in the taskbar (windows xp)
I had been using jedit without any problems. However, a few days ago I started getting two instances of jedit whenever I start it. That is, there are two applications called jEdit in the task manager, there are two icons that appear in the task bar, etc. The two copies of jedit sort of stay in sync. (They update themselves to have the same files open.) If you quit one, the other quits as well.
I don't have any sessions defined except "default". To my knowledge, I didn't do anything to get this behavior.
I start jedit with the following shortcut:
"C:\Program Files\Java\jre1.5.0_04\bin\javaw.exe" -mx96m -jar "C:\Program Files\jEdit\jedit.jar"
I'm running windows xp.
Any suggestions?
Thanks,
Craig Schmidt
Automatically run Ant on the default target of the build file for frontmost buffer (Run.bsh v1.0 by Philip Weaver)
Submitted by
philmaker on
Tuesday, 7 March, 2006 - 09:47
It's kind of cumbersome to have to switch between ProjectViewer and AntFarm during development. So I created this simple macro (3 lines) to allow me to press command-r to run the nearest build file for the frontmost buffer. You'll also need to create a keyboard shortcut yourself.
The script assumes that AntFarm and ProjectViewer are docked in the same pane. Whenever AntFarm runs, its panel becomes visible automatically, so the macro quickly switches it back to ProjectViewer (which I always leave open.)
If you have any questions or would like to enhance this, feel free to contact me at philip at philmaker dot com. All of this is documented in jEdit help:
- Console Plugin Help: 6. Macros and the Console plugin
- AntFarm Plugin Help: 5. The Ant Shell
- jEdit API Reference: org.gjt.sp.jedit.gui.DockableWindowManager
Date Tag Buddy (Date_Tag_Buddy.bsh v0.2 by Ralf Kintrup)
Submitted by
RalfK on
Tuesday, 7 March, 2006 - 11:12
[READ THIS USING THE MACRO MANAGER]
Updates certain date value tags in an HTML buffer (the current edit mode must be "html"):
1. Updates the date value of a modification
date tag:
Last modified: 01 Mar 2006
2. Updates the year in a copyright text:
© Me 2006
Updates all "includes" in an HTML buffer. An include is defined as two HTML comments where the first one contains the path to a file that should be inserted between the comments:
The path can be relative, as in the example, or absolute. Included files may contain date tags.
The date tag and "include" updates can be automatically updated when the buffer is saved. Therefore install Ollie Rutherfurd's ActionHooks plugin (http://plugins.jedit.org/plugins/?ActionHooks) and set it up:
1. Add the Date Tag Buddy macro to the
"BufferUpdate.SAVED" event list.
2. Configure the ActionHooks plugin to start up
with JEdit.
This ensures that date tags and "includes" are automatically updated whenever the HTML buffer is saved.
A modification tag is identified by
and . A copyright text is identified by © and . The macro assumes that the date value is located at the end of each tag. To change the default behavior of the macro you can modify the constants at its end.
Checked for jEdit 4.3pre3 API.
OS-X "open" command suddenly stopped working with jEdit
Submitted by
patb on
Tuesday, 7 March, 2006 - 14:31
Help please! I've enjoyed using jEdit under OS-X but I suddently cannot open files from the command line and I don't know how to troubleshoot this.
For months I've been using this csh alias to open files in jEdit from the command line:
je: aliased to open -a ~/Applications/jEdit\ 4.2/jEdit.app !*
For example:
csh: je junk.txt
This suddenly stopped working. jEdit will start but will not load the specified file. Of course our system adminstrator installs software updates from Apple all the time, but I can't tell whether this is a failure of Apple's "open" command or a failure of jEdit. Has anyone else seen this problem?
If I explicitly run the jEdit executable like this:
~/Applications/jEdit\ 4.2/jEdit.app/Contents/MacOS/JavaApplicationStub junk.txt
then it mistakenly starts a NEW file named junk.txt in the jEdit install directory.
Only if I give the full path to the existing file will it open it:
~/Applications/jEdit\ 4.2/jEdit.app/Contents/MacOS/JavaApplicationStub ~/junk.txt
Any help is much appreciated.
Patrick Broos
Astronomy Department
Penn State University
Remember encoding used in open buffers
Submitted by
jere on
Tuesday, 7 March, 2006 - 23:24
I have default encoding UTF8. When I have opened files, set buffer encoding to eg. win1250, close jEdit and start it again, it again use UTF8 instead of win1250.
can't find "differ", "fader tabs" plugins
Submitted by
pi1ot on
Wednesday, 8 March, 2006 - 06:59
I can't find "differ", "fader tabs" plugins of this screenshot:
http://docsynch.sourceforge.net/img/screenshots/jedit/screenshot-main.png
http://docsynch.sourceforge.net/index.php?page[]=2.Screenshots
Automating ProjectViewer (Creating New Projects Programatically)
Submitted by
philmaker on
Wednesday, 8 March, 2006 - 07:47
I'm interested in writing a macro to generate all of my projects in ProjectViewer. Anyone know if this level of interaction with ProjectViewer is possible. I'm also having trouble generating the complete JavaDoc API for ProjectViewer - anyone know if this is available online?
how to get python de-indent?
Submitted by
ilazarte on
Wednesday, 8 March, 2006 - 08:11
in the python interpreter, by pressing enter, i get de-indented one level.
how can i emulate this effect in jedit? i saw something about using a backspace bound to greedy backspace? i clicked Macros -> Editing -> Greedy Backspace but nothing happend. i checked in the help about greedy backspace and but i dont see a how-to. am i supposed to edit the .bsh file somehow? (\jEdit\macros\Editing\Greedy_Backspace.bsh)
TIA!
newbie Q: how to Run Buffer using Python?
Submitted by
midtoad on
Thursday, 9 March, 2006 - 00:40
When I try to "run this buffer", I get an error saying "there is no interpreter associated with this buffer. You can specify interpreters on a mode-specific basis in the Utilities -> Global Options dialog box."
It's certainly helpful to get a suggestion in a case like this. But there is NO place in the Global Option s that I can find where I can specify a Python interpreter.
What's the best way to execute a python script with one click of a toolbar icon?
thanks
S
Adding new web buttons
Submitted by
NickW on
Thursday, 9 March, 2006 - 00:49
Hi All,
I recently created a couple of new web buttons (based on an existing one) but when I tried to send it to "krisk@acps.org.au" it was returned with an unknown email address error. Anybody got any ideas of how I can submit the new web buttons?
Nick
Clipper Plugin Bug....
I seem to be having a problem with the clipper plugin...
When I go into the plugin options, all it has is a place to select a directory.
I also can't find any of the libraries. What I want to do it edit and make my own library, to set up templates and long strings that I end up copying a lot, instead of having two things open and doing copy paste all the time.
What do I do?
Thanks in advance...
Make bookmarklet (Make_Bookmarklet.bsh v1.0 by d delvin johnson)
Submitted by
delvinj on
Saturday, 11 March, 2006 - 01:38
Make_Bookmarklet.bsh -- removes the newlines and tabs in the current buffer, making the text appropriate for use as a javascript bookmarklet.
remote/local views?
Submitted by
szymek on
Sunday, 12 March, 2006 - 11:15
Hi!
I'm using dreamweaver most of the time, but now i try to learn ruby on rails, so i decided to give jedit a try.
Is there a plugin that allows to specify a local folder and a remote ftp server for a single project, switch between them and upload/download files from/to both servers?
ConsolePlugin: marks errors on the wrong line (when compiling or running make)
Submitted by
DanielKabs on
Monday, 13 March, 2006 - 11:46
I recently installed JEdit 4.3pre3 and of course the important
ConsolePlugin. Together with ErrorListPlugin, compiling my C/C++ programs works like a charm. Except for one point: sometimes when running
make console marks the wrong lines.
E.g. the output looks like:
mkformular.c: In function `add_elementlist':
mkformular.c:994: warning: int format, long unsigned int arg (arg 4)
mkformular.c:994: warning: int format, long int arg (arg 5)
mkformular.c:1007: warning: int format, long int arg (arg 4)
Updating version number in version.c
Compiler Run #2343
Consequently, ErrorListPlugin only mentions two of these three warnings. I don't know whether ErrorList has a problem as with having multiple warnings occuring on the same line.
Anyway, if I paste this output into the Test Area on
Plugin Options > Console > Error Patterns pane of the
Generic error pattern it correctly extracts and displays all three warnings.
My problem now is:
- Why does the test show ok, but the real output not?
- Why does error parsing not work at all when I copy the above text to a file an then run cat file on the console?
Cheers
Daniel
from Germany
Editing HTML: jEdit inserts new lines
Submitted by
vojtec on
Monday, 13 March, 2006 - 14:29
When Im editing HTML page, jEdit automatically adds between every two lines new line...
How can I get rid of it?
Thanks for every tip..
Vojtec
Choose and insert file path and name to hyperlinks
Submitted by
philaweb on
Tuesday, 14 March, 2006 - 12:51
Hi,
I am new to this forum and to JEdit plugin's as well.
Is there a plugin avialable for download with the functionality of choosing and inserting a file path and file name to hyperlinks?
Well, it is the only tedious thing about the plain JEdit version, that I have to type all file paths and names manually.
TIA
Choosing and inserting file path and file name to hyperlinks
Submitted by
philaweb on
Tuesday, 14 March, 2006 - 12:56
Hi,
I am new to this forum and to JEdit plugin's as well.
Is there a plugin avialable for download with the functionality of choosing and inserting a file path and file name to hyperlinks?
Well, it is the only tedious thing about the plain JEdit version, that I have to type all file paths and names manually.
TIA
Project viewer recent version became annoying
Submitted by
bigugga on
Wednesday, 15 March, 2006 - 10:21
Upgraded to newer version of this cool plugin and noticed now behavior. As I switch between open files, project viewer cursor updates its position according to opened file. It becomes very annoying, when working on many files in project (not fit in screen on left side).
Please add some checkbox or smth one may uncheck this "feature"
Thanx a lot for this great plugin!
SearchAndReplace problem
Submitted by
turtlecove on
Wednesday, 15 March, 2006 - 18:57
I am writing a Macro that enables a simple kind of Wiki link in any text file. Basically if I run my macro, it finds the nearest words in [brackets] and uses that as a file name to open. It works well, but I added the feature to jump to an anchor [filename#anchor] and I cannot figure out how to get it to jump to text in a document. Here is what I have:
newbuffer=jEdit.openFile( view, WikiWord);
if (hasAnchor) {
SearchAndReplace.setSearchString(anchor);
SearchAndReplace.find( view, newbuffer, 0, true, false);
}
It behaves very erratically. It always opens the new file ok. But then it sometimes finds the anchor text, but usually does not. I've tried resetting the cursor to the top of the file to make sure it isn't past the anchor text:
view.getTextArea.setCaretPosition(0);
But that didn't help.
Strangely, if I add this:
Macros.message(view, "finding " + anchor);
before the find, it works! I suspect the popup window causes the interface to 'refresh' in some way bringing the newly opened file to some displayed state, as opposed to some open-but-not-yet-displayed-state... but I'm just guessing here...
Any help?
Cannot type in save dialog
Submitted by
scaRFhogg on
Wednesday, 15 March, 2006 - 21:36
Sometimes i cannot type in the "File name" field of the save or save as dialog. Selecting text in the field with the mouse does work. But the input field acts as if it was in "read only" mode. Jedit does not give any error message/exception. Also nothing in the activity log. Restarting jedit usually fixes the problem for the next few saves. This is very annoying.
I'm running jedit 4.3pre3 with java jre 1.5.0_05 on kubuntu breezy badger.
Any suggestions on how to fix this problem appreciated.
Thank you.