can anyone write a simple plugin that does the following:
Start an external application with two parameters depending on the current file type?
I've written a small .au3 (AutoIt) script, that uses an .ini file which contains different sections for each known help file entries for the resolution to what the .chm file will be resized, position, the general path for a topic inside the file (like: /idh_scripting_comref.htm#idh_sc_), etc.
It takes (currently) 2 parameters:
1.) Topic that should be displayed
2.) File extension
The rest is already inside the .ini file
So the plugin should execute a line like this:
"" "" ""
Everything else is handled inside the wrapper.
It should take the word that is currently under the cursor or if no [a-zA-Z] is found at the current position it should find & take the first letter left from it and use that word instead.
An example ("|" = current cursor position):
$file = getpathcomponent|
The cursor is not on a keyword (getpathcomponent) so search for the first letter on the left side of the cursor position ("t") and get the word under it (getpathcomponent again). Why this? I normally type the command and want to see the help file right after typing it.
Just use the extension of the current document without the leading dot.
It would be nice if I can define the keyboard shortcut for the plugin (to execute it) afterwards.
This would allow me / us to hit the same key for displaying a .chm help file with the correct topic, regardless if I'm currently working on a .au3, .ps1, .xys, etc. file.
If anyone is interested, I would post the .au3 file for the wrapper afterwards. If anybody else could make use of such a plugin.