Commit Graph

10 Commits

Author SHA1 Message Date
Ferran Basora
ba015b6b89 Format code 2020-07-02 16:26:51 +00: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
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
Ferran Basora
eeb2b5f98f Handle better wrong executions of tmux-thumbs 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
Ferran Basora
b5d5d41310 Fix swapper with active pane 2020-01-22 09:09:04 +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
8ae9fa9137 Decouple thumbs from tmux 2020-01-19 21:21:07 +01:00