How can I pass a search term to AkelPad?

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 3
Joined: Sat Mar 21, 2026 9:09 am

How can I pass a search term to AkelPad?

Post by Native2904 »

Hello,

I’m a new AkelPad user (I discovered it via the Total Commander forum) and I’d like to ask if it’s possible to pass a search term to AkelPad when opening a file.
For example, I want AkelPad to open a file and automatically highlight the searched word.
I’m using Everything to find files containing specific content, and I want to open them directly in AkelPad.

https://imgur.com/5o16q4V

I'm trying something like this..

Code: Select all

C:\tcmd\plugins\wlx\TCAkelPad\AkelPad64\AkelPad.exe "%1" "<REGEXREPLACE:<REGEXEXTRACT:$search:,"content:(\x22([^\x22]*)\x22|\S+)">,"\x22","">"
But AkelPad asks me if I want to create the file instead.
Soll die neue Datei C:\tcmd\plugins\wlx\TCAkelPad\AkelPad64\,search:) erstellt werden?

Thank you in advance!

DV
Offline
Posts: 1297
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Re: How can I pass a search term to AkelPad?

Post by DV »

For example:

Code: Select all

AkelPad.exe /x "AkelFiles\Docs\AkelHelp-Eng.htm" "/Call('Scripts::Main', 7, `AkelPad.TextFind(0, '<h3>Command line parameters</h3>', 0x00200001)`)"

Offline
Posts: 3
Joined: Sat Mar 21, 2026 9:09 am

Re: How can I pass a search term to AkelPad?

Post by Native2904 »

2DV
Thank you for your response

I have read the AkelPad4 - Help ..
But I can not to figure out how i can pass a Term to them.
I'm not a programmer.
The nearest solution i became is something like this:

C:\tcmd\plugins\wlx\TCAkelPad\AkelPad64\AkelPad.exe /Command(4158)
:?

DV
Offline
Posts: 1297
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Re: How can I pass a search term to AkelPad?

Post by DV »

Did you try to run my example?
The part '<h3>Command line parameters</h3>' is the "find what" term. You can replace it with any string you want.

Offline
Posts: 3
Joined: Sat Mar 21, 2026 9:09 am

Re: How can I pass a search term to AkelPad?

Post by Native2904 »

DV wrote: Sat Mar 21, 2026 9:26 pm Did you try to run my example?
The part '<h3>Command line parameters</h3>' is the "find what" term. You can replace it with any string you want.
Okay, now I understand, and I managed to get it working — thank you very much for the tip.
Post Reply