wfn: will not take effect immediately

Discussion related to "Everything" 1.5.
bytim
Posts: 11
Joined: Sat Jul 20, 2024 12:22 pm

wfn: will not take effect immediately

Post by bytim »

as show :
ev wfn issue.gif
I use AHK to add prefix wfn: to edit field,

Code: Select all

^Tab::{
	oText := ControlGetText("Edit1")
	ControlSetText "wfn:" oText, "Edit1", "ahk_class EVERYTHING"
}
but it will not take effect immediately.
then I delete wfn: , the result list has not changed..
I have to delete a letter to make it effective.
You do not have the required permissions to view the files attached to this post.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: wfn: will not take effect immediately

Post by NotNull »

Works fine here (AHK 2.0..19.0 x64 + Everything 1.5.0.1406 @ Win11 25H2 )


wfn.gif
(I assume this is a simplified version of your actual code as it would disable `CTRL + TAB` in all applications)

Code: Select all

#Requires AutoHotkey v2.0

^Tab::
{
	oText := ControlGetText("Edit1", "ahk_class EVERYTHING")

	ControlSetText("wfn:" oText, "Edit1", "ahk_class EVERYTHING")
}

You do not have the required permissions to view the files attached to this post.
void
Developer
Posts: 19903
Joined: Fri Oct 16, 2009 11:31 pm

Re: wfn: will not take effect immediately

Post by void »

I think this is a pinyin issue..?
I'm trying different search options but unable to reproduce here.

Is pinyin enabled under Tools -> Options -> Advanced -> pinyin ?
What search options are checked under the Search menu?

I might need to see debug logs to figure this one out..
bytim
Posts: 11
Joined: Sat Jul 20, 2024 12:22 pm

Re: wfn: will not take effect immediately

Post by bytim »

void wrote: Sun Mar 15, 2026 11:17 pm I think this is a pinyin issue..?
I'm trying different search options but unable to reproduce here.

Is pinyin enabled under Tools -> Options -> Advanced -> pinyin ?
What search options are checked under the Search menu?

I might need to see debug logs to figure this one out..
pinyin is disabled,
image.png
You do not have the required permissions to view the files attached to this post.
Last edited by bytim on Mon Mar 16, 2026 1:05 am, edited 1 time in total.
bytim
Posts: 11
Joined: Sat Jul 20, 2024 12:22 pm

Re: wfn: will not take effect immediately

Post by bytim »

NotNull wrote: Sun Mar 15, 2026 5:02 pm Works fine here (AHK 2.0..19.0 x64 + Everything 1.5.0.1406 @ Win11 25H2 )



wfn.gif

(I assume this is a simplified version of your actual code as it would disable `CTRL + TAB` in all applications)

Code: Select all

#Requires AutoHotkey v2.0

^Tab::
{
	oText := ControlGetText("Edit1", "ahk_class EVERYTHING")

	ControlSetText("wfn:" oText, "Edit1", "ahk_class EVERYTHING")
}

only in Everything window:

Code: Select all

#HotIf WinActive("ahk_class EVERYTHING")
void
Developer
Posts: 19903
Joined: Fri Oct 16, 2009 11:31 pm

Re: wfn: will not take effect immediately

Post by void »

Thank you for the pinyin information.

Please send a debug log:
  • In Everything, set your search to:
    foobar2000.exe
  • From the Tools menu, under the Debug submenu, click Start Debug Logging...
  • Call your AutoHotKey script to add wfn:
  • Select the wfn: text in Everything and press Backspace.
  • From the Tools menu, under the Debug submenu, click Stop Debug Logging...
  • This will open your %TEMP%\Everything Debug Log.txt in your text editor.
  • Please upload this file in a bug report.
bytim
Posts: 11
Joined: Sat Jul 20, 2024 12:22 pm

Re: wfn: will not take effect immediately

Post by bytim »

void wrote: Mon Mar 16, 2026 1:05 am Thank you for the pinyin information.

Please send a debug log:
  • In Everything, set your search to:
    foobar2000.exe
  • From the Tools menu, under the Debug submenu, click Start Debug Logging...
  • Call your AutoHotKey script to add wfn:
  • Select the wfn: text in Everything and press Backspace.
  • From the Tools menu, under the Debug submenu, click Stop Debug Logging...
  • This will open your %TEMP%\Everything Debug Log.txt in your text editor.
  • Please upload this file in a bug report.
Thank you, I found it, It is indeed caused by the Pinyin plugin IbEverythingExt
when it is disabled, everything OK now.
I will report this issue to the plugin author
image.png
You do not have the required permissions to view the files attached to this post.
Chaoses Ib
Posts: 6
Joined: Sun Sep 26, 2021 3:35 pm

Re: wfn: will not take effect immediately

Post by Chaoses Ib »

It turns out it's actually a bug of Everything that usually won't be triggered. IbEveryhingExt just triggered it by accident.
image.png
You do not have the required permissions to view the files attached to this post.
void
Developer
Posts: 19903
Joined: Fri Oct 16, 2009 11:31 pm

Re: wfn: will not take effect immediately

Post by void »

The regex: modifier supersedes the wfn: modifier.
The regex: modifier does not support the wfn: modifier.
The wfn: modifier is ignored when used with regex:

To match the whole filename with regex, use:
regex:^foobar2000\.json$


^ = match the start of the filename.
$ = match the end of the filename.
bytim
Posts: 11
Joined: Sat Jul 20, 2024 12:22 pm

Re: wfn: will not take effect immediately

Post by bytim »

I found the same issue with "startwith:" and "endwith:"

startwith:foobar2000.exe
endwith:foobar2000.exe
void
Developer
Posts: 19903
Joined: Fri Oct 16, 2009 11:31 pm

Re: wfn: will not take effect immediately

Post by void »

startwith: and endwith: are not compatible with pinyin:

1407a will disable pinyin: when using startwith: and endwith: