项目作者: raisty

项目描述 :
Alt & Select plugin for Oh My Zsh
高级语言: Shell
项目地址: git://github.com/raisty/alt-and-select.git
创建时间: 2021-02-25T19:01:32Z
项目社区:https://github.com/raisty/alt-and-select

开源协议:Do What The F*ck You Want To Public License

下载


alt-and-select plugin

This plugin binds the alt-c (copy), alt-v (paste), alt-x (cut) keyboard shortcut to a commands: copy-region-as-kill, yank, kill-region.

Execute command is remaped to Alt-Shift-X.

Text selection in terminal Shift-arrows:

  • Selection is cleared when using a navigation key (arrow, home, end) WITHOUT shift
  • Backspace and Del delete an active selection
  • Selection is extended to the next/previous word when using Ctrl+Shift+Left/Ctrl+Shift+Right
  • Shift+Home and Shift+End extend the selection to the beginning and end of line respectively. Ctrl+Shift+Home and Ctrl+Shift+End do the same.
  1. plugins=(... alt-and-select)

Installation with Oh My Zsh

Install using git clone.

  1. cd ~/.oh-my-zsh/plugins && git clone https://github.com/rastislavcore/alt-and-select.git

Or (alternative) download the file using wget.

  1. mkdir -p ~/.oh-my-zsh/plugins/alt-and-select && wget https://raw.githubusercontent.com/rastislavcore/alt-and-select/master/alt-and-select.plugin.zsh -nc --no-dns-cache -O ->> ~/.oh-my-zsh/plugins/alt-and-select

Activate the plugin in Oh My Zsh (~/.zshrc)

  1. plugins=(... alt-and-select)