jEdit Community - Resources for users of the jEdit Text Editor
Archives
Parse error when trying to replace blanks
Submitted by gold-mary on Tuesday, 16 November, 2010 - 08:30
Hi,

I apologize in case this is a duplicate. I searched the forum, but did not find anything which seems to be similar to this issue.

I use jEdit 4.3.2 (Java 1.6.0_22).
Since a few days it is not possible any more to replace blanks. When I select "Text" within the Find dialog, nothing happens. In case I select "Return value of a BeanShell snippet" I get an error:

Parse error at line 3, column 9. Encountered...

Is there anything broken? Or is it just a setting I have to change.


Thanks a lot for your help,

gold-mary
SVNPlugin: Authentication failed
Submitted by Zelos on Tuesday, 16 November, 2010 - 10:10
Hello,

I just installed SVNPlugin version 1.6.0 with dependencies as mentioned in the plugin page. My jedit version is 4.3.2 using java 1.6.0_20.

When I try to access my repository via svn+ssh the SVN console shows "error while listing entries: svn: Authentication required".
However, I tried to provide the username as part of the URL as well as input into the username field. Password is not required since I use a public key file.

It seems that ssh is not called correctly from jedit, restricting authentication to password only (which is not provided) instead of using ssh's default mechanisms.

How can I get this working?

Thanks!
David
UpdateIndex (UpdateIndex.bsh vV1.0 by Peter Theobald)
Submitted by turtlecove on Wednesday, 17 November, 2010 - 02:30
Macro for keeping an "index" or "table of contents" at the top or bottom of an outline file. It assumes all non-indented lined are headers with indented content following each header. Also assumes there is a header titled "Index".

UpdateIndex scans the current buffer, makes a list of all the headers, and replaces the section titled "Index" with this list.

For example:

Index
    old items
    no longer present

shopping list
    peaches
    apples

calls to make
    call Larry
    call Moe
    call Curly

After running UpdateIndex macro the file will be:

Index
    shopping list
    calls to make

shopping list
    peaches
    apples

calls to make
    call Larry
    call Moe
    call Curly
It works really well in conjunction with my WikiWord.bsh macro which can turn each header into an active link.
Menu Editor with Separators
Submitted by patchworker on Thursday, 18 November, 2010 - 22:45
Hello,

I really like the Menu Editor plugin and added some new menus, e.g. XML

I put some actions into the new XML menu and now I would like to put in some separators. I didn't find something about separators in the help-menu and now I don't see why the "Separator" Button doesn't work for me (jEdit 4.3.1 on Ubuntu 8.04)

(in the SourceForge/ bugs & patches list I also didn't find anything about this problem)

Can somebody give me hint how I can add separators using the plugin or manually in a props file?

Greets!
Daniel Brüßler
Clean up the old projects?
Submitted by patchworker on Friday, 19 November, 2010 - 08:38
Hi,

I just deleted spam in the projects-list, the project-name was "Aaaaaa".

All the others are from 2003 ... 2004, so they're already done (like Sidekick) or not done.
http://community.jedit.org/?q=project&tid=83

Is it OK, when I clean up this list?

Greets!
Daniel
creating a user language dictionary in jEdit
Submitted by pat4kin on Tuesday, 23 November, 2010 - 10:43
Hallo!
I have been in search of a text editor for work on a desktop running MS-Win-XP and a notebook running Linux Ubuntu.
Having installed jEdit on the XP system I am impressed with the functionality.
I am building a translation model to translate my English texts into German and need the ability to run my dictionary on the jEdit platform. The dictionary is based on a csv file structure.
Can anyone recommend me a way to get a dictionary running with jEdit?
I would like to make use of the create text tags function on jEdit.
I would then use the same tags with the dictionary entries.
Would BeanShell be a way?
What would, for a non-programmer, be the best way to create a simple dictionary look-up script?
For any good ideas I would be very grateful.
Thanks and regards, pat4kin.
MenuEditor 0.5 (MenuEditor.jar v0.5 by Shlomy Reinstein)
Submitted by shlomy on Saturday, 27 November, 2010 - 00:29
Replaced the separator button with an item in the action set list on the right.
Run shell command; return to text area
Submitted by grantciv on Monday, 29 November, 2010 - 00:28
I'm having trouble writing a macro that runs a shell command and returns to the text area. The ultimate goal is to have a macro that saves all the buffers (without confirmation), runs the current buffer in an appropriate interpreter (python, e.g.), and returns to the text area. Really, if focus could simply remain in the text area, that would be great.

The trouble I'm having is that the view.prevTextArea() call is either being executed too early or it's simply not working the way I understood. The focus ends up in the System shell area. My code is below. I think the only important lines are the three last ones, but I'm including it all, just in case.

// 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.
filetypeToCompilers = new java.util.HashMap();
filetypeToCompilers.put(".py", "python -tt");
filetypeToCompilers.put(".java", "javac");

fileExtensionPattern = java.util.regex.Pattern.compile("(\\.[^.]*)$");
matcher = fileExtensionPattern.matcher(buffer.getName());
if (matcher.find())
{
	extension = matcher.group(1);
}
else
{
	Macros.error(view, "Unable to determine file type (missing extension?).");
	return;
}

compiler = filetypeToCompilers.get(extension);
if (compiler == null)
{
	Macros.message(view, "No compiler/interpreter defined for extension '" + 
	extension + "'");
	return;
}

runCommandInConsole(view,"System",compiler + ' ' + buffer.getPath());
waitForConsole(view);
view.prevTextArea();

Any thoughts?
How to get "last viewed buffer"?
Submitted by chambery on Monday, 29 November, 2010 - 01:45
Hi all,

I'd like to modify the SwitchBufferPlugin to behave like the editor switching from Eclipse, ie the sorting of buffers is in "last viewed order".

So- is there a way to get a buffer's last viewed timestamp?

Thanks,
Todd
Matlab Edit Mode(with support for auto indentation) (matlab.xml v1.0 by Excee)
Submitted by tooyoungdy on Monday, 29 November, 2010 - 06:02
this is largely based on the version written by Chris Rose, with the addition of working auto indentation. Also, it fixed a bug with the ' operator.
Indent folding mode error - blank lines
Submitted by patrickb on Wednesday, 1 December, 2010 - 14:14
The behaviour of a line at indent folding should only depend on the number of initial tabs in the line, not on the content of the line.

However, when using indent mode, blank lines are not folded correctly. E.g.
A.
___B.
.
C.

(dots denote end of lines, third line is a blank line, ___ represents a tab) after folding looks like:
A.
C.

However, the blank line is on the same "tab hierarchy" as A and C. Therefore

A.
.
C.

would be correct. Why is this a problem? I use jEdit to edit plain text. Blank lines should serve to separate topics A and C, but after folding, the blank line is folded as well and readability is impaired a lot!

Only a line with tabs should disappear by folding:
A.
___B.
___.
C.

should fold to:
A.
C.

By the way, as a workaround I tried to introduce a space into the blank line to get the folding correct, but this doesn't work. Only lines with real text fold correctly.

Thanks

Patrick
jEdit has a weird look
Submitted by MrPedantic on Sunday, 5 December, 2010 - 18:59
I don't know why, but when I open jEdit now the interface becomes all screwed up on mouse-over, or when I type at the caret. The interface I configured normally has 4 panes: left for console, right for preview of output (I use jEdit with LilypondTool), in the middle for input, and below that I have a pane for midi playback. Except when I mouse over the right pane, or type in the middle pane, I get something that looks like this:

http://img207.imageshack.us/img207/6325/jediterror1.jpg
http://img696.imageshack.us/img696/967/jediterror2.jpg

Sometimes closing and restarting jEdit works; sometimes it doesn't. Last time I had to completely uninstall and reinstall jEdit for the problem to go away, but after I closed jEdit yesterday, opening it up again seems to just bring the problem back.
Where is the output of jlint??
Submitted by wandro on Monday, 6 December, 2010 - 09:42
I have successfully installed jlint/antic and defined the paths to these programs. But when I run lint on C/C++ sources, nothing happens. Where can I find the output of lint?
jEdit + RVM + console
Submitted by Clyssandre on Tuesday, 7 December, 2010 - 22:10
Hi there,

In my long journey trying to find a comfortable IDE for Ruby on Rails on
Ubuntu, I found this tutorial to set up jedit :
http://www.wikihow.com/Install-Jedit-for-Rails

It looks fine for the moment but I have one slight problem with the
console plugin : it can't find RVM. Consequently it can't find any rails
version and I can't run any ruby scripts or rake commands. RVM works
properly in a usual terminal of course.

rvm -v doesn't work (unknown) but anything else like firefox -v does. So
I guess the console plugin simply doesn't load RVM when it starts.

I posted on two rails forums and couldn't find any answer at the moment. Could anyone help me fix this ?

Thanks, Lily
Version 4.4 ?
Submitted by JohnQSmith on Monday, 13 December, 2010 - 17:13
Top of the jedit.org page shows "Last Site Update: 09 Dec 2010 | Stable Version: 4.4". Going to the download page, it appears that all the links have been updated to version 4.4. However, trying to download gives an error, e.g. "The "/jedit/4.4/jedit4.4install.jar" file could not be found or is not available. Please select another file." Going to the file list at SourceForge shows 4.3.2 as being the most recent version. Page has been updated, but file downloads haven't?
ESQL/C mode for JEdit (esql.xml v1.0 by Slawomir Rewaj)
Submitted by slawekrewaj on Tuesday, 14 December, 2010 - 06:24
This file is based on JEdit C Mode. It adds embedded SQL extenstions.
Extended Plugin manager
Submitted by kathywhitton012 on Tuesday, 14 December, 2010 - 17:11
Hi,

That would be cool for the plugin manager to :

1. select only plugin available for the current version of jEdit
2. disable all plugin that can't work for the current version of jEdit

I remember the customisable fold handler that didn't work from 4.2 to 4.3...

Also, if we could have an update manager ala Firefox Bon Echo (2.0), that would be the best Eye-wink

(Anyway, I don't know if it's the first thing I would do if I were developping for jEdit)


Wholesale fashion
too many apps opening at startup
Submitted by koszta5 on Wednesday, 15 December, 2010 - 21:21
Hey,
I am running jEdit on Mac OS and it got kinda broken on the mac for me. I have like 60 files opening at startup (there was some error at first bu a ignored it and let it run and it caused a one more new empty file to load at startup. Now if I run it with -nosettings I am fine but otherwise it opens and crashes out of memory (obviously).. I couldnt find the file with jEdit preferences on MacOS... no xml saying what files to load on startup... Where is it located on Mac OS? (I know where it is on windows...)
thank you very much
Mojo::Template edit modes
Submitted by Krassimir berov on Sunday, 19 December, 2010 - 17:25
Hi, all. Today I made edit modes for the Mojolicious Web Framework Perl. https://github.com/kberov/scratches/tree/master/tools/jedit/modes

I made two files. The first(mojo-template.xml) is just for embedded perl which can be used with any type of template and will highlit only the perl code. The second (mojo-html.xml) is for html and uses the MAIN rule from mojo-template.xml.

I looked at other implementations like asp.xml,rhtml.xml,php.xml and combined examples from there so the new mode files are pretty small.

However there are some issues which I can not resolve my self an will be glad to hear from you: Here is one: When in the edited file there is code like:
    <% if ($article->has_tags) { %>
        This entry was tagged <%= tags_links $article %>.
    <% }%>

the delimiters "<% and %>" between the first and the last delimiter in the showed example are not highlited properly. I could not find the chunck of XMl solving this in php.xml for example. Any hint will be highly appreciated. Thanks

Option to order buffer switcher list by time last edited
Submitted by greghk on Sunday, 19 December, 2010 - 20:38
I keep dozens of files open in jEdit. At any given time I'm usually
flipping between a small subset of them. The buffer switcher orders files alphabetically,
so I often have to switch repeatedly between files at the beginning and end of
the buffer switcher list which means scrolling the list if both files are not visible.
ctrl+` is okay for switching between 2 files but I'm usually in a slightly bigger loop.

alt+f alt+f brings up the recent files list. It's order eludes me but it is not ordered by time last edited. I can change the order by reloading files but this is extra key strokes and doesn't keep up
with changing patterns of file use.

Anyone have any other existing solutions? I suspect this could be done in a plugin. Any existing plugins? If not I'll submit a formal feature request.
User login
Browse archives
« November 2010 »
MoTuWeThFrSaSu
1
2
5
6
7
8
9
11
12
13
20
21
22
23
24
25
26
28
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