Skip to content

Commit

Permalink
Release v0.13.0 (#167)
Browse files Browse the repository at this point in the history
Release v0.13 with multi-selection support.
Adds an entry about multi-select to the readme.
  • Loading branch information
abhinav committed Sep 15, 2023
1 parent c095617 commit 8a04911
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/v0.13.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## v0.13.0 - 2023-09-14
### Added
- Add support for multiple selections. Press `Tab` after invoking tmux-fastcopy to enter multi-select mode.

Thanks to @hansmansson for their contribution to this release.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie).

## v0.13.0 - 2023-09-14
### Added
- Add support for multiple selections. Press `Tab` after invoking tmux-fastcopy to enter multi-select mode.

Thanks to @hansmansson for their contribution to this release.

## v0.12.0 - 2023-06-18
### Added
- Actions are now run with `FASTCOPY_TARGET_PANE_ID` set to the ID of the pane
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- [Introduction](#introduction)
- [Installation](#installation)
- [Usage](#usage)
- [Multiple selections](#multiple-selections)
- [Options](#options)
- [`@fastcopy-key`](#fastcopy-key)
- [`@fastcopy-action`](#fastcopy-action)
Expand Down Expand Up @@ -161,6 +162,7 @@ When there is text on the screen you'd like to copy:
1. Press `<prefix> + f` to invoke tmux-fastcopy. (You can change this key by
setting the [`@fastcopy-key`](#fastcopy-key) option.)
2. Enter the label next to the highlighted text to copy that text.
(You can also [select multiple items](#multiple-selections).)

For example,

Expand All @@ -180,6 +182,20 @@ set-option -g @fastcopy-action 'tmux load-buffer -w -'
See [How to copy text to the clipboard?](#copy-text-to-the-clipboard) for older versions of
tmux.

### Multiple selections

tmux-fastcopy also supports a multi-selection mode.
To select multiple items:

1. Press `<prefix> + f` to invoke tmux-fastcopy as usual.
2. Press `Tab`. This enters multi-selection mode.
3. Enter all the labels for text you want to copy.
If you selected something accidentally,
enter that label again to deselect it.
4. Press `Tab` or `Enter` to accept your selections.

tmux-fastcopy will join your selections together and copy the result.

## Options

### `@fastcopy-key`
Expand Down
1 change: 1 addition & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- [Introduction](intro.md)
- [Installation](install.md)
- [Usage](usage.md)
- [Multiple selections](multi-select.md)
- Options
- [`@fastcopy-key`](opt-key.md)
- [`@fastcopy-action`](opt-action.md)
Expand Down
13 changes: 13 additions & 0 deletions doc/multi-select.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Multiple selections

tmux-fastcopy also supports a multi-selection mode.
To select multiple items:

1. Press `<prefix> + f` to invoke tmux-fastcopy as usual.
2. Press `Tab`. This enters multi-selection mode.
3. Enter all the labels for text you want to copy.
If you selected something accidentally,
enter that label again to deselect it.
4. Press `Tab` or `Enter` to accept your selections.

tmux-fastcopy will join your selections together and copy the result.
1 change: 1 addition & 0 deletions doc/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ When there is text on the screen you'd like to copy:
1. Press `<prefix> + f` to invoke tmux-fastcopy. (You can change this key by
setting the [`@fastcopy-key`](opt-key.md) option.)
2. Enter the label next to the highlighted text to copy that text.
(You can also [select multiple items](multi-select.md).)

For example,

Expand Down

0 comments on commit 8a04911

Please sign in to comment.