QSearch plugin
- Author
- Message
-
Offline
- Posts: 1291
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
Как-то затянул я с "Найти все во Всех файлах", и в этом году уже не успею выпустить новую версию.
Однако из исходников можно собрать вполне работоспособную версию. Также обновил документацию:
https://github.com/d0vgan/AkelPad-Plugs ... ee/develop
Однако из исходников можно собрать вполне работоспособную версию. Также обновил документацию:
https://github.com/d0vgan/AkelPad-Plugs ... ee/develop
-
Offline
- Posts: 165
- Joined: Fri Aug 15, 2008 8:58 am
-
Offline
- Posts: 1291
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
It works. As "QSearch-Eng.txt" says:Diamen wrote:history_save = 4
It does not seem to work.
I.e. if you specified just 4, there's nothing to save. If you specified e.g. 7 = 1 + 2 + 4, then everything will be saved to .ini file or Registry.history_save = 3
Can be set to 0 or be a sum of the following values:
...
As "QSearch-Eng.txt" says:Diamen wrote:Do it is possibile to toggle hide with ctrl-f instead to use esc?
"Window: Hotkey hides the panel"
hotkey_hides_panel = 1
When you press the plugin hot-key in QSearch'es panel, the panel
is closed (becomes hidden - the same as when Esc is pressed).
Repeated call of QSearch::QSearch also closes the panel.
Are you talking about the DialogSwitcher?Diamen wrote:When i use ctrl-h switch to Akelpad standard search and replace. Do it is normal?
To get go on line i have to press ctrl-g, ctrl-h not do.
As "QSearch-Eng.txt" says:
The DialogSwitcher function allows to switch between the "Find", "Replace",
"Go to line" dialogs and the QSearch panel using corresponding hotkeys.
For example, Ctrl+H in the "Find" dialog changes this dialog to the
"Replace" dialog.
-
Offline
- Posts: 165
- Joined: Fri Aug 15, 2008 8:58 am
Thanks for the answers that solve my problem I had not properly understood the manual.
As "QSearch-Eng.txt" says:
Are you talking about the DialogSwitcher?Diamen wrote:When i use ctrl-h switch to Akelpad standard search and replace. Do it is normal?
To get go on line i have to press ctrl-g, ctrl-h not do.
As "QSearch-Eng.txt" says:
I mean when I press Ctrl + H should appear a new search panel embedded below as qSearch, or the AkelPad classic popup?The DialogSwitcher function allows to switch between the "Find", "Replace",
"Go to line" dialogs and the QSearch panel using corresponding hotkeys.
For example, Ctrl+H in the "Find" dialog changes this dialog to the
"Replace" dialog.
Last edited by Diamen on Fri Jan 03, 2020 5:34 am, edited 1 time in total.
-
Offline
- Posts: 1291
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
-
Offline
- Posts: 165
- Joined: Fri Aug 15, 2008 8:58 am
As "QSearch-Eng.txt" says:Diamen wrote:Do it is possibile to toggle hide with ctrl-f instead to use esc?
I set this option and work but only if focus is not in panel."Window: Hotkey hides the panel"
hotkey_hides_panel = 1
When you press the plugin hot-key in QSearch'es panel, the panel
is closed (becomes hidden - the same as when Esc is pressed).
Repeated call of QSearch::QSearch also closes the panel.
Do it is possible to work also if focused in panel?
I would to avoid to close current tab when close panel with ESC (i use it with Hotkeys plugin to close) because tab is focused.
Do it is possible to chech via script if the QSearch panel is opened and then close it via script?
-
Offline
- Posts: 1291
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
Could you provide more details by giving the following information? --Diamen wrote:I set this option and work but only if focus is not in panel
1. What hotkey is assigned to QSearch::QSearch ?
2. Is QSearch::DialogSwitcher enabled ?
3. What exactly works as expected and what exactly does not work as expected? (Example: "when I press the hotkey ... in the QSearch panel, the panel becomes hidden. It is expected. When I press the hotkey ... in the editing window and the QSearch panel is not visible, the panel becomes active. It is expected.")
-
Offline
- Posts: 165
- Joined: Fri Aug 15, 2008 8:58 am
DV wrote:Could you provide more details by giving the following information? --Diamen wrote:I set this option and work but only if focus is not in panel
1. What hotkey is assigned to QSearch::QSearch ?
Ctrl-f
Not2. Is QSearch::DialogSwitcher enabled ?
when I press the hotkey Ctrl-f in the QSearch panel or in editing window, the panel becomes hidden if it is visible and the other way around.3. What exactly works as expected and what exactly does not work as expected?
-
Offline
- Posts: 1291
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
I've tried the same - everything works as expected.Diamen wrote:when I press the hotkey Ctrl-f in the QSearch panel or in editing window, the panel becomes hidden if it is visible and the other way around.
Pressing Ctrl+F closes the QSearch panel.
Could it be that actually you mean the following: when the QSearch panel is visible but does not have the focus and the focus is in the AkelPad's editing window, then pressing Ctrl+F in the editing window should activate the QSearch panel rather than closing it?
-
Offline
- Posts: 165
- Joined: Fri Aug 15, 2008 8:58 am
- I'm in edit windowsDV wrote:Could it be that actually you mean the following: when the QSearch panel is visible but does not have the focus and the focus is in the AkelPad's editing window, then pressing Ctrl+F in the editing window should activate the QSearch panel rather than closing it?
- I press ctrl-f
- qSearch panel show and get focused
- I again press ctrl-f to toggle qSearch panel
- but qSearch focused not hide (I insead would to hide)
- i have to move focus to edit window and then i press ctrl-f
- only then qSearch panel hide.
-
Offline
- Posts: 1291
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
I tried on two computers and could not reproduce your situation.Diamen wrote:- qSearch panel show and get focused
- I again press ctrl-f to toggle qSearch panel
- but qSearch focused not hide (I insead would to hide)
Please share you QSearch settings (either the content of the "QSearch.ini" or the HKEY_CURRENT_USER\Software\Akelsoft\AkelPad\Plugs\QSearch). Please use this forum's "More" button to collapse the content under the "More" section.
Here is an example:
-
Offline
- Posts: 1291
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
I have to say I am completely lost.Diamen wrote:QSearch.ini
I've created a new AkelPad folder with almost empty AkelPad.ini
So it uses the only QSearch plugin with the QSearch.ini you provided.
I can not reproduce the problem! (Ctrl+F perfectly works for me: the repeated Ctrl+F hides the QSearch panel when it is pressed either in the QSearch panel itself or in the AkelPad's editing window.)
Stop!Diamen wrote:Also i use
AkelPad.Call("QSearch::QSearch")
in script with ctrl-f
Are you saying you invoke QSearch using a script with Ctrl+F assigned to that script? Correct?
Oh my God, why are you doing this????????
First, the hotkey can be assigned in the Plugins (Alt+P) window itself, you don't need a script for this!
Second, a script can be called from AkelPad's editing window and not from an AkelPad's plugin!
-
Offline
- Posts: 165
- Joined: Fri Aug 15, 2008 8:58 am
Yes, I use to select word before search:DV wrote:Stop!Diamen wrote:Also i use
AkelPad.Call("QSearch::QSearch")
in script with ctrl-f
Are you saying you invoke QSearch using a script with Ctrl+F assigned to that script? Correct?
Oh my God, why are you doing this????????
AkelPad.WordCaretSelect(true, false);
AkelPad.Call("QSearch::QSearch")
and then get selected text in search inputbox
I tested that also for me works if i use ctrl-f assigned directly in QSearchFirst, the hotkey can be assigned in the Plugins (Alt+P) window itself, you don't need a script for this!
I not know this.Second, a script can be called from AkelPad's editing window and not from an AkelPad's plugin!