Far3 how to remove cmdline history autoselection
Far3 how to remove cmdline history autoselection
Hi,
So I'm trying to move to Far3 (again) and trying to configure it the way I like it.
So when I cycle through the command history the line is selected by default (Why?) I don't like that, but I can't find an option to not have it selected like in Far2.
Surely there is an option I'm missing or do I need a macro?
jonib
So I'm trying to move to Far3 (again) and trying to configure it the way I like it.
So when I cycle through the command history the line is selected by default (Why?) I don't like that, but I can't find an option to not have it selected like in Far2.
Surely there is an option I'm missing or do I need a macro?
jonib
Last edited by HaRT on Wed 21 Sep, 2016 15:48, edited 2 times in total.
Reason: Removed Topic icon
Reason: Removed Topic icon
- HaRT
- Moderator
- Posts: 10869
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
Far3 how to remove cmdline history autoselection
Can you please elaborate how exactly you do it and what is “selected” here?
Фар есть инструмент, а не нянька. © 2009 DrKnS
Far3 how to remove cmdline history autoselection
Thanks for the quick reply.
Hopefully this is clearer.
This don't happen in Far2 for me.
jonib
Empty commandline, I press Ctrl+End, the cmdline shows the last command from the history, and it's selected so if I press Backspace the whole line is deleted.HaRT wrote:Can you please elaborate how exactly you do it and what is “selected” here?
Hopefully this is clearer.
This don't happen in Far2 for me.
jonib
- HaRT
- Moderator
- Posts: 10869
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
Far3 how to remove cmdline history autoselection
I use CtrlE/CtrlX (well, actually I remap it to CtrlD to free CtrlX for “Cut”) and the command line text does not get selected.
Фар есть инструмент, а не нянька. © 2009 DrKnS
Far3 how to remove cmdline history autoselection
They don't work the same as I can complete a partial command from the history with ctrl+end.
So why was this changed and why is there no option to change it back to how it use to work in Far2?
jonib
Far3 how to remove cmdline history autoselection
I wouldn't mind the selection as long as a backspace didn't remove the selected text and only the last character.
Looking in the Far changelog the dialog code seems related and the dialog settings have a option that would be nice to have for the commandline also.
jonib
Looking in the Far changelog the dialog code seems related and the dialog settings have a
Code: Select all
[ ] Backspace deletes unchanged text
jonib
- HaRT
- Moderator
- Posts: 10869
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
Far3 how to remove cmdline history autoselection
I have it off, and CtrlEnd still selects the appended text. Whether this is intended or not is a separate question.
Фар есть инструмент, а не нянька. © 2009 DrKnS
Far3 how to remove cmdline history autoselection
I didn't have it enabled and I definitely didn't like it enabled.
jonib
-
- Posts: 6840
- Joined: Thu 23 Mar, 2006 21:36
- Location: Israel
- Has thanked: 41 times
- Been thanked: 530 times
Far3 how to remove cmdline history autoselection
Something like this:
Code: Select all
Macro {
area="Shell"; key="CtrlEnd";
action=function()
Keys("CtrlEnd")
panel.SetCmdLineSelection(nil,1,0)
end;
}
Far3 how to remove cmdline history autoselection
Thanks, but I wasn't really asking for a macro. I wanted to know if there was an option to restore old (Far2/Far1?) behavior as stuff functioned differently.
But as there don't seem to be an option, and your macro seems to make it work like I want, I might as well use it so thanks. But I totally didn't ask for it.
jonib
- DrKnS
- Posts: 6114
- Joined: Thu 04 Aug, 2005 06:44
- Location: Kyiv
- Has thanked: 12 times
- Been thanked: 426 times
Far3 how to remove cmdline history autoselection
Looking into code...
It worked differently in a different places earlier, e. g. in command line it was scrolling through the possible matches without selection, while in dialogs - no scrolling, but with selection.
The behaviour has been unified in build 1498 (which is, by the way, still Far2).
So yes, this is definitely intended and there is no option.
It worked differently in a different places earlier, e. g. in command line it was scrolling through the possible matches without selection, while in dialogs - no scrolling, but with selection.
The behaviour has been unified in build 1498 (which is, by the way, still Far2).
So yes, this is definitely intended and there is no option.
-
- Posts: 6840
- Joined: Thu 23 Mar, 2006 21:36
- Location: Israel
- Has thanked: 41 times
- Been thanked: 530 times
Far3 how to remove cmdline history autoselection
Then excuse me for my inappropriate behavior (giving out the macro you totally didn't ask for).
Far3 how to remove cmdline history autoselection
Holy shit, sometimes I hate my brain, so I'm using "Alternative history" in Far2 so I use a macro to use it's "previous command" command. So that's why I wasn't seeing that in Far2.
I could blame it on how seamless the macro integration is, so it's hard to know what is builtin behavior or not (After years of using it). Just to make sure, I love Far's macro support.
I'm sorry for wasting everyone's time. It's just so frustrating moving everything from far2 and everytime I can't get something like I want it, I go back to Far2 (That I never got to the same level as Far1 even ) I hate not having the energy for this stuff like I used to.
OK, I got my answer.So yes, this is definitely intended and there is no option.
jonib