lynx-like motion

We welcome any suggestions for new features or improvements in Altap Salamander. Please post one suggestion per report.
mklhmnn
Posts: 34
Joined: 27 Jan 2013, 14:27

lynx-like motion

Post by mklhmnn »

Midnight Command has an option "Lynx-like motion". This allows to use cursor-right and cursor-left to navigate into and out of directories. It would be really nice to be able to do that in AS, too (as long as AS is not available on Linux and OS X).
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: lynx-like motion

Post by Ether »

An Autohotkey script that translates Left to Backspace and Right to Enter in the panels could be used as a workaround.
Ελληνικά rulez.
mklhmnn
Posts: 34
Joined: 27 Jan 2013, 14:27

Re: lynx-like motion

Post by mklhmnn »

Just for the records, here is my autohotkey script:

Code: Select all

#SingleInstance Force
#installKeybdHook
#Persistent
SetTitleMatchMode, 2

#Hotstring EndChars `t
; here come my hotkeys, like tia or br
; ...

#IfWinActive, Salamander
  Left::BS
  Right::Enter
#IfWinActive
Unfortunately, this also works not just in AS, but now also here in the browser showing "Salamander" in the title.
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: lynx-like motion

Post by Ether »

Try using if WinActive("ahk_class SalamanderMainWindowVer25") instead. I based this piece of code on the example on this page: http://www.autohotkey.com/docs/commands/IfWinActive.htm
Ελληνικά rulez.
mklhmnn
Posts: 34
Joined: 27 Jan 2013, 14:27

Re: lynx-like motion

Post by mklhmnn »

I've tried with SalamanderMainWindowVer25 and SalamanderMainWindowVer30 and neither works.
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: lynx-like motion

Post by Ether »

Oh. I tried it myself and it seems it has to be written a bit differently.

Code: Select all

#IfWinActive ahk_class SalamanderMainWindowVer25
  Left::BS
  Right::Enter
#IfWinActive
Ελληνικά rulez.
mklhmnn
Posts: 34
Joined: 27 Jan 2013, 14:27

Re: lynx-like motion

Post by mklhmnn »

Thanks. Yes, now it works - though I would not have expected SalamanderMainWindowVer25 to work with AS 3.
mklhmnn
Posts: 34
Joined: 27 Jan 2013, 14:27

Re: lynx-like motion

Post by mklhmnn »

Unfortunately, this broke the Alt+Left/Right history navigation.
User avatar
tukanos
Posts: 410
Joined: 21 Dec 2005, 19:14

Re: lynx-like motion

Post by tukanos »

mklhmnn wrote:Unfortunately, this broke the Alt+Left/Right history navigation.
Maybe you could map those too with AutoHotkey to fix it.
mklhmnn
Posts: 34
Joined: 27 Jan 2013, 14:27

Re: lynx-like motion

Post by mklhmnn »

Maybe, but I rather prefer to have an option in Altap Salamander. I guess, this couldn't be that difficult to implement.
User avatar
tukanos
Posts: 410
Joined: 21 Dec 2005, 19:14

Re: lynx-like motion

Post by tukanos »

mklhmnn wrote:Maybe, but I rather prefer to have an option in Altap Salamander. I guess, this couldn't be that difficult to implement.
For me as a linux person I would love to see it in the Salamander too. I even don't think it would be too much work... However, till it is implemented this is the only option to go.
Post Reply