jEdit Community - Resources for users of the jEdit Text Editor
Archives
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
XInsert plugin does not load (my) user xinsert file
Submitted by mabra on Friday, 2 April, 2010 - 17:30
Hi All !

I have just upgraded to jEdit 4.3[.1], I installed from scratch and setup all required plugins.

XInsert no longer works for me! None of my xinsert files are loaded!
I tried all, I can think about:
- use the \Program files\XInsert dir
- use \user\.jedit\XInsert dir
- specify a custom dir [in plugin options]
- install the plugin manually

All my includes works well in jEdit 4.2.
I depend completely on XInclude and just cannot continue.

Any help would be really great! I do not know, what's wrong and
if this is a bug.

Best regards,
mabra
PHPParser doesn't parse preg_replace
Submitted by premislaus on Wednesday, 7 April, 2010 - 11:01
code like this:

$addr2 = preg_replace("/(\d+.*$)/is", "", $addr2);

and parser says: Unexpected token: '$'

regards
HTML Cleanup (delete tags and contents)
Submitted by modestmoose on Wednesday, 7 April, 2010 - 20:07
I am working on a project at my law school. I receive news articles in .docx format and then convert them to .html. This requires a lot of cleanup of the extra tags Word puts into the text. I have a very simple macro that does a find and replace to delete common unneccessary tags. What I want to do is the entire header tag and its contents (and other tags such as table tags).

I have no programming background and can't figure it out. How would I have a macro search for (head) and (/head) and then delete the tags and everything in between?

Thank you ahead of time for any insights you can give me,

Brian
FTP - New feature request FTPS/FTPES support
Submitted by Ed34222 on Thursday, 8 April, 2010 - 12:08
It is cool that it does FTP and SFTP (FTP over SSH); but it would be even more handy if it did FTPS(FTP over SSL Passive connection) and FTPES (FTP over SSL Active connection).

SSH is first and foremost a telnet protocol. As such it carries risks.
In order to use it for FTP users must also, often, have telnet access - not exactly ideal from an administrative point of view.

Many servers now use FTPS and FTPES instead of SFTP.

Being able to access those servers directly from jEdit would be quite the time saver.

I currently use the open source FileZilla client to access these kinds of servers.
Locating files
Submitted by strangelybrown on Thursday, 8 April, 2010 - 12:20
If a file references other include files within it, is it possible to locate it in the File Browser without having to manually scroll through the File Browser? I was originally hoping it would be possible to right click on an include reference in order to see the actual file in the file structure.

many thanks
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Paste location at caret instead of cursor?
Submitted by BigDub on Wednesday, 14 April, 2010 - 01:57
I am a newbie -- evaluating jedit cuz it looks like a better editor than what I have been using. Mostly I like the feature set of jedit, but one thing really bugs the heck out of me. It may be a show-stopper for me if I can't change this behavior. Specifically, when I right click and choose paste from the popup, the clipboard gets pasted at the cursor rather than the caret. I think I am using the terminology right... The caret is a stationary spot in the text area that is set by left clicking. The cursor is a dynamically changing spot which tracks mouse movement. All other editors I have ever used paste at the caret and that is the way I would like to have it work. Is there a way? A setting? A plugin? A macro?

jedit version = 4.3.1
OS = Ubuntu Karmic (9.10)

Warren
Block selection
Submitted by optigon on Thursday, 15 April, 2010 - 16:38
Hi all,

There are two ways to select a block of text in jedit as far as I know.
1) press [Alt] + [\] to enter block selection mode. Then use [Shift] and the Arrow keys.
2) press [Ctrl] + the Left mouse button.

While these are both useful, I am trying to figure out if there is a way to make a third option
3) [Alt] + Arrow keys

The advantage is that it wouldn't leave you in Block Selection mode like 1, and you wouldn't have
to move your hand to the mouse, like 2.

I tried making a macro of 2, but the macro recording facility won't register mouse events.
Is there a way to do this?

Richard
I've lost my tag matching and autocomplete functionality
Submitted by jcaponi on Friday, 16 April, 2010 - 19:52
Maybe it was the upgrade to 4.3, but I've lost some jedit functionality:

Tag matching - the highlight in the gutter that would link an opening and closing html tag, for instance; and
Tag autocomplete - being able to hit the tab key and close a bold tag, for instance, after hitting just the open bracket and backslash

What option or plug in do I need?
thanks!
Sharing: A macro for making text bold () with Ctrl-B
Submitted by ezuk on Sunday, 18 April, 2010 - 20:19
Hi all, This may be useful for newbies. A macro based on the "Insert Tag" macro which comes with jEdit, but which surrounds the selected text with b and /b tags. I bound it to Ctrl-B and it's a very useful way to quickly make a word bold.
void insertTag(tag)
{
	caret = textArea.getCaretPosition();
	if( tag == null || tag.length() == 0) return;
	text = textArea.getSelectedText();
	if(text == null) text = "";
	sb = new StringBuffer();
	sb.append("<").append(tag).append(">");
	sb.append(text);
	sb.append("");
	textArea.setSelectedText(sb.toString());
	//if no selected text, put the caret between the tags
	if(text.length() == 0)
		textArea.setCaretPosition(caret + tag.length() + 2);
}

if(buffer.isReadOnly())
	Macros.error(view, "Buffer is read-only.");
else
	insertTag("b");

Enjoy Smiling
First Mate
Submitted by ezuk on Sunday, 18 April, 2010 - 20:31
Hi guys,

