Alter.Org.UA
 << Back Home UK uk   Donate Donate

Left/Right selected text shift with Tab/Shift-Tab in Far editor



A small macro implementing indent functionality similar to MS VC 6.0 editor. When text block is selected in Far editor, you can use Tab to shift entire block 4 positions right (like 4 subsequent Alt-I do). Shift-Tab keys moves selected block 4 positions left. Due to its simplicity, the macro doesn't change indents inside moved block, like "smart" plugins do.

Macro sequence is absolutely simple:

REGEDIT4

[HKEY_CURRENT_USER\Software\Far\KeyMacros\Editor\ShiftTab]
"Description"="Back Tab Selected block"
"Sequence"="AltU AltU AltU AltU"
"DisableOutput"=dword:00000001
"Selection"=dword:00000001

[HKEY_CURRENT_USER\Software\Far\KeyMacros\Editor\Tab]
"Description"="Tab Selected block"
"Sequence"="AltI AltI AltI AltI"
"DisableOutput"=dword:00000001
"Selection"=dword:00000001

It is possible to install it by importing ShiftTab_EditVC6.reg from
ShiftTab_EditVC6.rar/tgz (259 bytes/357 bytes).
If you need Tab-size other tna 4, place correspronding number of AltU and AltI to reg-file.

2005.02.07


designed by Alter aka Alexander A. Telyatnikov powered by Apache+PHP under FBSD © 2002-2024