FarManager icon indicating copy to clipboard operation
FarManager copied to clipboard

Introduce configuration for fast file search (Alt+Char)

Open stasberkov opened this issue 4 years ago • 5 comments

I use Far in Windows and Midnight Commander (MC) in Linux. Fast file search works in Far and MC differently. It would be really greate if in Far there will be an configuration option to initiate by fast file search by Alt+S, like in MC.

stasberkov avatar Jan 21 '21 09:01 stasberkov

if in Far there will be an configuration option to initiate by fast file search by Alt+S, like in MC.

In fact Far already has such option but in general form: I mean macros. So you can take this for example: https://github.com/FarGroup/FarManager/blob/master/extra/Addons/Macros/AltSearch.lua After adapted to your need:

Macro {
  description="AltS to search by name (like MC)";
  area="Shell"; key="AltS";
  action = function()
    Keys('Alt<')
  end;
}

johnd0e avatar Jan 21 '21 09:01 johnd0e

Thank yo so much! It works!

stasberkov avatar Jan 26 '21 05:01 stasberkov

@johnd0e can you please suggest, how to block opening filw quick search by any other Alt+Char excepting Alt+S?

stasberkov avatar Jan 27 '21 14:01 stasberkov

Try this:

Macro {
  description="Suppress FastFind function";
  area="Shell"; key="/[LR]Alt./";
  priority=40;
  action = function()  end;
}

Edited (thank you @shmuz)

johnd0e avatar Jan 27 '21 14:01 johnd0e

@johnd0e , it should be key="/.Alt./" or key="/[LR]Alt./".

shmuz avatar Jan 27 '21 15:01 shmuz