jEdit Community - Resources for users of the jEdit Text Editor
Archives
moving selected text
Submitted by Perkin5 on Wednesday, 20 July, 2011 - 11:14
When I drag and drop selected text, jedit by default copies the text. Is it possible to set it so that it just moves the text without copying?
fortran code.....changing commenting character to !
Submitted by raisins on Saturday, 23 July, 2011 - 04:40
Dear Community,

When I comment code I am getting the older fortran "C" comment character. I would like to change this to a !. Is this possible?

Thanks,
Seth
setting things up for easy printing later?
Submitted by raisins on Saturday, 23 July, 2011 - 05:29
Dear all,

I would like my code to be formatted in a way where printing is easy. As is, jEdit indicates that my screen is displaying in Monospaced 12 plain font. The print options indicate that printing will be done in the same font except in 9 point font. However, when I print, the font is not 9 pt, it is still 12 pt. Am I missing something easy here?

I would like to set my font to 9 or 10 pt while editing and printing. However, when editing I would like to be able to zoom in (so 9 pt is bigger than it usually is). I have not found how to do this. When I set jEdit to 9 pt font, it simply shrinks the page and so nothing changes (I can fit no more text on a printable line). Any general advice would be appreciated. I am trying to format some code for publication, and I am not a computer scientist (perhaps obviously) and am looking for the most efficient way to do this. I'm pretty sure copying code into a Word .doc and formatting there would be a nightmare (and a duplication of work in some sense).

Thanks,Seth
font point to inch conversion different than usual typographic conventions?
Submitted by raisins on Saturday, 23 July, 2011 - 17:22
Hi,

I would like to set my printing font size and length of line (buffer options>wrap margin># characters) so that what I see on the screen is as it will be printed given the print margins I have set. So, I have a 6.5" wide print area (8.5" minus 2*1" margin) and found out that 9 point font should be 0.1245" width for each character (or 3.1627 mm). I then divided 6.5 by 0.1245 hoping to find how wide in characters my wrap margin should be set. The floor of this number is 52. Experimenting found this to be very wrong. I then held a ruler up to a page printed from jEdit using 9 point type and the character width is right around 2 mm. I could experiment around and find a margin that will work, but it would be nice to know the actual width of a point in inches or millimeters within jEdit (that way it is a bit quicker for future projects and more elegant). I suppose I could just dig out some calipers Eye-wink

So, am I being a total dunce here and missing the obvious or is 9 point font in jEdit not the same as usual? I thought perhaps the point system used was the Didot, truchet, postscript, or some other version, but none of these seem close (truchet makes the line too long on screen and the others too short).

Thanks,
Seth
jEdit 4.4.1 Windows nits
Submitted by dirckb on Monday, 25 July, 2011 - 20:09
Switching to jEdit 4.4.1 on Windows 7; so far I'm enjoying jEdit, but are are some minor annoyances:

* using command line to open a file in jEdit will not switch the keyboard focus to jEdit.

Here's a workaround: front.py

#   bring named window to front
import re
import sys
import win32gui

def winEnumHandler(hwnd, match):
    if win32gui.IsWindowVisible(hwnd):
        if match(win32gui.GetWindowText(hwnd)):
            print "found"
            win32gui.SetForegroundWindow(hwnd)
            win32gui.SetFocus(hwnd)

def front(pattern):
    match = re.compile(pattern).match
    win32gui.EnumWindows(winEnumHandler, match)

if __name__ == '__main__':
    front(sys.argv[1])
and j.cmd:
start C:\PROGRA~1\jEdit\jedit.EXE %*
front "jEdit.*"
This helps but doesn't seem to work every time. Probably needs an event flush somewhere.

Another nit:

* jEdit uses alt+ keys (arrow, pgup/pgdown/home/end, etc). I like to use the keypad (w/numlock off) for these keys, but with alt+keypad, Windows insists on adding a Unicode character, even with numlock off.

I've done some googling but haven't found a workaround for this yet. Might have to add alternate mappings for the relevant shortcuts.

Jedit Embedded shell
Submitted by shafqat on Wednesday, 27 July, 2011 - 20:01
Thank you very much guys. I have been using jedit for the last two months and I am amazed by it's abilities. I see the
Need fir just one capability and that is embedded terminal like emacs and geany. If we can have this it will be a great addon.

/
Shafqat
webDAV, once again
Submitted by zhangweiwu on Thursday, 28 July, 2011 - 16:25
hello. Having seen webdav read/write/browser support there for years. The original plugin for webdav was written about a decade ago and taken down many years ago.

I am a user and I cannot program (yes I know jEdit's tagline is "programmer's editor but I somehow ended up using jedit for editing my non-program-source-code files) but if a programmer have time and come by you can consider adding this feature:)

