QSearch plugin

Discuss and announce AkelPad plugins
  • Author
  • Message
DV
Offline
Posts: 1291
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Post by DV »

QSearch v.7.3
* улучшено: несколько мелочей в "Найти все"
+ добавлено: "Режим фильтра" в "Найти все"

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

Post by DV »

Как-то затянул я с "Найти все во Всех файлах", и в этом году уже не успею выпустить новую версию.
Однако из исходников можно собрать вполне работоспособную версию. Также обновил документацию:
https://github.com/d0vgan/AkelPad-Plugs ... ee/develop

Offline
Posts: 165
Joined: Fri Aug 15, 2008 8:58 am

Post 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.

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

Post 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.

Offline
Posts: 165
Joined: Fri Aug 15, 2008 8:58 am

Post 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?
Last edited by Diamen on Fri Jan 03, 2020 5:34 am, edited 1 time in total.

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

Post 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.

Offline
Posts: 165
Joined: Fri Aug 15, 2008 8:58 am

Post 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?

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

Post 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.")

Offline
Posts: 165
Joined: Fri Aug 15, 2008 8:58 am

Post 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.

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

Post 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?

Offline
Posts: 165
Joined: Fri Aug 15, 2008 8:58 am

Post 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.

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

Post 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:

[Options]
srch_onthefly_mode=1
srch_from_beginning=0
srch_use_specialchars=1
srch_use_regexp=0
srch_pickup_selection=0
srch_selfind_pickup=0
srch_stop_eof=0
srch_wnd_dockedtop=0
edit_focus_selectall=0
catch_main_f3=0
catch_main_esc=1
hotkey_hides_panel=1
editor_autofocus=1
qsearch_autofocus=0
dock_rect_disabled=0
dock_rect=00000000160200008E0200001A000000
color_notfound=FFE0E000
color_notregexp=F8E8F800
color_eof=E4FFE400
color_highlight=C0FFC000
highlight_mark_id=1001
highlight_state=1
use_alt_hotkeys=1
alt_match_case=67
alt_whole_word=87
alt_highlight_all=72
find_history_items=15
history_save=3
new_ui=2
select_by_f3=2
srch_regexp_dot_newline=0
adj_incompl_regexp=1
qsearch_autofocus_file=0
findall_mode=259
findall_result=784
findall_count_delay=400
alt_search_mode=82

Offline
Posts: 165
Joined: Fri Aug 15, 2008 8:58 am

Post by Diamen »


[Options]
srch_onthefly_mode=1
srch_from_beginning=0
srch_use_specialchars=0
srch_use_regexp=0
srch_regexp_dot_newline=0
srch_pickup_selection=1
srch_selfind_pickup=0
srch_stop_eof=0
srch_wnd_dockedtop=0
edit_focus_selectall=1
catch_main_f3=1
catch_main_esc=0
hotkey_hides_panel=1
editor_autofocus=1
qsearch_autofocus=1
qsearch_autofocus_file=0
dock_rect_disabled=0
dock_rect=00000000000000003C04000020000000
color_notfound=FFE0E000
color_notregexp=F8E8F800
color_eof=E4FFE400
color_highlight=8C000000
highlight_mark_id=1001
highlight_state=0
use_alt_hotkeys=1
alt_match_case=67
alt_whole_word=87
alt_search_mode=82
alt_highlight_all=72
find_history_items=15
history_save=7
new_ui=2
select_by_f3=2
adj_incompl_regexp=1
findall_mode=2
findall_result=784
findall_count_delay=400
srch_flags=0
FindHistory.00=casa
FindHistory.01=codeproject
FindHistory.count=4
FindHistory.02=DateTime
FindHistory.03=Now


Also i use
AkelPad.Call("QSearch::QSearch")
in script with ctrl-f

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

Post 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!

Offline
Posts: 165
Joined: Fri Aug 15, 2008 8:58 am

Post 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!
I not know this.
Post Reply