Skip to content

jEdit Macro - Hypersearch and return only lines that contains all words entered in the dialog

Notifications You must be signed in to change notification settings

margenn/Find_Lines_Containing_These_Words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Find_Lines_Containing_These_Words

jEdit Macro - Hypersearch and return only lines that contains all words entered in the dialog

Installation:

Just change the extension from .java to .bsh and drop it in the following path:

jedit
│   jedit.jar
│   ...
│
└───macros
    │
    └───text (on any other of your preference)
        │   Find_Lines_Containing_These_Words.bsh
        │   ...

Macros > Rescan Macros

Associate with a keyboard shortcut (Eg: F7):

Utilities > Global Options > Shortcuts > Action Set "Macros" > Filter "Find These" > Choose your primary shortcut (Eg: F7)

Usage:

Press your shortcut "F7" (or any other of your choice)

Write any number of words separated by space and press ENTER

The editor will do a hypersearch and return all lines containg ALL words entered in any order. Case insensitive.

If you type TWO words, the hypersearch will include multiline search. It will search all text where the distance between words is 100 chars regardless how many line breaks are between them.

Example:

Let's suppose you have an text with:

The oranges are ready to be picked.
Oranges, apples and bananas are out of stock.
Strawberries and cherries are red.
The apples and the oranges are ripe.

Type "orang appl" in the macro dialog box and the editor will return these lines:

Oranges, apples and bananas are out of stock.
The apples and the oranges are ripe.

About

jEdit Macro - Hypersearch and return only lines that contains all words entered in the dialog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages