Commit Graph

190 Commits

Author SHA1 Message Date
Ferran Basora
580d9ebcf1 New dbg function 2020-12-01 17:36:08 +00:00
Ferran Basora
b0812d6b7b Bump to 0.5.0 2020-11-30 20:50:56 +00:00
Ferran Basora
9255c86797 Fix multi selection 2020-11-30 20:49:04 +00:00
Ferran Basora
ee850b2282 Fix tests 2020-11-30 13:21:58 +00:00
Ferran Basora
c4ce368904 Check tmux version before pane zooming 2020-11-30 13:00:11 +00:00
Peter Bartyik
86f08f42eb update test 2020-10-24 20:04:35 +02:00
Peter Bartyik
0a7fba3f4e fix zoom after select 2020-10-24 20:04:35 +02:00
Peter Bartyik
7da1b8edad keep zoom 2020-10-24 20:04:35 +02:00
Ferran Basora
fc6d5833a3 Add more UTF / Emoji samples 2020-09-07 16:35:44 +00:00
nilninull
d57e594737 Added support for wide characters such as cjk and emoji 2020-09-07 18:34:06 +02:00
Ferran Basora
9b677a67c6
Merge branch 'master' into fix-regexp 2020-09-04 20:35:17 +02:00
Ferran Basora
294da9073b Fix typo 2020-09-04 16:18:12 +00:00
Ferran Basora
cf009d3610 Fix tmux configuration for swapper module 2020-09-04 12:49:32 +00:00
Peter Bartyik
277685f487 nicer regexp 2020-09-04 09:56:14 +02:00
Peter Bartyik
5313950597 I don't like it but it gets the job done 2020-09-03 15:58:36 +02:00
Peter Bartyik
50c9a7602c readme update 2020-09-03 14:05:36 +02:00
Peter Bartyik
1cddde2844 update readme 2020-09-03 13:15:54 +02:00
Peter Bartyik
e53c48cc93 fix regexp parsing from tmux config 2020-09-03 13:06:10 +02:00
Ferran Basora
3415117b6b Prerequisites 2020-08-22 15:02:42 +00:00
Ferran Basora
b0a76015f5 Bump version 0.4.4 2020-08-04 17:18:30 +00:00
Ferran Basora
1d0b0b68e7 Improve default command with display-message 2020-08-04 17:09:08 +00:00
Robert Estelle
7c5f2e8f73 Add small spec on command execution 2020-08-04 18:58:50 +02:00
Robert Estelle
f48029fb50 Fix dangerous command splicing 2020-08-04 18:58:50 +02:00
Robert Estelle
b355406972 sh: Fix quoting discipline in tmux-thumbs.tmux 2020-08-04 18:58:50 +02:00
Robert Estelle
92926c73f9 sh: Add strict failure flags 2020-08-04 18:58:50 +02:00
Robert Estelle
eced2d558e sh: Refactor argument construction
This centralizes the global array mutation and maintains the strict
quoting discipline.
2020-08-04 18:58:50 +02:00
Robert Estelle
27b0214408 sh: Factor out option name querying 2020-08-04 18:58:50 +02:00
Robert Estelle
85de58b48e sh: Fix more quoting
This adds quotes where necessary and removes quotes where entirely
redundant (like literals).
2020-08-04 18:58:50 +02:00
Robert Estelle
a0548965f8 sh: Fix meaningless unquoted expansion
[[ ${VALUE} ]] means "expand the VALUE variable, splitting on spaces,
and pass those words as arguments to [[…]]". So if VALUE was the string
'-n blah' then that would expand to '[[ -n blah ]]' which is meaningful
but not at all what was intended.

Instead it appears this intented to check for a non-empty string.
2020-08-04 18:58:50 +02:00
Robert Estelle
16a1ac9cf5 sh: Move CURRENT_DIR to top of script as convention 2020-08-04 18:58:50 +02:00
Robert Estelle
85d151df03 sh: Do not source ~/.bash_profile
This isn't an interactive script. Any relevant environment should
already be inherited from tmux, and sourcing ~/.bash_profile may cause
~/.bashrc to be sourced with unexpected effects.
2020-08-04 18:58:50 +02:00
Ferran Basora
d15774c5cc Improve positioning code 2020-08-04 16:49:37 +00:00
Martin Lariz
0e04276056 cleaning up with match per suggestion 2020-08-04 18:41:32 +02:00
Martin Lariz
f4696faf77 missed one crucial change to use the offset correctly 2020-08-04 18:41:32 +02:00
Martin Lariz
7fefc3c77b update README for new position options 2020-08-04 18:41:32 +02:00
Martin Lariz
6ec79a1296 Allow more positions for not overwriting chunk 2020-08-04 18:41:32 +02:00
Ferran Basora
ac5bb4908e Fix nighly pipeline 2020-07-15 16:07:41 +00:00
Peter Bartyik
68c5f52e94 no need for string, line already string slice 2020-07-15 00:06:28 +02:00
Peter Bartyik
41e41cd10b remove brackets from contrast 2020-07-15 00:06:28 +02:00
Ferran Basora
a148670fb5 Bump 0.4.3 2020-07-10 09:48:31 +00:00
Ferran Basora
10eff07d16 Fix another source of flickering
When you have many keystrokes in the `stdin` (pushing long keys), we are
saying to `termion` to print many things. Throttling this.
2020-07-10 09:43:33 +00:00
Peter Bartyik
a36d30594c fix flicker 2020-07-10 11:41:22 +02:00
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