Console plugin: can't see the output of command execution?
Submitted by
baseliner on
Wednesday, 19 October, 2011 - 00:26
I'm using jEdit 4.4.2 and the latest version 4.4.3 of Console plugin. Once I open Console and type ls, I'd expect to see the directory listing but it shows me a blank line. I suspect the output is being redirected to a background shell? How do I get the output to show? One of the consequences of this is that when I fire up a Ruby shell or a Rails console, I don't see the prompts at the beginning of the line, which makes the output a bit hard to read.
how to stop jEdit from requesting network access
Every time I start jEdit, I get a pop up from the Mac asking
Do you want the application "jEdit.app" to accept incoming network connections?
Every time I click Allow. Why does it keep asking?
Is there a way to make the Allow permanent or where can I configure jEdit to not request network access?
This is not just a Mac issue since I don't get that popup for Firefox or other network applications I use.
how do I get notified when commets/replies are added to a topic I started or commented in?
I've looked at the notify settings for my account but the description there sounds like I'll be notified of all new posts. I only want to be notified about posts in topics I have posted to. Is that possible?
Thanks.
How can I run a macro over all files in a specific directory ?
Submitted by
xcablex on
Tuesday, 25 October, 2011 - 10:04
Hi,
I am totaly new in the usage of jEdit. I just finished a small macro for a "find&replace" purpose in about a hundred txt files.
Is there a way to tell jEdit to run the macro on all files in a specific directory ?
-- Peter
how to access the text?
Submitted by
phoe on
Wednesday, 26 October, 2011 - 11:58
Hey,
I'm currently writing a plugin and need a little help. I already found out how to make code and make it execute every X seconds..
Now there is only one thing to do: How do I access the text in the editor? In some cases I want my code to replace "apple" by "banana" every X seconds.
Any special class/method I need to access the text?
Hope you can help me out
jEdit won't start after switching from openjdk to sun java
Submitted by
sikkiiac on
Wednesday, 26 October, 2011 - 18:28
I've switched from openjdk 6 to sun java 6 and now my jEdit won't start.
I'm running Ubuntu 11.10. I reset my JAVA_HOME variable in my .profile file.
I get the same error message when trying to launch jEdit from the terminal by either typing "jedit" or "java -jar jedit.jar" from the installation directory. It says
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/jdk1.6.0_29/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: wrong ELF class: ELFCLASS64
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
...
Reinstalling jEdit didn't work. Any ideas?
Code folding - indent does too much
Submitted by
masher on
Wednesday, 26 October, 2011 - 23:59
I've discovered that if I use "indent" as my code folding setting, if I fold a section of code (parent) that itself has indents (children), when I expand the parent, the children have been folded, even though they weren't initially.
I would have expected that any code should reappear as it was before; ie any folded code should stay folded, whilst unfolded should remain visible.
Is there any way to change this behaviour?
hypertext search for all lines NOT containing the text xyz
Submitted by
garyn_87048 on
Friday, 28 October, 2011 - 23:08
I'm auditing a large group of text files and I need to identify lines that do NOT contain a particular text string (for example, find all rows not containing the text "xyz"). XYZ may or may not occur on a word boundary. I have not been able to figure out the regexp to accomplish this.
Alternatively, if the hyper-search returned every line with a count of the number of occurences per-line prepended to each row, that would solve it too.
Thanks!
how to get a menupoint
Submitted by
BennX on
Saturday, 29 October, 2011 - 17:45
good evening community,
I am not sure if i am right in Plugin Development because i didnt write it as plugin!
i am acutally writing a small improvement for our University.(It already works but i want to make it better)
I just got a problem to get a menu entry.
okay here how it works.
I wrote a thread thats simply started in the mainmethod like every other thing.
At the momment it starts a JOptionPane where you need to put a int in to use the feature i wrote.
Now i just want a menu entry where i can klick to open my JOptionPane to use(to start the thread) the feature if i need it. It just dont look nice if it always pop up at the beginning. Maybe under Help or such.
I didnt find how to do it otherwise i wouldnt ask here in Forum.
Thanks alot for your help!
Best Regards
BennX
Regex-Beginning/End of File
Submitted by
farphin on
Tuesday, 1 November, 2011 - 14:49
I just started using jEdit, and I'm trying to use regex's to find the beginning of the file. I've tried \A and ^^, but neither seem to work.
So, how do I find the beginning of a file (actually, multiple files, to add "stuff" to the beginning of each.)
Thanks.
coffeescript commando file (coffee.xml v0.1 by monkstone)
Submitted by
monkstone on
Friday, 4 November, 2011 - 16:08
A commando file to make it easy to compile/run coffeescript from jEdit, unless you are using linux, you will need to edit your path to coffee.
Text area colour based on file type
Submitted by
masher on
Tuesday, 8 November, 2011 - 12:06
Is there any way to set the background of the text area based on the type of file that is open?
SQL-Plugin - Server setup - need help
Submitted by
lars on
Thursday, 17 November, 2011 - 09:36
Hi,
I try to use the SQL-Plugin, until now with out success, since google could not help me, I decided to write this post. As described in the plugin doc, I do the following to use the plugin:
1. installed the required plugins
2. donwload the jdbc-driver and add them to the classpath
3. add a db-server within the project viewer plugin
All this steps seems to work. My problem is, that no db-server is listed in the sql plugin. I take a look at the activty log, but there no error warning messages about the sql plugin (I found just some infos about loading the jdbc drivers). Is there a better or more specific log?
I need to use the following server types:
1. Postgres
2. MySQL
3. MSSQL
4. MSSQL-Express
Unfortunately, none of them work with the plugin, although I can setup them in pv plugin. Is there a way to test db connectivty?
Save current buffer and run it according to associations (Windows) (Run_Buffer.bsh v1.0 by Drekin)
Submitted by
Drekin on
Friday, 18 November, 2011 - 18:59
The macro saves current buffer and runs it according to file associations (like if you double-click on the file icon). Works on Windows only.
Current version uses Java ProcessBuilder. An older version used Runtime.exec but there's a bug that some paths containing Unicode characters are not executed. (See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4947220)
jEdit 4.5pre1 is out!
Submitted by
Vampire on
Sunday, 20 November, 2011 - 01:16
Hi all,
I proudly present jEdit 4.5pre1, the first preview development release of the
4.5 series of jEdit.
Here are some convenient links to see the live state of major problems:
- Bugs which are marked as "severe":
http://sourceforge.net/tracker/?group_id=588&atid=100588&status=1&artgroup=101607
- Bugs which are marked as "regressive":
http://sourceforge.net/tracker/?group_id=588&atid=100588&status=1&artgroup=619797
Volunteers are always welcome to fix these bugs:
http://www.jedit.org/index.php?page=devel
That being said, here is the download link:
http://www.jedit.org/index.php?page=download
FYI, merge requests for the 4.5 series (fix done, but waiting for a review):
http://sourceforge.net/tracker/?group_id=588&atid=1235750&status=1&artgroup=2274635
Have fun with the new release.
Regular Expression
Submitted by
sydbeat on
Thursday, 24 November, 2011 - 10:19
When I use this regular expression:
"^ | $"
jEdit finds only "^ ". But when i type:
" $|^ "
jEdit finds both.
Bug?
Search Dialog remains in the background - OS X
Submitted by
UnConundrum on
Thursday, 24 November, 2011 - 18:59
I lost my search dialog in the last few days. If I reveal all running apps using expose, I see it alongside jEdit, in a blue window, but there's no way to access it. Apple did update java within the last two weeks and I'm wondering if that's the problem. From my research, there is no way to downgrade java on an OS X box, so I can't test my theory.
I tried the idea from several years ago about
F to select the search window, followed by a spacebar to tell the window to move and a down enter.... didn't help
Any ideas?
Custom IDE use of JEdit
Submitted by
dougbhoffman on
Friday, 25 November, 2011 - 11:22
Would it be possible to send and receive custom AppleEvents using JEdit?
For example, I would like to highlight some text in a JEdit window and then press either the key or the keys and have that chunk of text sent to my programming environment. My programming environment would take that text and execute it as if it were copy/pasted into its console window.
There are other custom behaviors I would like, such as sending an AppleEvent to JEdit to open a specified file and scroll to a specific line number or character number. Also, I would like to have JEdit be able to do a "Save and Include" operation from a JEdit window: so I could edit a specific file and then press -K and the file would be saved and then compiled by my programming environment. I would also want the ability to send chunks of text (of any size) to be displayed in the currently open JEdit file/window at the current cursor location.
I realize this may be asking a lot. For a demo of exactly what I am talking about you could download the PowerMops IDE and see how its QuickEdit integrated editor (but it is a separate application) does all of the above and more.
http://sourceforge.net/projects/powermops/files/PowerMops/
(download PowerMops v6.2 , it includes QuickEdit
double-click the "Open Me First" file in the PowerMops folder and everything will be launched and you can immediately see how what I describe above works )
The reason I ask these questions is QuickEdit does not work in Intel native mode.
Regards,
Douglas B. Hoffman
Reading and writing settings in ini-files
Submitted by
tvojeho on
Saturday, 26 November, 2011 - 13:05
Hi, I wanted to ask if anybody might have written a beanshell macro or function to be able to read and write settings in inifiles. The jedit properties do not handle the [Section] parts of the inifiles.
I have been trying to rewrite some functions written for the autohotkey language but the regexes seem to go over my head. I managed to scramble together one function (ini_get, see below), but it was more trial and error than knowing what I was doing, and I was wondering if someone already has written something similar.
Code:
ini_get(_Content, _Section, _Key, Flags, Default)
{
_Section = "\\[\\s*?\\Q"+_Section+"\\E\\s*?]";
//-- Note: The regex of this function was rewritten by Mystiq.
RegEx = "(?im)(?:\\n|^)\\s*"+_Section+"\\s*(?:\\n\\s*|\\n\\s*.+\\s*=\\s*.*?\\s*(?=\\n)|\\n\\s*[;#].*?(?=\\n))*\\n(\\s*\\Q"+_Key+"\\E\\s*=(.*))(?=\\n|$)";
//-- Kompilovat regex expression
Pattern p = Pattern.compile(RegEx);
//-- Vytvořit matcher (boolean)
Matcher m = p.matcher(_Content);
if(m.find())
{
Section = m.group(0);
Key = m.group(1);
Value = m.group(2);
}
if(Flags.indexOf('s') != -1)
return Section;
else if(Flags.indexOf('v') != -1)
return Value;
else if(Flags == null || Flags == "" || Flags.indexOf('k') != -1)
return Key;
}
Regards, tvojeho
IDE using jEdit
Submitted by
Paula17 on
Tuesday, 29 November, 2011 - 16:18
I'm programming an IDE using Java language. This IDE needs a text Editor, in this case, jEdit. I would like to know how I could do this...How can I put jEdit into my IDE?
Thanks!!