tmux-copycat icon indicating copy to clipboard operation
tmux-copycat copied to clipboard

"Last match!" message when doing searches

Open yangmillstheory opened this issue 8 years ago • 14 comments

Hi,

I've been trying to debug this issue for a while now, hopefully you can help. When I try to run any of the saved searches, I keep getting the message "Last match!", and going into copy mode with no highlights. Here's an example when doing URL searches and file searches (I would expect there to be hits here):

jan-14-2017 15-24-04

The same thing happens for regular expression searches.

I don't know what's going on; I've tried this with a mostly empty .tmux.conf file, and also with bash instead of zsh, but nothing worked.

Here's my .tmux.conf. Can you spot anything that would break your plugin?

# remap prefix key
set -g prefix C-a
unbind C-b
bind C-a send-prefix

# splitting panes with | and -
bind | split-window -h
bind - split-window -v

# moving between panes with home row
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# quick window selection
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+

# quick pane resizing
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5

set -g default-terminal "screen-256color"

set -g display-time 1000
set -s escape-time 1
set -g base-index 1
set -g pane-base-index 1
setw -g monitor-activity on
set -g visual-activity on

# bind .tmux.conf reloading
bind r source-file ~/.tmux.conf; display "Reloaded!"

set -g mouse on
set -g default-command "reattach-to-user-namespace -l ${SHELL}"

set -g mode-keys vi

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @themepack 'double/yellow'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

Thanks!

yangmillstheory avatar Jan 14 '17 23:01 yangmillstheory

Having the exact same issue, I don't think it has anything to do with settings conflict since reducing .tmux.conf to just loading tpm and copycat doesn't seem to help.

ghost avatar Jan 15 '17 13:01 ghost

same issue here!

odedlaz avatar Jan 21 '17 22:01 odedlaz

Ping. Any word on this? Just installed the plugin and immediately hit this brick wall.

jsedgwick avatar Apr 27 '17 04:04 jsedgwick

Still broken for me.

yangmillstheory avatar Apr 27 '17 16:04 yangmillstheory

same here, also, in the upper-right corner, I see [0/0] when entering copy-mode

svenXY avatar May 12 '17 07:05 svenXY

Just installed the plugin and nothing seems to work :( I also see the message "Last match". I hope to find a solution as the plugin looks really useful on the screencast.

sheinz avatar May 29 '17 09:05 sheinz

All of these symptoms are probably related due to the tmux 2.4 release with breaking changes; see #109.

mavam avatar May 29 '17 15:05 mavam

I have the same issue using tmux 2.1

maiermic avatar Apr 28 '18 13:04 maiermic

Use tmux 2.3 or higher

On Sat, Apr 28, 2018, 10:35 Michael Maier [email protected] wrote:

I have the same issue using tmux 2.1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tmux-plugins/tmux-copycat/issues/105#issuecomment-385176343, or mute the thread https://github.com/notifications/unsubscribe-auth/ABEz4ocSBwX19R-vPd9gQs0-M7FRF2PSks5ttHAKgaJpZM4Ljxc2 .

thalesmello avatar Apr 28 '18 14:04 thalesmello

@thalesmello Thanks, works with tmux 2.7 :+1:

maiermic avatar Apr 28 '18 15:04 maiermic

I receive the same symptoms as described by others here

upper-right corner, I see [0/0] when entering copy-mode

it doesn't jump and mark to the corresponding line, and I'm using: tmux 2.7

codingforpleasure avatar Jul 03 '18 15:07 codingforpleasure

I seemingly experienced this issue with several versions of tmux. In actuality, I believe that I had a tmux-2.1 server running and even though I would use tmux-2.7 a to try to mitigate this issue, it wasn't resolved until I performed a tmux kill-server and then started a new session using tmux-2.7. It works like a dream now!

tag730 avatar Aug 16 '18 23:08 tag730

Confirmed to work with tmux next-2.9. Doesn't work at all with tmux 2.3 which is the default right now in Debian stable channel.

wallace11 avatar Oct 20 '18 17:10 wallace11

I can confirm copycat doesn't work in tmux 2.6-3 (the current version shipped/maintained with Kubuntu 18.04 LTS).

After downloading and building tmux from scratch (version 2.8 plus a number of commits, latest 5e2150cf185e89a1) I can say that the file name search (ctrl-f) works fine - but is limited use since it searches for displayed file names starting with "." which in linux is rarely the case (try using "find ." instead of "ls").

The regex search, however, works only once correctly. The second search uses the same search pattern as the first one - the newly entered search pattern is not updated.

Therefore the initial problem still exists even in the latest available version of tmux (and copycat).

GHPS avatar Mar 26 '19 11:03 GHPS