AutoHotkey Community

It is currently May 27th, 2012, 4:50 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: jEdit - AHK Ready
PostPosted: October 3rd, 2005, 10:07 pm 
We proudly present an amazing piece of work kindly provided by Boskopp at the German AutoHotkey Forum.
jEdit, an editor written with JAVA (I guess you would be able to write AHK scripts while on Linux :wink:), ready to deal with AHK !

Maybe Lazlo (or another bi lingual expert is able to adopt this for the english speaking comunity, as the [HowTo configure jEdit for AutoHotkey] is written in German.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2005, 1:25 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
There is a jEdit configuration distributed with AutoHotkey (in the extras folder). Assuming this is the same "jEdit" referred to above, Boskopp or anyone else is welcome to submit improvements for distribution.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2005, 1:40 am 
Offline

Joined: August 15th, 2005, 2:57 pm
Posts: 57
Not bad! I don't see it replacing my PSPad however. Maybe because I am just used to it but PSPad seems to be more solid (for lack of a better word).

Just my opinion!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 5th, 2005, 5:05 am 
aarondellis wrote:
Maybe because I am just used to it

That is correct.

Jedit can do lots of things that pspad can't do. Check out the plugins. PSPad is good, but it's not perfect. I like Jedit and pspad, but still vim is first choice.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 5th, 2005, 5:22 am 
Offline

Joined: August 15th, 2005, 2:57 pm
Posts: 57
Quote:
Jedit can do lots of things that pspad can't do. Check out the plugins.


WOW! A lot of things that I don't/won't (pick one) need to write AHK scripts. I looked through the plugins and can't see why I would need them to write AHK scripts. If there are any huge short comings with PSPad I have not found them (not yet anyway). Don't get me wrong! It looks like there are many options with JEdit but again most all of them appear to be for something other than writing AHK scripts.

Just my opinion!

VIM!!!!!! :shock: No wonder you logged a message as Guest!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 6th, 2005, 1:39 am 
Pspad has a problem with wrapping and searching. Load a file that has long lines in it. A log file for example. Then turn on line numbering and wrapping in pspad.

Here are the instructs for turning on pspad wrapping (from the PSPad author himself)...

PSPad v4.3.3 (2092)

1) From the menu bar: "Settings" » "Program Settings..." » click [Direct Edit] button » change "WordWrapEnabled=0" to "WordWrapEnabled=1".

2) A new 'lines wrapping' button will appear in the middle of toolbar, to the right of the "Delete Selected Text" button, [X].

3) Close and re-open PSPad to enable word wrap.

If you can see that the lines are wrapped, search for a word that appears several times throughout the file. When searching select the List option. In the search results window, note how the line numbers do not match where the searched for string is. Also, dbl-click on some of the lines in the results window. Note how the highlighted line does NOT have the searched for string in it.

This bug has been in pspad for just about forever. I do not expect to see it fixed soon.

Jedit has an advanced search plugin which is just one example of a plugin that I would use with writing AHK scripts.

I guess that you are also clueless about Vim as well.


Report this post
Top
  
Reply with quote  
PostPosted: October 6th, 2005, 9:06 pm 
Offline

Joined: January 1st, 2005, 11:54 am
Posts: 75
This is the short version of my HowTo configure jEdit for AutoHotkey (in German). You can find the scripts and the more detailed Howto in German here for download . It might be necessary to change some paths in the scripts.
Maybe someone feels like adapting the install-script that comes with AHK?

Download jEdit
http://prdownloads.sourceforge.net/jedi ... nstall.exe

Starting jEdit from USB
jEdit store configuration data by default in the directory "Documents and Settings". If you want to store config files somewhere else (on a USB-stick), you can start jEdit using the following AHK-skript.

Code:
run, cmd /c javaw.exe -jar .\jEdit\jedit.jar -reuseview -settings=%A_ScriptDir%\jEdit_Settings\, ,hide



Installing AHK-Syntax-highlighting
The AHK-syntax file ahk.xml that came with the distribution had a few bugs. I tried to repair them, hopefully without adding new ones. You can download it here:

To install it, copy the file in the "Modes" directory. Then add the following line to the file "catalog" in the same dir:
Code:
<MODE NAME="ahk" FILE="ahk.xml" FILE_NAME_GLOB="*.{ahk}"/>


Installing AHK context sensitive help
The AHK-script SearchAHKHelp.ahk (adapted from Rajats Intellisense) searchs the AHK help for the clipboard content. To call this script from jEdit, copy the file RunAHKHelp.bsh to the directory \macros\Misc\ Then you will find the command RunAHKHelp in the Macros-Menu (Macros-Misc-RunAHKHelp)

Running AHK-Scripts from jEdit
Copy the script AHK_run.bsh into the directory \macros\Misc\ Then you will find the command Run AHK in the Macros-Menu (Macros-Misc-RunAHKHelp).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 7th, 2005, 12:31 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Thanks for the English translation. I'll try to apply your improvements to the version distributed with AutoHotkey. Since it might be a while, anyone is welcome to do it beforehand. Though probably too much to expect, it would be ideal to have a simple GUI for J-edit configuration like the one for TextPad (which is at Extras\Editors\TextPad\Run this to install syntax and clip library files for TextPad.ahk).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2009, 8:18 pm 
Offline

Joined: January 14th, 2005, 5:30 pm
Posts: 17
Are these macro files still available somewhere? The link above is dead.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 28th, 2009, 5:11 pm 
The above link points to the predecessor of the German branch of AutoHotkey. So the following page is in German (which might not be a problem if you're only interested in the code). Good luck. 8)
http://de.autohotkey.com/wiki/index.php?title=JEdit


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 28th, 2009, 5:25 pm 
Might be of help too:
http://code.google.com/p/dropkick/sourc ... c=svn5&r=5


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 29th, 2009, 4:03 pm 
Offline

Joined: January 14th, 2005, 5:30 pm
Posts: 17
Great - thanks, BoBo.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group