https://github.com/rastislavcore/alt-and-select
Alt & Select plugin for Oh My Zsh
https://github.com/rastislavcore/alt-and-select
oh-my-zsh oh-my-zsh-plugin
Last synced: 4 months ago
JSON representation
Alt & Select plugin for Oh My Zsh
- Host: GitHub
- URL: https://github.com/rastislavcore/alt-and-select
- Owner: rastislavcore
- License: wtfpl
- Created: 2021-02-25T19:01:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-04T16:40:19.000Z (almost 3 years ago)
- Last Synced: 2025-06-04T13:52:59.563Z (4 months ago)
- Topics: oh-my-zsh, oh-my-zsh-plugin
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# `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.```zsh
plugins=(... alt-and-select)
```## Installation with Oh My Zsh
Install using git clone.
```zsh
cd ~/.oh-my-zsh/plugins && git clone https://github.com/rastislavcore/alt-and-select.git
```Or (alternative) download the file using wget.
```zsh
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)
```zsh
plugins=(... alt-and-select)
```