QSearch v.7.3
* улучшено: несколько мелочей в "Найти все"
+ добавлено: "Режим фильтра" в "Найти все"
Posted: Sat Dec 28, 2019 9:02 pm
by DV
Как-то затянул я с "Найти все во Всех файлах", и в этом году уже не успею выпустить новую версию.
Однако из исходников можно собрать вполне работоспособную версию. Также обновил документацию: https://github.com/d0vgan/AkelPad-Plugs ... ee/develop
Posted: Wed Jan 01, 2020 9:05 pm
by Diamen
history_save = 4
It does not seem to work.
Do it is possibile to toggle hide with ctrl-f instead to use esc?
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.
Posted: Thu Jan 02, 2020 8:18 am
by DV
Diamen wrote:history_save = 4
It does not seem to work.
It works. As "QSearch-Eng.txt" says:
history_save = 3
Can be set to 0 or be a sum of the following values:
...
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.
Diamen wrote:Do it is possibile to toggle hide with ctrl-f instead to use esc?
As "QSearch-Eng.txt" says:
"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.
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.
Are you talking about the DialogSwitcher?
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.
Posted: Thu Jan 02, 2020 3:17 pm
by Diamen
Thanks for the answers that solve my problem I had not properly understood the manual.
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.
Are you talking about the DialogSwitcher?
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.
I mean when I press Ctrl + H should appear a new search panel embedded below as qSearch, or the AkelPad classic popup?
Posted: Thu Jan 02, 2020 9:12 pm
by DV
Diamen wrote:I mean when I press Ctrl + H should appear a new search panel embedded below as qSearch, or the AkelPad classic popup?
QSearch itself does not support replacing, so the standard AkelPad's dialog is used for replacing.
Posted: Fri Jan 03, 2020 8:22 am
by Diamen
Diamen wrote:Do it is possibile to toggle hide with ctrl-f instead to use esc?
As "QSearch-Eng.txt" says:
"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.
I set this option and work but only if focus is not in 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?
Posted: Fri Jan 03, 2020 10:22 am
by DV
Diamen wrote:I set this option and work but only if focus is not in panel
Could you provide more details by giving the following information? --
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.")
Posted: Fri Jan 03, 2020 7:04 pm
by Diamen
DV wrote:
Diamen wrote:I set this option and work but only if focus is not in panel
Could you provide more details by giving the following information? --
1. What hotkey is assigned to QSearch::QSearch ?
Ctrl-f
2. Is QSearch::DialogSwitcher enabled ?
Not
3. What exactly works as expected and what exactly does not work as expected?
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.
Posted: Fri Jan 03, 2020 7:13 pm
by DV
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.
I've tried the same - everything works as expected.
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?
Posted: Fri Jan 03, 2020 9:13 pm
by Diamen
DV 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'm in edit windows
- 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.
Posted: Fri Jan 03, 2020 9:26 pm
by DV
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)
I tried on two computers and could not reproduce your situation.
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:
Also i use
AkelPad.Call("QSearch::QSearch")
in script with ctrl-f
Posted: Sat Jan 04, 2020 1:33 pm
by DV
Diamen wrote:QSearch.ini
I have to say I am completely lost.
I've created a new AkelPad folder with almost empty AkelPad.ini
[Options]
SaveSettings=2
[Themes]
[Plugs]
QSearch::QSearch=582
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.)
Diamen wrote:Also i use
AkelPad.Call("QSearch::QSearch")
in script with ctrl-f
Stop!
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!
Posted: Sat Jan 04, 2020 2:07 pm
by Diamen
DV wrote:
Diamen wrote:Also i use
AkelPad.Call("QSearch::QSearch")
in script with ctrl-f
Stop!
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????????
Yes, I use to select word before search:
AkelPad.WordCaretSelect(true, false);
AkelPad.Call("QSearch::QSearch")
and then get selected text in search inputbox
First, the hotkey can be assigned in the Plugins (Alt+P) window itself, you don't need a script for this!
I tested that also for me works if i use ctrl-f assigned directly in QSearch
Second, a script can be called from AkelPad's editing window and not from an AkelPad's plugin!