Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old ViATc behaviors - may I override e for context menu and restore o and O mappings? #9

Closed
llinfeng opened this issue May 29, 2021 · 3 comments

Comments

@llinfeng
Copy link

llinfeng commented May 29, 2021

I am new to the modern ViATc and wonder if I may force it to act in a simpler manner?

For e, my muscle memory tells me that it should summon the context menu. In viatc.ini, I made a new entry e=<ContextMenu> under [ComboKey]. The mapping is working as intended, but I am prompted with the following helper note. May I hide the following note?
image
Also, uncommenting ;HotKey,e,<ContextMenu>,on,UseErrorLevel does not help.

Secondly, in an old ViATc, o will open the drive list on the left panel, and O will open the drive list on the right panel. With the current master branch, how may I overwrite the mapping for o and O? In ViATc-0.5.5en.ahk, I replaced the mapping for o and +o with the following. Still, o and O are behaving in its original manner as in the master branch.

	HotKey,o,<LeftOpenDrives>,on,UseErrorLevel
	HotKey,+o,<RightOpenDrives>,on,UseErrorLevel

Please advise if o and O are mapped somewhere else. I'd like to assign o for cm_LeftOpenDrives and O for cm_RightOpenDrives if possible. (Ref for cm_LeftOpenDrives and cm_RightOpenDrives: https://www.ghisler.ch/wiki/index.php/Totalcmd.inc)

@magicstep
Copy link
Owner

magicstep commented May 29, 2021

e=<ContextMenu> should be under [Hotkey] you said you've mapped it under [ComboKey]
Please also under [ComboKey] comment-out or delete all mappings for e_ like ec ey ep ed

@magicstep
Copy link
Owner

magicstep commented May 29, 2021

The command with label <RightOpenDrives> did not exist, instead it was without "s" at the end <RightOpenDrive>
I updated the script with "s" so it is consistent with other

I was able to remap temporarily the way you want o for left and +o for right. It was just for test and it worked, but I left the way it was.

llinfeng added a commit to llinfeng/ViATc-Old that referenced this issue May 29, 2021
Three things are updated per this commit:
1. `iw` now creates a new folder;
2. `e` now only summons the context menu;
3. `o` and `O` summons Drive List on left/right panel respectively;
4. Shortcuts with `` ` ``, the backtick, are commented out. This
include: a. `` ` `` for comparing directories, and b. `` Ctrl+` `` for
showing all available shortcuts.

Credit: magicstep#9
@llinfeng
Copy link
Author

@magicstep Thanks a lot for your quick response and the new commit. I forked this repo and applied a few edits to restore the functions according to my muscle memory :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants