FarNet.RightControl 4.0.1

dotnet add package FarNet.RightControl --version 4.0.1
NuGet\Install-Package FarNet.RightControl -Version 4.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FarNet.RightControl" Version="4.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FarNet.RightControl --version 4.0.1
#r "nuget: FarNet.RightControl, 4.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install FarNet.RightControl as a Cake Addin
#addin nuget:?package=FarNet.RightControl&version=4.0.1

// Install FarNet.RightControl as a Cake Tool
#tool nuget:?package=FarNet.RightControl&version=4.0.1

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


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 the module 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]

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
)
There are no supported framework assets in this package.

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
4.0.1 103 1/1/2023
4.0.0 148 11/18/2022
3.0.1 236 8/27/2022
3.0.0 270 7/19/2022
2.4.1 244 7/10/2022
2.4.0 841 12/3/2021
2.3.1 190 11/28/2021
2.3.0 256 8/12/2021
2.2.2 385 12/27/2020
2.2.1 1,147 7/3/2016
2.2.0 1,627 4/19/2014
2.1.1 1,184 4/10/2014
2.1.0 1,291 3/27/2014