FTP Plugin: usernames containing '@' symbol?
Submitted by
painted on
Thursday, 5 June, 2008 - 18:21
Hello,
I love jEdit and especially the FTP plugin, it makes my work much easier.
My question is, I have several FTP accounts with the username having a format like:
paul@whatever.com
But when I enter it in the Open from FTP Site dialog, it parses it into something like:
paul@whatever.com@webhost.com
and it fails. Can anyone suggest a way to make this work?
Thanks
File manipulation - what's wrong with this macro?
Hi,
I'm trying to collate the names of all the files within a specific directory path with a specific extension.
My bsh macro file contains the following:
---------------------------------------------------------
class OnlyExt implements FilenameFilter
{
String ext;
public OnlyExt(String ext)
{
this.ext = "." + ext;
}
public boolean accept(File dir, String name)
{
return name.endsWith(ext);
}
}
example()
{
file_path = "/example/mydir";
File f1 = new File(sys_file_path);
FilenameFilter only = new OnlyExt("bak");
// This is the OFFENDING LINE!!!
String filtered_files[] = f1.list(only);
for (int i=0; i
Collating file names - basic help.
Hi,
Can anyone demonstrate a macro script that collates an array of filenames that match a certain extension within a specified directory path?
I would need a specific example of how to access each array item, and to know how many array items there are.
This does NOT have to recursive.
Thanks in advance,
Paul
jEdit won't search in files named "_*.*" - need a fix!
Submitted by
tomcloyd on
Friday, 6 June, 2008 - 19:51
I very rarely have problems with jEdit, which I use a lot, even though I'm only an avocational programmer. I'm right now having a problem I've not encountered before, and I'm sure I'm simply running into my own ignorance, but so far haven't found the fix. It's simple:
First, I'm on Kubuntu Linux 7.10, running jEdit 4.3 pre12, with java 1.6.0_03. I'm fairly new to Linux.
I have a fairly large number of text files (*.txt) in which I'm needing to do a search and replace involving a straightforward character string. It seems clear that jEdit simply will NOT open and search any of my files which begin with an underscore, and a lot of them do. This is a disaster, since doing a manual search is out of the question. I've certainly tried unchecking the "skip hidden/backup" option in the search modal window - it has NO effect. What's the problem here and what can I do to fix it, please?
Any help would be much appreciated!
Fedora9 install help
Submitted by
222fbj on
Tuesday, 10 June, 2008 - 22:49
I just switched from XP to a Fedora9 desktop and am not sure how to install Jedit. I got the Java version - but not sure where to go from there. The "open jdk runtime environment" is installed (first file = /usr/lib/jvm-exports/java-1.6.0-openjdk-1.6.0.0.x86_64).
Do I need other packages?
What command starts the installer?
- I did see this page - http://www.jedit.org/index.php?page=compatibility - but wanted to ask here before trying commands I don't understand.
thanks
Koders Search (Koders_Search.bsh v3.1 by Thorsten Willert)
Searches on www.koders.com (a free on-line search engine for open source software and other web-downloadable code) for a term you can type in into the macros-gui or it searches for the word under the cursor and opens the result in a browser window.
On Windows is this the default one, on any others system the InfoViewer.
Railscasts scheme (Railscasts.jedit-scheme v1.0 by Alexandre da Silva)
Submitted by
simpsomboy on
Thursday, 12 June, 2008 - 14:16
Enclose pairs (Encloses.zip v0.1 by Alexandre da Silva)
Submitted by
simpsomboy on
Thursday, 12 June, 2008 - 14:57
Warning! this is a zip file. if you download from Macro Manager Plugin, go to your macro directory, rename the downloaded file (Enclose_pair.bsh) to Enclose_pair.zip and extract it, and delete the Encloe_pair.zip file
Set of simple macros to enclose char pairs such as: [] {} '' "" `` %% <> ()
Features
- Insert the pair when typing
- Enclose the selection with pair just by typing it
Each one need to be configured with a shortcut corresponding with pair
unzip file into your $HOME/.jedit/macros directory
SplashScreen conflict when building jEdit
Submitted by
a992400 on
Sunday, 15 June, 2008 - 19:05
Hello. I'm trying to rebuild jEdit from source, and I'm using the jEdit source code for version 4.2, and Apache Ant version 1.7.0. Ant correctly locates build.xml in the root directory of the jEdit source, and starts the building process. But it fails with two errors, and many warnings. Ignoring the warnings for now, I'm looking at the first error:
[javac] D:\_t\org\gjt\sp\jedit\GUIUtilities.java:1532: reference to SplashScreen is ambiguous, both class org.gjt.sp.jedit.gui.SplashScreen in org.gjt.sp.jedit.gui and class java.awt.SplashScreen in java.awt match
[javac] private static SplashScreen splash;
Apparently Java AWT has a class named SplashScreen (http://java.sun.com/javase/6/docs/api/java/awt/SplashScreen.html), and jEdit is trying to use the same name for its own class. So I'm wondering how jEdit was able to be successfully built for the release? Anyone have any ideas on this?
InfoViewer encoding
Submitted by
takeshin on
Wednesday, 18 June, 2008 - 09:30
Hello,
I use InfoViewer plugin to preview HTML during coding.
When I declare UTF-8 in meta tag, and UTF-8 in buffer encoding,
Unicode characters (ą, ę, ś, ć, ż, ż…) are rendered incorrect.
When I change meta declaration to iso-8859-2 and buffer encoding to UTF-8,
characters are ok.
Anybody can help me with this issue?
--
takeshin
GlobalPlugin gtags integration
Submitted by
kalabp on
Wednesday, 18 June, 2008 - 14:48
I have started using the GlobalPlugin to integrate jEdit with GNU Global and am very impressed with its capabilities. What I would like to see in GlobalPlugin would be integration with gtags, so that the cross-reference database could be generated and updated from jEdit, and integration with the ProjectViewer plugin so that the list of files to be cross-referenced could be obtained from the project:
- Provide a way to run gtags on the entire project from jEdit. gtags should use the GTAGSDBPATH environment variable (if set) as the location of the cross-reference files.
- Update the cross-reference database when a buffer is saved (use incremental the update feature of gtags and global).
jEdit Launcher bug on administrative privilages
Submitted by
takeshin on
Thursday, 19 June, 2008 - 09:01
Problem exists on Windows XP/Vista and other NT based.
When I try to open a new file (form system context menu Open with jEdit)
and server instance of jEdit is running, i get following error:
java.lang.NullPointerException: Null Pointer in Method Invocation
at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:841)
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.BSHVariableDeclarator.eval(BSHVariableDeclarator.java:86)
at org.gjt.sp.jedit.bsh.BSHTypedVariableDeclaration.eval(BSHTypedVariableDeclaration.java:84)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:738)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:727)
at org.gjt.sp.jedit.BeanShellFacade._eval(BeanShellFacade.java:149)
at org.gjt.sp.jedit.BeanShellFacade.eval(BeanShellFacade.java:114)
at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:389)
at org.gjt.sp.jedit.EditServer$1.run(EditServer.java:343)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
What’s the trouble?
--
takesgin
Plugin compilation
Hi
I have the source to the ProjectViewer plugin within which I have made a trivial modification.
Could someone advice me on the tools and command directives I need to use to create a new version of the plugin .jar file?
If the existing jar file is over-written with a the newly build version, is it just a case of restarting jEdit to utilize the modified plugin?
many thanks,
Paul
How to parse HTML/DOM to set ID attributes
Submitted by
takeshin on
Thursday, 19 June, 2008 - 09:23
I want to write a macro to automatically add id attribute for all specified tags (h2, h3, h4…),
when it is not set yet. (for example #h2-1, #h2-2, #h2-3…).
I wrote a simple javascript bookmarklet to do it,
but I dont’t know how to do it in beanshell macro.
Set IDs bookmarklet
How to write getElementsByTagName(tag) function?
Maybe just regular expression with returning beanshell replacement will work?
Then how to increment those IDs in regexp?
TIA,
takeshin
Import/Export keyboard shortcuts
Submitted by
takeshin on
Thursday, 19 June, 2008 - 11:23
jEdit is great, but configuration/customization takes a lot of time…
It would be great feature to Import/Export keyboard shortcut list to file.
If a macro is attached to shortcut, macro file should be also exported/imported.
How to write a macro to do that?
--
takeshin
Macro 'on event' caller - a simple plugin that culd prove very handy!
I think it could prove very useful to have a plugin that facilitated the configuration of (in each case) a marco to be automatically executed on (for example) the following state-transitions within a jEdit session.
Buffer focus changing, File opening, File saved, File closed (last associated buffer closing), directory in FileBrowser changing
The plugin's option panel would permit the selection of an installed macro (using a dropdown) for each event type supported.
I'm sure there are many more such events for which a macro invocation would prove useful.
Another enhancement for the plugin would be a public API which permitted other plugins to register their own events (by passing a descriptor string, and then invoking another function when the event is to be actioned).
Fuzzy looking fonts and graphics
Submitted by
gatorbrit on
Monday, 23 June, 2008 - 19:18
Hi I am running jEdit in Ubuntu linux 8.04. The fonts etc are really fuzzy and blurry. Not at all crisp. Everything else (outside of jEdit) is very clear.
Any ideas where the problem might be.
Thanks