My `$tmux_yank_copy_command` is `reattach-to-user-namespace pbcopy`.
Running it myself in `nohup` is fine. However, tmux-fingers running it
with `nohup` produces a silent error: `nohup: can't detach from console:
Inappropriate ioctl for device`. Removing `nohup` restores my yank
ability.
BSD sed with only basic regular expressions did not like the `\?`. Use
extended regular expressions and simplify the regex escaping. Works with
both BSD & GNU sed.
The sha1 commit ids displayed by git may range in size and are not strictly 7 digits or 40 digits. In practice, the old default was something like 7, and that was enough to uniquely distinguish the commit. However, some repositories (Upstream Linux kernel) now use 12 as the default.
When we support intervals, use them to specify the full range to make the hint grab all available characters.
This patch changes the hinter to use the same hint for all occurrences
of a match, thereby reducing the need to use multi-character hints and
also eliminating redundant hints to simplify the user's hint decision.
This patch fixes the regular expression that parses `fingers-pattern-N`
settings, allowing the `N` number to contain either one or more digits.
Before this patch:
$ (echo '@fingers-pattern-0 "git rebase --(abort|continue)"'; echo '@fingers-pattern-1 "yolo"'; echo '@fingers-pattern-50 "whatever"') | grep '^@fingers-pattern' | sed 's/^@fingers-pattern-[0-9] "\(.*\)"$/(\1)/'
(git rebase --(abort|continue))
(yolo)
@fingers-pattern-50 "whatever"
After this patch:
$ (echo '@fingers-pattern-0 "git rebase --(abort|continue)"'; echo '@fingers-pattern-1 "yolo"'; echo '@fingers-pattern-50 "whatever"') | sed -n 's/^@fingers-pattern-[0-9]\{1,\} "\(.*\)"$/(\1)/p'
(git rebase --(abort|continue))
(yolo)
(whatever)