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                
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="5.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FarNet.RightControl --version 5.1.0                
#r "nuget: FarNet.RightControl, 5.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. 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=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


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
)
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
5.1.0 253 4/12/2024
5.0.0 313 11/19/2023
4.0.1 596 1/1/2023
4.0.0 379 11/18/2022
3.0.1 434 8/27/2022
3.0.0 452 7/19/2022
2.4.1 462 7/10/2022
2.4.0 994 12/3/2021
2.3.1 312 11/28/2021
2.3.0 359 8/12/2021
2.2.2 518 12/27/2020
2.2.1 1,329 7/3/2016
2.2.0 1,779 4/19/2014
2.1.1 1,357 4/10/2014
2.1.0 1,508 3/27/2014