Fast Find Enhanced

Here you can discuss about your favorite plug-in.
User avatar
HaRT
Moderator
Posts: 9328
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 99 times
Been thanked: 212 times

Fast Find Enhanced

Post by HaRT »

Latest post of the previous page:

Фар есть инструмент, а не нянька. © 2009 DrKnS

User avatar
DrKnS
Posts: 5566
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 7 times
Been thanked: 289 times

Fast Find Enhanced

Post by DrKnS »


saiberpink
Posts: 13
Joined: Mon 13 Aug, 2018 10:17
Has thanked: 4 times

Fast Find Enhanced

Post by saiberpink »

Shmuel wrote:
Mon 17 Dec, 2018 11:27
In the plugin's file ffind.lua, find 2 occurences of FST_DATA and replace them with "FST_DATA".
Then reload Far.
works. thank you!

hayabusa2
Posts: 12
Joined: Sat 31 Aug, 2019 23:12
Has thanked: 12 times

Fast Find Enhanced

Post by hayabusa2 »

Помогите решить ошибку
Attachments
2019-09-01 13_54_54-Clipboard.jpg

Shmuel
Posts: 6059
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 30 times
Been thanked: 298 times

Fast Find Enhanced

Post by Shmuel »

Last edited by Shmuel on Sun 01 Sep, 2019 12:13, edited 2 times in total.

Shmuel
Posts: 6059
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 30 times
Been thanked: 298 times

Fast Find Enhanced

Post by Shmuel »

Надо бы поместить на плагринг версию с фиксами для предотвращения в будущем подобных вопросов. Может админы как-то это сделают (свой вариант версии предоставлю). Автор уже несколько лет не появляется.

User avatar
John Doe
Бюрократ
Posts: 12715
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 36 times
Been thanked: 278 times

Fast Find Enhanced

Post by John Doe »

Выложите тут, на плагринге добавим.

User avatar
DrKnS
Posts: 5566
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 7 times
Been thanked: 289 times

Fast Find Enhanced

Post by DrKnS »

Shmuel, I've just added you to its authors so you should be able to upload a new version.

P.S. Would you mind fixing the issue from the previous page as well?

Shmuel
Posts: 6059
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 30 times
Been thanked: 298 times

Fast Find Enhanced

Post by Shmuel »

DrKnS, thank you, it has been uploaded.

Shmuel
Posts: 6059
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 30 times
Been thanked: 298 times

Fast Find Enhanced

Post by Shmuel »

DrKnS wrote:
Sun 01 Sep, 2019 13:40
P.S. Would you mind fixing the issue from the previous page as well?
I didn't read it in details, is it Windows 10 related? (I don't yet have that OS).

User avatar
DrKnS
Posts: 5566
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 7 times
Been thanked: 289 times

Fast Find Enhanced

Post by DrKnS »

Shmuel wrote:
Sun 01 Sep, 2019 14:35
is it Windows 10 related?
Not really, just an incorrect API usage.

Shmuel
Posts: 6059
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 30 times
Been thanked: 298 times

Fast Find Enhanced

Post by Shmuel »

DrKnS, I'm trying to reproduce the bug according to description of how to do that but I fail to see any problem. Here are my settings:

Code: Select all

[x] Use Virtual Terminal for rendering
[x] ClearType-friendly redraw (can be slow)

User avatar
DrKnS
Posts: 5566
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 7 times
Been thanked: 289 times

Fast Find Enhanced

Post by DrKnS »

Shmuel wrote:
Sun 01 Sep, 2019 15:51
I fail to see any problem
I thought the linked post explains it quite clearly - the foreground colour of the numbers next to the arrows is supposed to be COL_DIALOGLISTSELECTEDHIGHLIGHT, but because of the bug it's always something else - green or whatever.
Obviously you won't see anything similar to those screenshots because a workaround was added to Far long time ago.

Something like this:
  1. --- ffind.lua   Mon Dec 17 10:33:58 2018
  2. +++ ffind.lua   Sun Sep  1 16:45:46 2019
  3. @@ -655,8 +655,7 @@
  4.      end
  5.  
  6.      if (msg == _F.DN_CTLCOLORDLGITEM) then
  7. -        if (param1==3) then param2[1].ForegroundColor = far.Colors.COL_DIALOGLISTSELECTEDHIGHLIGHT; return param2; end
  8. -        if (param1==4) then param2[1].ForegroundColor = far.Colors.COL_DIALOGLISTSELECTEDHIGHLIGHT; return param2; end
  9. +        if (param1==3 or param1==4) then param2[1].ForegroundColor = far.AdvControl("ACTL_GETARRAYCOLOR")[far.Colors.COL_DIALOGLISTSELECTEDHIGHLIGHT].ForegroundColor; return param2; end
  10.      elseif (msg == _F.DN_CONTROLINPUT) then
  11.          if (param1 == 2) then
  12.              if ((param2.EventType ~= _F.KEY_EVENT) and (param2.EventType ~= _F.FARMACRO_KEY_EVENT)) then

Shmuel
Posts: 6059
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 30 times
Been thanked: 298 times

Fast Find Enhanced

Post by Shmuel »

OK, I've applied your patch and that color has changed from green to bright yellow.
I understand that was a bug, but now my problem is that the green color (that was due to the bug) looks much better for me than that bright yellow one. I really don't know what to do :)

User avatar
DrKnS
Posts: 5566
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 7 times
Been thanked: 289 times

Fast Find Enhanced

Post by DrKnS »

Well, I have no idea whether the author wanted yellow (and didn't notice that it was green), green (and bruteforced it) or didn't care at all.
The default palette doesn't have green anywhere, so if you prefer to keep it it's better to just set it explicitly to 0x2.

Shmuel
Posts: 6059
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 30 times
Been thanked: 298 times

Fast Find Enhanced

Post by Shmuel »

After some playing with the colors COL_DIALOGBOXTITLE (default=black) has been selected.
The original value (COL_DIALOGLISTSELECTEDHIGHLIGHT) was left as a comment (in case someone would want it).
Uploaded the new version.

Post Reply

Return to “General Plug-In Discussions”