If you consider putting support of webdav into jedit, perhaps you can also consider being compatible with gnome's URI convention. Right click in gnome and choose open a webdav file in gnome results this command being called:

jedit dav://username@server.domain.name

I don't see it important to support gnome-vfs but supporting the same URI convention would help a lot already.
Character Map Plugin
Submitted by cahbka on Tuesday, 2 August, 2011 - 09:10
The encoding is Unicode or UTF8 and the table displays a 256-character page of the encoding, but the page cannot be changed using the unicode blocks control, why?

(jEdit 4.4.1 server mode, Java 1.6.0_26)
Updated ColdFusion Edit Mode (coldfusion.xml v1.0 by Joshua Miller)
Submitted by j05h on Saturday, 6 August, 2011 - 01:17
This update to the current ColdFusion edit mode includes support for the following: - T-SQL syntax highlighting inside of CFQuery tags - JavScript syntax highlighting inside SCRIPT tags and for inline scripts - CSS syntax highlighting inside STYLE tags and for inline styles - Alternate highlighting for HTML Form controls - Bug fixes for < and > characters inside of T-SQL statements that would previously break syntax highlighting
Multiple empty tabs (buffers)
Submitted by Maxim Korobov on Tuesday, 9 August, 2011 - 09:27
When I press CTRL+N, jEdit allows me to open only one empty tab.
How to configure jEdit to allows me to open unlimited count of new docs?
Script for updating and building working directories of jEdit and plugins (updateJEdit.pl v0.1 by Shlomy Reinstein)
Submitted by shlomy on Thursday, 11 August, 2011 - 05:49
This is a Perl script that can be used for updating and building the working directories of jEdit and plugins. The script works on the current directory, under which the working directories of jEdit and the plugins should be located. It first updates the working directories, from SVN and Git. Then, it builds jEdit and the plugins according to their dependencies, which are read from the .props files.
Please enhance ProjectViewer to allow multiple open projects
Submitted by mabra on Friday, 12 August, 2011 - 20:44
Hi ! I just made an additional comment to: https://sourceforge.net/tracker/index.php?func=detail&aid=2965024&group_id=588&atid=997936 Is there any chance, that - some day ;-) - someone has a look onto it and give reasonable feedback?? If I see, what has changes in the meantime, may I ask: "Is JEdit dead" ??? Thanks a lot and br++mabra Hello! In real world, one works usually with multiple projects at "the same time" and there are a lot of situations, where you generalize work from one or two projects into a new one [into a library, for example]. Additionally, such "parallel open" behavior would really add nice other features to work with:Say, bundle all my daily note-files together into a project, so I can access them all at one with "a single click". I would prefer to allow the ProjectViewer to allow this. This would be - from my perspective - the greatest enhancement to the JEdit plugins ever! Thanks a lot! --mabra
How to run a second copy of jEdit?
Submitted by mabra on Friday, 12 August, 2011 - 20:50
Hi All !

I cannot longer organize my projects using jEdit, due to the inability of the project viewer to open more then one project at a time. I end up to have permanently open something like >> 100 files ...

Is there any way to start a second copy with another configuration?
So, rename the jar, copy it into another directory ... ?
Sorry, have less experience with java.

Any tips could be really great!

Thanks anyway and
br++mabra
Console commando files to integrate jedit and RVM (ruby Version Manager) (rvm-jedit.zip v0.0.1 by ZIOLele)
Submitted by ZIOLele on Thursday, 18 August, 2011 - 15:24
Hello, i've created this commando file and the rvm wrapper to integrate rvm and jedit. To install: uncompress the zip in your commando dir and make sure rvm-ruby-wrapper.sh is executable. Then in console settings associate the ruby interpreter with the command rvm-ruby. You can use project specific .rvmrc the wrapper load them before executing ruby.
Revival
Submitted by Daniel Ly on Thursday, 25 August, 2011 - 14:02
It seems that jEdit experiences a revival.

I am happy because I depend on jEdit utterly and totally. jDiff plugin was broken for a long time (sometimes it hangs sometimes jEdit is very slow after using jEdit), but the new version of jDiff fixes that.

Thank you!!
jEdit Freezes in OS X Lion
Submitted by postlethwaite on Thursday, 1 September, 2011 - 00:30
I was recently given a new laptop with OS X Lion 10.7 installed for my job.