Does anybody know why First Mate still isn't in the official plugin repo? How can we get it there?
Sharing: Context sensitive help for PHP using Firefox
Submitted by ezuk on Monday, 19 April, 2010 - 05:20
Her's a macro I adapted for opening php.net's documentation in Firefox for the currently selected keyword:
// Context-sensitive help for PHP.

String editMode = buffer.getMode().toString();
ffpath = new StringBuffer();
ffpath.append("c:/Program Files (x86)/Mozilla Firefox 3.6 Beta 5/firefox.exe ");
keyword = textArea.getSelectedText();
if ((keyword == null) || (keyword.length() == 0)) {
    textArea.selectWord();
    keyword = textArea.getSelectedText();
}

if ((keyword != null) && (keyword.length() > 0)) {
    if (editMode.equals("php")) {
        keyword = keyword.replace('_', '-');
        command = new StringBuffer();
        command.append(ffpath);
        command.append("http://php.net/manual/en/function.");
        command.append(keyword);
        command.append(".php");

        Runtime.getRuntime().exec(command.toString());

    }
}
Fix for edit modes regarding auto documentation tools (e.g. doxygen, phpdoc, javadoc etc).
Submitted by xandrani on Monday, 19 April, 2010 - 13:29
Hi,

I have noticed that there is a doxygen edit mode (doxygen is similar to javadoc or phpdoc for those who don't know - these are tools which autogenerate code documentation from specially formatted comments in source code).

The issue I have is that the edit mode for .php includes PHPDoc but doesn't include doxygen. I think the functionality should probably be that there is a default edit mode for php and a secondary edit mode which represents any auto-documentation edit mode types.

This would apply for people using java with javadoc, or php with phpdoc, or php with doxygen or c with doxygen etc. At the moment phpdoc edit mode seems to be hardwired in to php edit mode. I believe the primary / secondary edit mode work-around is more improved. Or at least have a way of selecting which auto-doc tool is to be associated with which files. I would like to be able to associate my php files with doxygen (as an editing mode) and not phpdoc.

Just a quick shout to all developers of this project... jEdit is awesome... especially as I develop on Windows, OSX and Linux at different times. It works on ALL of these... thanks thanks thanks Smiling :)
Open programming manual when right mouse-clicking on keyword
Submitted by xandrani on Monday, 19 April, 2010 - 17:54
It would be great if somehow a right mouse-click (i.e. context menu) would allow an option to go direct to a relevant programming manual.

e.g. If I'm editing a PHP file and I right mouse-click on file_get_contents() then the entry for that function in php.net is opened in a web browser. This functionality currently exists in other text editors. It would really make things easier. A similar thing for C or C++ and other languages would of course be great too.

Another cool idea would be so that when the user hovers over a library function a large tooltip appears showing the definition of the function and a one line description of what it does.

Apologies if this is already implemented somehow... I could not find it if it is.


Another idea is that feature requests and bugs should be all on sourceforge. It would seem more sensible.

Thanks again to all people involved in creating jEdit... I'm loving it Smiling
Buffer Selector buggy in latest version?
Submitted by smeet on Wednesday, 21 April, 2010 - 23:46
I've been using Buffer Selector for a while with no problems in version 4.1final, and just upgraded JEdit to version 4.3.1 using java 1.6.0_18.
Buffer Selector now spews out stuff like this:
5:10:00 PM [AWT-EventQueue-0] [error] EditBus: Exception while sending message on EditBus:
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: java.lang.NoSuchMethodError: org.gjt.sp.jedit.EBMessage.getSource()Lorg/gjt/sp/jedit/EBComponent;
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: at bufferselector.BufferSelector.handleMessage(Unknown Source)
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: at org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:212)
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: at org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:247)
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: at org.gjt.sp.jedit.EditBus.send(EditBus.java:188)
etc...

It appears to mostly work, but sometimes it won't update the current file when I click in a different buffer etc. Am I missing something, or is this plugin no longer supported?

Thanks for any help,
smeet
Console Plugin - Reading command output
Submitted by weberjn on Thursday, 22 April, 2010 - 11:43
Hi,

has somebody a sample of piping a text area to an external program and getting its output back like with vi
(http://www.linux.com/archive/feed/57727)?
I guess this should be possible, shouldn't it?

select text -> Console -> run current buffer gives "There is no interpreter associated with this buffer"

Thanks,
Juergen
JavaDoc style comments - automated user friendliness
Submitted by xandrani on Thursday, 22 April, 2010 - 15:37
The title sounds hideous but bear with me... When I type: /** and then hit enter. It would be great if the next '*' would automatically appear on clicking enter: /** * <- space here for formatting. Then if I clicked enter again, I'd get: /** * <- space here for formatting. * <- space here for formatting. When I add the final */ this auto-formatting ends; /** * <- space here for formatting. * <- space here for formatting. */ [Note that the string "<- space here for formatting." is just to let you know that a space comes after the *'s each time. It would be blank in practise... I hoped that was obvious ;)] It makes it really nice when writing JavaDoc / Doxygen / PHPDoc type comments. Of course as ever this should be an option, as it will annoy some people... we all have different tastes after all Eye-wink Thanks Smiling
Can't use System.getProperty
Submitted by kamcknig on Thursday, 22 April, 2010 - 20:26
Hey everyone... I'm very very new to plugin development in jEdit, and java in general. I'm trying to use System.getProperty("os.name") so that I can determine the operating system a user is using. But I keep getting a stackoverflow error, with something about the JARClassLoader or something. I can't using anything in System actually. Every line I put that uses it, returns that same error.

Kyle
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