I ran into the issue that AkelPad does not provide a built-in way to pass selected text directly as an argument to external programs.
However, I found the following note in the help file:
That gave me the idea to solve it via the clipboard.Copy current text selection (without deleting it, as with Cut) and place in the Windows® clipboard.
It’s not as elegant as with EmEditor, but in combination with Everything’s clipboard functionality, it works reliably.
I created a toolbar button in AkelPad for this purpose.
- Select a word or path in the text
- Copy it with `Ctrl + C`
- Click the button
Code: Select all
"Everything search with clipboard..." Exec('"C:\Everything\Everything.exe" -s* clipboard:') Icon("C:\Everything\Icons\Magnifier.ico")For my use case, this is a simple and fast way to search content directly from the editor.
Maybe this is useful for others, or someone has a more elegant solution.