Search files from Akelpad toolbar

Plug-in and third party software discussion.
Post Reply
Native2904
Posts: 111
Joined: Mon Nov 22, 2021 8:36 pm

Search files from Akelpad toolbar

Post by Native2904 »

Based on an existing idea, I tried to find a way to implement this for me in AkelPad.

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:
Copy current text selection (without deleting it, as with Cut) and place in the Windows® clipboard.
That gave me the idea to solve it via the 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.
  1. Select a word or path in the text
  2. Copy it with `Ctrl + C`
  3. Click the button

Code: Select all

"Everything search with clipboard..." Exec('"C:\Everything\Everything.exe" -s* clipboard:') Icon("C:\Everything\Icons\Magnifier.ico")
Everything immediately shows the results in the list.
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.
Native2904
Posts: 111
Joined: Mon Nov 22, 2021 8:36 pm

Re: Search files from Akelpad toolbar

Post by Native2904 »

**little improvement**

To mark text and then copy and search it in one go, use this command for the Button:

Code: Select all

"Everything search with clipboard..." Call("Scripts::Main", 1, "EvalCmd.js", `AkelPad.Command(4154); WScript.Sleep(450); AkelPad.Exec('"C:\\Everything\\Everything.exe" -s* clipboard:');`) Icon("C:\\Everything\\Icons\\Magnifier.ico")
BKPB
Posts: 27
Joined: Fri Aug 19, 2011 9:13 pm

Re: Search files from Akelpad toolbar

Post by BKPB »

When you click on the button, opens instead of searching. Command line options in Everything.
Where is the error ?

Code: Select all

"Clipboard search" Call("Scripts::Main", 1, "EvalCmd.js", `AkelPad.Command(4154); WScript.Sleep(450); AkelPad.Exec('"C:\\Program Files\\Everything\\Everything.exe" -s* clipboard:');`) Icon("C:\\Program Files\\Everything\\Icons\\0.ico")
Native2904
Posts: 111
Joined: Mon Nov 22, 2021 8:36 pm

Re: Search files from Akelpad toolbar

Post by Native2904 »

Hi, try doubled quotes please.

'""C:\\Program*Files\\Everything\\Everything.exe"" -s clipboard:'
BKPB
Posts: 27
Joined: Fri Aug 19, 2011 9:13 pm

Re: Search files from Akelpad toolbar

Post by BKPB »

The help window stopped opening, but the search does not work, nothing happens.

1. I tried it like this:

Code: Select all

"Поиск из буфера обмена" Call("Scripts::Main", 1, "EvalCmd.js", `AkelPad.Command(4154); WScript.Sleep(450); AkelPad.Exec('""C:\\Program*Files\\Everything\\Everything.exe"" -s* clipboard:');`) Icon("C:\\Program Files\\Everything\\Icons\\0.ico")
2. I tried it like this:

Code: Select all

"Поиск из буфера обмена" Call("Scripts::Main", 1, "EvalCmd.js", `AkelPad.Command(4154); WScript.Sleep(450); AkelPad.Exec('""C:\\Program Files\\Everything\\Everything.exe"" -s* clipboard:');`) Icon("C:\\Program Files\\Everything\\Icons\\0.ico")
Image
therube
Posts: 5696
Joined: Thu Sep 03, 2009 6:48 pm

Re: Search files from Akelpad toolbar

Post by therube »

Are the "single quotes" correct?
Maybe they are, but there are both ' & ` being used.
BKPB
Posts: 27
Joined: Fri Aug 19, 2011 9:13 pm

Re: Search files from Akelpad toolbar

Post by BKPB »

If I use a command like this:

Code: Select all

"Clipboard search" Call("Scripts::Main", 1, "EvalCmd.js", `AkelPad.Command(4154); WScript.Sleep(450); AkelPad.Exec('"C:\\Program Files\\Everything\\Поиск.exe" -s clipboard:');`) Icon("C:\\Program Files\\Everything\\Icons\\0.ico")
then, after clicking on the icon in the toolbar, the Everything program simply starts and the index clipboard: is displayed in the search bar without a word from the clipboard.
I still don't understand how clipboard search should work.
Native2904
Posts: 111
Joined: Mon Nov 22, 2021 8:36 pm

Re: Search files from Akelpad toolbar

Post by Native2904 »

BKPB wrote: Mon May 25, 2026 5:27 pm If I use a command like this:

Code: Select all

"Clipboard search" Call("Scripts::Main", 1, "EvalCmd.js", `AkelPad.Command(4154); WScript.Sleep(450); AkelPad.Exec('"C:\\Program Files\\Everything\\Поиск.exe" -s clipboard:');`) Icon("C:\\Program Files\\Everything\\Icons\\0.ico")
then, after clicking on the icon in the toolbar, the Everything program simply starts and the index clipboard: is displayed in the search bar without a word from the clipboard.
I still don't understand how clipboard search should work.
This is normal - when i use the button then the Searchfield in Everything they don't show the content of the clipboard.
Post Reply