FarNet.RightControl
5.1.0
Prefix Reserved
dotnet add package FarNet.RightControl --version 5.1.0
NuGet\Install-Package FarNet.RightControl -Version 5.1.0
<PackageReference Include="FarNet.RightControl" Version="5.1.0" />
paket add FarNet.RightControl --version 5.1.0
#r "nuget: FarNet.RightControl, 5.1.0"
// Install FarNet.RightControl as a Cake Addin #addin nuget:?package=FarNet.RightControl&version=5.1.0 // Install FarNet.RightControl as a Cake Tool #tool nuget:?package=FarNet.RightControl&version=5.1.0
RightControl
FarNet module RightControl for Far Manager
Synopsis
This tool alters some operations in editors, edit boxes, and the command line. They are: Step, Select, Delete by words, Go, Select to smart home. New actions are similar to what many popular editors do on stepping, selecting, deleting by words, and etc. Example: Visual Studio, Word, WordPad, etc.
Project
- Source: https://github.com/nightroman/FarNet/tree/main/RightControl
- Author: Roman Kuzmin
Installation
Requirements
- Far Manager
- Package FarNet
- Package FarNet.RightControl
Instructions
How to install and update FarNet and modules:
https://github.com/nightroman/FarNet#readme
After installing use for examples or copy the macro file:
RightControl.macro.lua to %FARPROFILE%\Macros\scripts
Commands
The module works by commands called from macros associated with keys:
Word commands
step-left ~ [CtrlLeft]
step-right ~ [CtrlRight]
select-left ~ [CtrlShiftLeft]
select-right ~ [CtrlShiftRight]
delete-left ~ [CtrlBS]
delete-right ~ [CtrlDel]
vertical-left ~ [CtrlAltLeft]
vertical-right ~ [CtrlAltRight]
Smart home commands
go-to-smart-home ~ [Home]
select-to-smart-home ~ [ShiftHome]
Smart home deals with:
- Editors ~ leading spaces
- Command lines ~ prefix and spaces
Settings
Module settings: [F11] \ FarNet \ Settings \ RightControl
RegexLeft
This regular expression defines caret stops on moving left.
RegexRight
This regular expression defines caret stops on moving right.
Regex examples
Default patterns. Stops are similar to Visual Studio:
(?x: ^ | $ | (?<=\b|\s)\S )
(?x: ^ | $ | (?<=\b|\s)\S )
Patterns with stops similar to Word/WordPad (_
stops, too):
(?x: ^ | $ | (?<=\b|\s)\S | (?<=[^_])_ | (?<=_)[^_\s] )
(?x: ^ | $ | (?<=\b|\s)\S | (?<=[^_])_ | (?<=_)[^_\s] )
Default patterns with two more breaks: letter case and digits:
(?x: ^ | $ | (?<=\b|\s)\S | (?<=\p{Ll})\p{Lu} | (?<=\D)\d | (?<=\d)[^\d\s] )
(?x: ^ | $ | (?<=\b|\s)\S | (?<=\p{Ll})\p{Lu} | (?<=\D)\d | (?<=\d)[^\d\s] )
The same with comments, thanks to (?x:)
together with ignored white spaces:
(?x:
^ | $ # start or end of line
|
(?<=\b|\s)\S # not a space with a word bound or a space before
|
(?<=\p{Ll})\p{Lu} # an upper case letter with a lower case letter before
|
(?<=\D)\d | (?<=\d)[^\d\s] # a digit/not-digit with a not-digit/digit before
)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
5.1.0 | 247 | 4/12/2024 |
5.0.0 | 312 | 11/19/2023 |
4.0.1 | 595 | 1/1/2023 |
4.0.0 | 378 | 11/18/2022 |
3.0.1 | 432 | 8/27/2022 |
3.0.0 | 450 | 7/19/2022 |
2.4.1 | 461 | 7/10/2022 |
2.4.0 | 993 | 12/3/2021 |
2.3.1 | 309 | 11/28/2021 |
2.3.0 | 358 | 8/12/2021 |
2.2.2 | 517 | 12/27/2020 |
2.2.1 | 1,328 | 7/3/2016 |
2.2.0 | 1,778 | 4/19/2014 |
2.1.1 | 1,356 | 4/10/2014 |
2.1.0 | 1,507 | 3/27/2014 |