Title Case
Submitted by
Llelan D. on
Saturday, 17 July, 2010 - 13:48
I see menu entries and shortcut commands for "To Lower Case" and "To Upper Case", but where is the command for "To Title Case"?
Title Case - Each word is all lower-case except for the first letter which is upper-case.
Posiibility to open a file jedit via an URL like txmt://open?url=file://%s&line=%s
Submitted by
player on
Wednesday, 21 July, 2010 - 11:54
With Textmate you can open a file via an URL from a browser, like txmt://open?url=file://%s&line=%s.
This is very useful if you develop with the playframework which shows you errors in the browser.
So you can jump directly to your file and line via the url.
Mode appropriate comments in templates
Submitted by
sillydragon on
Wednesday, 21 July, 2010 - 13:23
While messing around with the Template plugin I decided it was pointless to have different templates to take into account differences in comment characters for
different languages, so I poked around to see if I could find a way around this and came up with this.
--
## template = Get mode comment char
#*
Get the line comment character for the current buffer's mode. If the mode
doesn't define a line comment character, complain and ask what prefix
string to use instead. $comment will contain the results either way.
*#
#beanshell (false)
context.put("caret", view.getTextArea().getCaretPosition());
context.put("comment", buffer.getContextSensitiveProperty(caret,"lineComment"));
#end
#if ( $comment )
#else
#prompt ( "Mode doesn't have a line comment. String prefix to use?" $comment )
#end
--
Put that in a file called "getcommentchar.vm" in your templates directory, then in other templates you can do:
--
#parse ( "getcommentchar.vm" )
${comment} Lorem ipsum
${comment} dolor sit amet, consectetur adipiscing
--
The inserted text will be preceded by whatever passes for line comments in the buffer's language, or the prefix text you gave.
Enjoy.
Can't paste text from jEdit to Maya
Submitted by
pixeldroid on
Thursday, 22 July, 2010 - 04:36
I am using jEdit as a text editor for Maya, a 3D animation program.
When I copy text from jEdit, it won't paste into Maya, but it will paste into EditPlus (a text editor) and Word, and then I can copy from either of those to Maya.
Anyone have a suggestion to fix this? OS is WinXP x64.
Thanks.
Text selection - highlight only selected text
Submitted by
alexwebb2 on
Thursday, 22 July, 2010 - 22:30
When selecting across multiple lines, jEdit has the curious behavior of highlighting the entire region from left to right - well past the last character - instead of highlighting just the selected text. I would like the selection highlights to be a visual indicator of what is actually selected (including any whitespace at the end of the line). Is there any way to alter this behavior? I'm willing to write a plugin to take care of this if there's a way to override selection paint methods in the API (I looked, and couldn't find anything).
Any input would be appreciated.
Alert before overwriting
Submitted by
someone235 on
Sunday, 25 July, 2010 - 07:06
It'll be very comfortable if jEdit will warn you before it overwrite an existing file.
jython - open docs in infoViewer?
Submitted by
pixeldroid on
Monday, 26 July, 2010 - 12:03
I'm trying to figure out how to display docs in the infoViewer (in Windows), but I get an error.
Can someone help?
file = 'C:\Projects\Websites\Pfarm\MayaStuff\MayaPlugins_jEdit.html'
InfoViewerPlugin.openURL(view, file)
ERROR:
Traceback (innermost last):
File "C:\Documents and Settings\Administrator\.jedit\macros\displayHTMLTest.py", line 7, in ?
NameError: InfoViewerPlugin
Thanks.
jython - open docs in webBrowser?
Submitted by
pixeldroid on
Monday, 26 July, 2010 - 12:58
I'm trying to figure out how to open html docs in a web browser using jython, but I'm not able to get the webbrowser to load.
I've tried the following:
import webbrowser
Error:
File "C:\Documents and Settings\Administrator\.jedit\macros
\MayaHelp.py", line 3, in ?
ImportError: no module named webbrowser
========================================
from org.gjt.sp.jedit import webBrowser
Which is found using autocompletion but nonetheless throws this error:
ImportError: cannot import name webBrowser
========================================
I also tried:
from org.gjt.sp.jedit import browser
which doesn't throw an import error, but it doesn't have 'open',
'openURL', or 'open_new_tab' attributes, so I assume that isn't a web browser.
Anyone know what I'm doing wrong?
Thanks.
Cannot add or edit filter strings in File Browser
Submitted by
tonyrich on
Tuesday, 27 July, 2010 - 06:20
I have just installed jEdit on Mac OS X 10.6.4 (Snow Leopard),
flawlessly.
All the settings I like are now made and saved and restored OK.
A lot of keystrokes have been re-customized, but it all works.
I always filter groups of files to avoid opening the wrong
type of file.
So when I go to enter a new group of filter characters into
the File Browser (using Ctrl+O), I cannot enter any character,
not can I change an existing filter group that I managed to add
before (but don't know how).
A typical group of filters is:
{*.py,*.c,*.h}
...and I like to extend the group now and again.
There is NO problem in entering characters of any kind within
the editor itself - only into the "Filter" edit box in the
File Browser.
I have reset the machine in case this was a serious Java
problem, but no use.
Can anyone help?
Thanks.
Project view
Submitted by
rahul_yanina on
Thursday, 29 July, 2010 - 10:37
Is it possible to have projects (the actual project file could be on the local machine) where the files added to it are on remote files? Right now, with the FTP plugin, it allows me to add files from remote locations to a project, but does not save the information. So when I restart Jedit, the remote files no longer show up against the project. However, the files on the local machine added to the project shows up after the restart.
Ami I doing something wrong, or is this a limitation currently? Are there any plans for having this feature, as I think it is quite a useful one to have.
FTP-Plugin socket error
Submitted by
Maenny on
Friday, 30 July, 2010 - 13:05
Hi there,
I use jEdit for some time now, but since two days I have an annoying problem: When I use the FTP-Plugin and load a page on my Server, I edit it and save it, it works fine. When I edit the file again and save it, I get the following error message:
ftp://web1234@alfa3498.my-server.de:21/html/temp/temp.php:
Cannot save: java.net.SocketException: Connection reset by peer: socket write error
and my InternetConnection closes, that is I get disconnected.
I haven't changed anything, but I cannot say anything about automatic updates of jEdit or its components. Anyone has a solution for this, it is really annoying, since I have to close down and reopen the program everytime I saved once.
Greetz
Maenny
Load File to JEditBuffer
Submitted by
MikeN on
Friday, 30 July, 2010 - 14:51
Hi!
I am using the independent TextArea for a small project and was wondering how to load a file to a JEditBuffer. Currently I am reading the file by myself, and setting the text using "TextArea.setText(String)". Is there any way to load the file directly to the TextAres's JEditBuffer?
Thanks!
Unable to install LaTeX Tools plugin [SOLVED]
Submitted by
runbei on
Saturday, 31 July, 2010 - 16:49
I'm unable to install the LaTeX Tools plugin. I'm using jEdit 4.3.2 with Java 1.6.0_18 with Linux Mint 9 (= Ubuntu 10.04).
I installed the plugin manually - unzipped it an put the LaTeXTools.jar folder in the jar folder of the jEdit installation (home/.jedit/jars.
I also installed the Console and Sidekick plugins.
When I try to use a feature in the Latex Tools plugin menu, I get a dialog with a long list of Beanshell errors. For example, calling Insert Command produces the following. I'd be grateful for any help, or pointers to where I might find a solution. Thanks.
UPDATE: Hm, found the problem. Need to install the GnuRegexp plugin, then the LaTeX Tools plugin works fine. Console and Sidekick plugins are also required.
java.lang.NoClassDefFoundError: gnu/regexp/REException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
at java.lang.Class.privateGetPublicMethods(Class.java:2564)
at java.lang.Class.getMethods(Class.java:1427)
at org.gjt.sp.jedit.bsh.Reflect.gatherMethodsRecursive(Reflect.java:543)
at org.gjt.sp.jedit.bsh.Reflect.getCandidateMethods(Reflect.java:505)
at org.gjt.sp.jedit.bsh.Reflect.findOverloadedMethod(Reflect.java:478)
at org.gjt.sp.jedit.bsh.Reflect.resolveJavaMethod(Reflect.java:439)
at org.gjt.sp.jedit.bsh.Reflect.resolveExpectedJavaMethod(Reflect.java:381)
at org.gjt.sp.jedit.bsh.Reflect.invokeStaticMethod(Reflect.java:96)
at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:871)
at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80)
at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362)
at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258)
at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:186)
at org.gjt.sp.jedit.BeanShellFacade.runCachedBlock(BeanShellFacade.java:225)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:423)
at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:73)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:352)
at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3255)
at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3237)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:221)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:829)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:873)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6108)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5873)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4469)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: java.lang.ClassNotFoundException: gnu.regexp.REException
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at org.gjt.sp.jedit.JARClassLoader.loadFromParent(JARClassLoader.java:539)
at org.gjt.sp.jedit.JARClassLoader.loadClass(JARClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 54 more
seeing deleted text
Submitted by
madmarcos25 on
Monday, 2 August, 2010 - 19:38
Hi all,
I want to analyze the text that is deleted (e.g., pressing the backspace key or selecting a range of characters and pressing a key). Specifically, I want to look for a newline character.
Does jEdit allow this?
If so, can you please provide a link and/or example?
thanks!
Detect Acrobat Reader Install Dir
Submitted by
jrchilds on
Wednesday, 11 August, 2010 - 17:34
I made a macro that opens our programming language reference, which is a PDF, and locates the definition for the selected command.
I also have a batch file that installs jEdit and copies the configuration changes needed for editing in our own language. This install is used by anyone who wants to develop in our language.
Here's the problem... In Beanshell, I am using the exec() command to launch the PDF, which requires the full path to the acrobat reader. This is of course different based on the operating system and installed version of the reader.
Here's my question... Is there a way that I can determine the install directory of the acrobat reader? Or is there a simpler solution I haven't yet considered?
Thanks
James
Hex - Convert to binary
Submitted by
weberjn on
Thursday, 12 August, 2010 - 11:45
Hi,
anybody knows a plugin, that allows to save a hexdump as binary file?
e.g. if you have a hex dump in an editor like
43 4F 52 42 41 2F 55 4E 4B 4E 4F 57 4E 3A 31 2E | CORBA/UNKNOWN:1.
one would select the hex part with a rectangular selection, then
-save hex selection to file. The file would then contain the binary values.
If there is no such plugin, where and how would one start to implement this?
Thanks,
Juergen
Menu Editor for jEdit (MenuEditor.jar v0.1 by Shlomy Reinstein)
Submitted by
shlomy on
Friday, 13 August, 2010 - 10:29
This plugin enables you to customize the jEdit menus (File / Edit / Search ...).
After customizing the menus, the changes are saved as a "diff" and applied on each jEdit startup, so that changes to the menus by future versions of jEdit are not masked out. For this, the plugin depends on JDiffPlugin. As the currently released version of JDiffPlugin contains a few bugs, the zip file attached here contains also a fixed version of JDiffPlugin.
(14 Aug) Added a button for adding separators to the menu. Replaced the plugin's submenu with a single menu item.
Is there a way to close the Incremental Search Bar in a macro ?
Submitted by
Lee Elms on
Monday, 16 August, 2010 - 10:58
I would like to be able to both detect whether the Incremental Search Bar is displayed, and to close it if it is displayed in a macro (Beanshell). I can't find anything in the API ... I hope I'm missing something obvious.
(I know that there is a command to display the Incremental Search Bar ('Incremental Search Bar'). Also that the macro record facility doesn't record the operation of displaying or closing the bar.)
Can anyone help ?
Is JEdit dying?
Submitted by
volnei on
Monday, 23 August, 2010 - 01:15
No updates for a long period
No new plugins
No recent activity
No source repository...
Is JEdit dying?
Undo Close Buffer (UndoCloseBuffer.bsh v1.0 by David Mlejnek)
Submitted by
davo on
Monday, 23 August, 2010 - 08:29
Reopens the recently closed buffer. Similar to the common browsers feature, that re-opens the recently closed tab. Recommended keyboard shortcut: Ctrl+Shift+T