Commit Graph

198 Commits

Author SHA1 Message Date
Ferran Basora
59b4a769b8 Bump version 2020-07-02 16:27:19 +00:00
Ferran Basora
ba015b6b89 Format code 2020-07-02 16:26:51 +00:00
Ferran Basora
a3c057e875 Merge branch 'osc52' 2020-07-02 16:18:15 +00:00
Rostislav Raykov
9416da2579 fixate the cargo output target path to the expected one 2020-06-13 16:34:53 +02:00
Joe Toth
0cf29dd942 Show the user the output of the compile command so they know something is happening, plus if there is an error they need to address. 2020-06-02 22:22:02 +02:00
Ferran Basora
34d8fa03e9 Adapt old osc52 implementation to swapper and rustbox era
OSC52 support was implemented before two major refactors in tmux-thubs:

- Decouple tmux-thumbs from tmux
- Removal of rustbox with termion

I'm not sure if is the right decision, but I moved the arguments to
swapper land because it looks like more tmux related. If it makes sense
for other terminals to support this we can move it back.

The question we need to answer here if it makes sense for standalone `thumbs`:

```
cat sample/test1 | ./target/release/thumbs --osc52
```
2020-05-30 15:45:37 +00:00
Jiahao Li
25ed6dc78f Adds OSC52 copy escape sequence support
Currently I can only get the copied content in the tmux copy buffer, not in the
system clipboard. This commit adds an option to print the copied text as a
OSC52 copy escape sequence, which in supported terminals (tested in iTerm) will
be copied to the system clipboard.
2020-05-30 15:03:05 +00:00
Ferran Basora
794621f526 cargo fmt 2020-05-30 14:44:28 +00:00
Ferran Basora
2bb8900e6b Fix bug with no hints 2020-05-15 16:30:09 +00:00
Thomas Preston
d2f765bae8 README: Add check to tmux 3.0a compatibility
I'm successfully running tmux-thumbs on tmux version 3.0a.
2020-05-10 13:28:51 +02:00
Thomas Preston
e006b06ea0 swapper: Make quotes optional in key-value regex
The regular expression describing the tmux user options expects to find
quotes around the value. However, in at least tmux 3.0a the
`show-options -g` command doesn't display quotes around the values,
which means the regex fails.

For example, the current regex will fail to find these user options:

	$ tmux -V
	tmux 3.0a

	$ tmux show -g | grep -E "@thumbs"
	@thumbs-bg-color default
	@thumbs-fg-color green
	@thumbs-hint-bg-color default
	@thumbs-hint-fg-color blue
	@thumbs-select-bg-color default
	@thumbs-select-fg-color green

Make the quotes optional so that these options are picked up.

Fixes #33
2020-05-10 13:28:51 +02:00
Suraj N. Kurapati
805a5ebe56 let user specify a prefix-less @thumbs-key binding
This change allows me to bind a prefix-less shortcut for @thumbs-key.
For example, I bind a prefix-less Alt+Shift+U instead of Prefix + Space:

    set -g @thumbs-key '-n M-U'
2020-05-10 13:25:18 +02:00
Ferran Basora
ea1ad77f7e Bump 0.4.1 2020-05-05 18:33:08 +00:00
Ferran Basora
25a3856aac Add support for docker images 2020-05-05 18:30:47 +00:00
Ferran Basora
f0cab14a9f Bump version 0.4.0 2020-05-04 22:06:55 +02:00
Ferran Basora
35bfa6c2a1 Enable mac build 2020-05-04 22:06:55 +02:00
Ferran Basora
e7d43e8ec2 Better handling of target param 2020-05-04 22:06:55 +02:00
Ferran Basora
7c739ce5c5 Use termion AlternateScreen 2020-05-04 22:06:55 +02:00
Ferran Basora
53af67e6fa Fix path with ~ 2020-05-04 22:06:55 +02:00
Ferran Basora
122c26b8b0 Fix issue with multi selection 2020-05-04 22:06:55 +02:00
Ferran Basora
6ef320d676 Fix line alignment 2020-05-04 22:06:55 +02:00
Ferran Basora
4dc55da28e Some typos 2020-05-04 22:06:55 +02:00
Ferran Basora
8b4297d925 Avoid extra clear 2020-05-04 22:06:55 +02:00
Ferran Basora
eeb2b5f98f Handle better wrong executions of tmux-thumbs 2020-05-04 22:06:55 +02:00
Ferran Basora
674bec31fc Update dependencies 2020-05-04 22:06:55 +02:00
Ferran Basora
d79ec42c9e Add cargo audit 2020-05-04 22:06:55 +02:00
Ferran Basora
1cba9ce530 First termion attempt 2020-05-04 22:06:55 +02:00
Ferran Basora
bef83eef38 Fix clippy suggestions 2020-05-04 22:06:55 +02:00
rahuliyer95
1b035a658d [workflow] Add apt update before installing dependencies 2020-03-16 09:44:29 +01:00
Ferran Basora
c00dbba0e7 Disable macosx build 2020-03-15 15:01:45 +00:00
Ferran Basora
95daffafaa Build on install 2020-03-15 12:09:23 +00:00
Ferran Basora
7d721b623a Add support for TPM 2020-03-15 11:53:19 +00:00
Ferran Basora
052f95db8e
Update rust.yml 2020-03-11 21:56:13 +01:00
rahuliyer95
d00d717f2a Add github workflow to build 2020-03-11 21:51:42 +01:00
Ferran Basora
a493fbdd03 More README.md 2020-01-30 09:38:29 +01:00
Ferran Basora
b5d5d41310 Fix swapper with active pane 2020-01-22 09:09:04 +00:00
Ferran Basora
6bdb92ef23 Don't fail if thux-thumbs is cancelled 2020-01-20 19:49:38 +00:00
Ferran Basora
e3faf2e6fe Add support scroll mode in tmux 2020-01-20 20:44:46 +01:00
Ferran Basora
4262b1c45d Fix scripts 2020-01-19 21:21:07 +01:00
Ferran Basora
19e2a2380a More documentation about multi-selection 2020-01-19 21:21:07 +01:00
Ferran Basora
a1c4977ed1 Rename binary 2020-01-19 21:21:07 +01:00
Ferran Basora
3cf78e116a Bump dependencies 2020-01-19 21:21:07 +01:00
Ferran Basora
364c83e524 Bump version to 0.3.0 2020-01-19 21:21:07 +01:00
Ferran Basora
741a5bd927 Add multi selection 2020-01-19 21:21:07 +01:00
Ferran Basora
8ae9fa9137 Decouple thumbs from tmux 2020-01-19 21:21:07 +01:00
Ferran Basora
189be87e58
Update README.md 2019-12-11 19:02:17 +01:00
Abin Simon
a1792ea196 add select-bg-color 2019-12-11 18:59:10 +01:00
Ferran Basora
4643c4ca0f
Update README.md 2019-12-11 12:22:46 +01:00
Ferran Basora
90809b5d18
Update README.md 2019-12-11 12:22:09 +01:00
Ferran Basora
f15f02c26b Exclusive commands
Before this commit `command` and `upcase_command` where executed if you
pressed an uppercase key. This can force the user to have a innocuous
lower case command if they want to execute together.

Now they can be totally independent.
2019-12-10 07:49:07 +01:00