Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Last match!" message when doing searches #105

Open
yangmillstheory opened this issue Jan 14, 2017 · 14 comments
Open

"Last match!" message when doing searches #105

yangmillstheory opened this issue Jan 14, 2017 · 14 comments

Comments

@yangmillstheory
Copy link

yangmillstheory commented Jan 14, 2017

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!

@ghost
Copy link

ghost commented Jan 15, 2017

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.

@odedlaz
Copy link

odedlaz commented Jan 21, 2017

same issue here!

@jsedgwick
Copy link

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

@yangmillstheory
Copy link
Author

Still broken for me.

@svenXY
Copy link

svenXY commented May 12, 2017

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

@sheinz
Copy link

sheinz commented May 29, 2017

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.

@mavam
Copy link

mavam commented May 29, 2017

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

@maiermic
Copy link

I have the same issue using tmux 2.1

@thalesmello
Copy link
Contributor

thalesmello commented Apr 28, 2018 via email

@maiermic
Copy link

@thalesmello Thanks, works with tmux 2.7 👍

@codingforpleasure
Copy link

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

@tag730
Copy link

tag730 commented Aug 16, 2018

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!

@wallace11
Copy link

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.

@GHPS
Copy link

GHPS commented Mar 26, 2019

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests