FarNet.RightControl 4.0.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
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 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=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
5.1.0 103 4/12/2024
5.0.0 270 11/19/2023
4.0.1 565 1/1/2023
4.0.0 355 11/18/2022
3.0.1 408 8/27/2022
3.0.0 425 7/19/2022
2.4.1 433 7/10/2022
2.4.0 970 12/3/2021
2.3.1 287 11/28/2021
2.3.0 333 8/12/2021
2.2.2 491 12/27/2020
2.2.1 1,299 7/3/2016
2.2.0 1,747 4/19/2014
2.1.1 1,331 4/10/2014
2.1.0 1,479 3/27/2014