◄ www.rosamez.com
-
JavaScriptShell plugin 0.3 menu bug fixed (yes, I gave up waiting;
the bug and the patch have been there for more than 3 months now).
-
my startup.js, required by most macros
-
Glob_Close_2.js -
a clean and simple glob close written in javascript. It's pretty much the same as the
glob close that comes with jEdit: close files that match a given pattern. Sometimes
I have to close files from a specific repository (trunk vs stage) and I don't
want to iterate through them one by one.
It also saves the last active pattern + replaces backslashes in paths with normal slashes.
-
Simple_Inline_Calculator.js -
sometimes I have to add/subtract pixel values in css and I'm just too
lazy to use my head or to launch calc.exe - for those times I wrote this macro:
just write down the expression and as long as it is only numbers and operators
the macro will pick it up before the cursor, eval it and insert the value.
Also works with single range type selections.
#So.for.example.you.can {(465/2+32)*2[place the cursor here and call the macro]px}
-
Html_Zen_Coding_Expand_Abbreviation_ZC0.5.1.zip -
Zen Coding 0.5.1
Expand Abbreviations adapted to jEdit; includes libs
-
Select_Quotes.js -
select text between quotes
-
Toggle_Uppercase_Lowercase.js -
lower/UPPER/Mixed toggle; also works with range type multiselects
-
Search_In_ProjectManager_FlatList.bsh -
a fastopen that works. The FastOpen plugin
periodically broke for me, but since I could not reliably reproduce the bug I did
not bother reporting it. Since this macro is not using listeners,
it will be very slow with 2000+ files and long words, though it will get faster
if it can reuse the search set from the previous "word".
-
PV_Create_File_Here.bsh -
add this macro to the project viewer's context menu (Plugin Options / Project Viewer / Context Menu);
create a file at a given node (you can select a directory or a file node)
and then open it in the editor. I still don't get it why this is not included in Project Viewer,
though probably there's a reason for that or I just overlooked it somehow...
-
format_json.zip -
convert a valid javascript object (in the editor) to a formatted string.
json2.js included.
-
xnc_nodecollector.zip -
selects the inner/outerHTML of an HTML tag; this is a DOM parser written in javascript
(actually ported from as3). It's
a bit slow in Rhino, but unlike the Sidekick XML parser, this one can cope with html
filled with php code.
-
Html_Enclose_Previous_Word.js -
make an html tag out of the previous word. It can create IDs and classes
from the
a#MyId.onClass.anotherClass, a bit like ZenCoding. I left
the old version there (makes a bare tag only) in case someone may need it.
Since I edit many non-html files where html/xml tags are needed,
I use this macro quie often.