I have been using jEdit, daily, on various platforms since 2002.

Several times a day (but not always), when I go to save a file, jEdit freezes up and has to be "Force Quit." This only happens on my Lion install. It does not happen on my other Mac which uses Snow Leopard 10.6.

This problem happens on jEdit 4.4.1, 4.4.2 and 4.5pre1.

I tried out Eclipse and it froze up on me, once, on a save. I did not get it to do it again.

There are no errors in the logs, that I can see. jEdit does not use extra resources or hike up the load on the CPU, it just freezes and does not return, even after several minutes.

It seems more than a coincidence that I was able to get the freeze to happen on Eclipse, which is a completely different code base. Eclipse and jEdit both use Java.

Java is different under OS X Lion when compared to Snow Leopard, but I do not recall the exact details.

Is there anything I can provide to help figure this out?
Complete newbie problem with jedit+Ruby
Submitted by Sadaharu on Sunday, 4 September, 2011 - 03:22
Hi everyone.

I'm completely new to jedit, ruby and programming in general.
Was trying to execute a simple bit of code in jedit:

puts 'Hallo'
puts "Hello there, and what\'s your name?"
name = gets.chomp
puts 'Your name is ' + name + '? What a lovely name!'
puts 'Pleased to meet you, ' + name + '. :)'

When I run it, it gives a blank prompt without printing the initial "Hallo" and 2nd line puts. If I execute it in Komodo I get the same problem.

If I run it in terminal, however, it works fine.

I have the ruby console plug-in.

Also - I cannot figure out how to get the console to use ruby 1.9.2 instead of 1.8.7. I did manage to upgrade terminal ruby version.

I would greatly appreciate any help! Please remember that I'm not so savvy, you know, if you could limit yourself to simpleton-speak, I'd be much obliged.
Plugin fails to parse trees with more than one top level
Submitted by Jose Quesada on Wednesday, 7 September, 2011 - 11:04
Consider the following outline: A rtrtrt tarstrt artrat B ttrtratrs C ratrtrtr I expec to see on the sidekick (at level 1): A B C Instead I get A rtrtrt B C Plugin fails to parse a any tree with more than one top-level item. It thinks that once you indent, there's no going back one level :)
Outline plugin - bug fix (Outline.jar v0.1 by Shlomy Reinstein)
Submitted by shlomy on Wednesday, 7 September, 2011 - 20:24
This version of the plugin fixes the following case, where some new fold should jump multiple levels back in the tree:
A
       Intro
               tarstrt
B
       ttrtratrs
C
       sdstd
Here, B should be a sibling of A. Previously it used to be under A.
How to catch message about buffer change
Submitted by Riven on Wednesday, 7 September, 2011 - 20:38
Hi,

I'm trying to develop simple plugin which response to buffer changes. So far I build a JAR file called SimpleLock.jar, containing .props file actions.xml and apropriate java.class files.

My problem is, that after creating and saving some buffer no Dialog appear and no text file is written on C: drive (these are the actions, that should be done after buffer saved).

Here is sample source code:

public class SimpleLockPlugin extends EBPlugin
{
public void handleMessage(EBMessage msg)
{
//I guess some dialog should appear if any message is captured.
JOptionPane.showMessageDialog(null, "Some message.");

//My own class for writing content to file
FileEditor.writeContentToFile("Some message.", "C:\\simpleLock.txt");

if(msg instanceof BufferUpdate)
{
//I guess some dialog should appear if any message related to buffer update is captured.
JOptionPane.showMessageDialog(null, "Some message.");

if( ((BufferUpdate) msg).getWhat().equals(BufferUpdate.SAVED) )
{
String path = ((BufferUpdate) msg).getBuffer().getPath();

//I guess some dialog with path to saved file should appear if any message related to buffer saved is captured.
JOptionPane.showMessageDialog(null, path);
return;
}
}
}
}

I aslo get some errors at jEdit startup, right after opening plugin manager window:
org.xml.sax.SAXParseException: Content is not allowed in prolog.
Every time I open plugin manager wondow two SAXParseException appear.

Is it related to my probem with catching buffer changes?

I'm using jEdit 4.4.1

Any help would be appreciated.

Best regards,
Riven
User login
Browse archives
« July 2011 »
MoTuWeThFrSaSu
 
1
4
5
6
7
8
9
10
17
18
19
21
22
24
26
29
30
31
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   108249
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