Caret
Macros that move the caret or change the selection
Find First Unmatched Brace (Find_First_Unmatched_Brace.bsh v0.1 by Sune Simonsen)
Submitted by Sunday, 14 January, 2007 - 20:02
on
This macro places the caret before the first brace that does not have a matching brace.
Updated on 01/14/2007 - 20:02
Downloads: 1239
Select_Word_or_Enclosed.bsh v1.0 by Tomek Peszor
Submitted by Wednesday, 2 July, 2008 - 12:16
on
This macro is ment for fast selecting text with one keyboard shortcut.
It selects word when no selection is set.
When selection is set (second run), it looks outside selection for pairs of characters like parenthesis ()[]{}<> or quotations "" '' or line separator and selects text beetween.
Just assign shortcut to this macro (I use CTRL+ALT+UP ARROW) and you are able to select word no matter if caret is on the begginig, inside or at the end of word.
Then hit this keyboard shortcut again to select text between characters described above.
Hit once more to extend selection to select enclosing characters too, and once more to expand selection to next pairs.
This macro is useful for selecting words, syntax keywords, strings, function values, HTML attribute values and many more.
See it in action on the screencast.
Updated on 07/02/2008 - 12:22
Downloads: 1241
WikiWord (WikiWord.bsh v1.7 by Peter Theobald)
Submitted by Friday, 17 March, 2006 - 18:52
on
Find the word the cursor is on and open a file by that name.
Can find [Filename in brackets] or wordsSeparatedBySpaces or words-separated-by-tabs.
Can also jump to specific locations within the current file or other files by using text anchors like this: [myfile#this-anchor] or [myfile:this-anchor] or MyFile:This-anchor or MyFile#this-anchor . Anchors are searched for as [this-anchor] or if that isn't found just the anchor text anywhere in the file.
Configuration options can be specified in the text file to use filename patterns and search paths.
I use this to set up a directory full of hyperlinked text. Attach a keyboard shortcut to the macro for quick jumping. I use control-TAB because it's next to control-` (previous file). So I can put the cursor inside a [WikiWord] and bounce back and forth to the file with control-TAB and control-`
New features added in V1.7, 2009-10-19
You can add the directives [path:xyz] or [rpath:xyz] anywhere in the document to set up search paths for documents. For example, the WikiLink [books-wanted.txt] will look in the current directory first, then in each directory in the path. rpath means 'recursive', which will search in that directory and all sub-directories under it.
You can also add the directives [filepattern:xyz] anywhere in the document to set up file name patterns, for example: [books-wanted] with [filepattern:$-notes.txt] will try to open 'books-wanted' and 'books-wanted-notes.txt' in the current directory and any directories in the path set up by [path:] and [rpath:]s. By default the given [WikiWord] itself ($) and WikiWord.txt ($.txt) are found first.
Note: I usually put all of my [path:][rpath:][filepattern:] directives at the end of my file.
Personally, I keep all of my life's information in text files, and I use this to set up indexes, tables of contents, cross-references, etc. between my documents.
I use this as follows: I have a main-index.txt file I always keep open. It has a line for each project I am working on with a WikiLink like this: Human Genome Project: decoding human genome [genome] due 1/15/2008 -and at the bottom of the main-index.txt file I have: [rpath:D:\Docs\Projects][filepattern:project notes $.txt] so it will look in my entire projects tree and find 'project notes genome.txt' when I click on [genome] and hit ctrl-TAB.
(This is my first jEdit macro. Enjoy.)
Can find [Filename in brackets] or wordsSeparatedBySpaces or words-separated-by-tabs.
Can also jump to specific locations within the current file or other files by using text anchors like this: [myfile#this-anchor] or [myfile:this-anchor] or MyFile:This-anchor or MyFile#this-anchor . Anchors are searched for as [this-anchor] or if that isn't found just the anchor text anywhere in the file.
Configuration options can be specified in the text file to use filename patterns and search paths.
I use this to set up a directory full of hyperlinked text. Attach a keyboard shortcut to the macro for quick jumping. I use control-TAB because it's next to control-` (previous file). So I can put the cursor inside a [WikiWord] and bounce back and forth to the file with control-TAB and control-`
New features added in V1.7, 2009-10-19
You can add the directives [path:xyz] or [rpath:xyz] anywhere in the document to set up search paths for documents. For example, the WikiLink [books-wanted.txt] will look in the current directory first, then in each directory in the path. rpath means 'recursive', which will search in that directory and all sub-directories under it.
You can also add the directives [filepattern:xyz] anywhere in the document to set up file name patterns, for example: [books-wanted] with [filepattern:$-notes.txt] will try to open 'books-wanted' and 'books-wanted-notes.txt' in the current directory and any directories in the path set up by [path:] and [rpath:]s. By default the given [WikiWord] itself ($) and WikiWord.txt ($.txt) are found first.
Note: I usually put all of my [path:][rpath:][filepattern:] directives at the end of my file.
Personally, I keep all of my life's information in text files, and I use this to set up indexes, tables of contents, cross-references, etc. between my documents.
I use this as follows: I have a main-index.txt file I always keep open. It has a line for each project I am working on with a WikiLink like this: Human Genome Project: decoding human genome [genome] due 1/15/2008 -and at the bottom of the main-index.txt file I have: [rpath:D:\Docs\Projects][filepattern:project notes $.txt] so it will look in my entire projects tree and find 'project notes genome.txt' when I click on [genome] and hit ctrl-TAB.
(This is my first jEdit macro. Enjoy.)
Updated on 03/22/2011 - 19:35
Downloads: 2146
There are 480 downloads in our database