fcsonline / tmux-thumbs

A lightning fast version of tmux-fingers written in Rust, copy/pasting tmux like vimium/vimperator
MIT License
918 stars 61 forks source link

Bug: Ignore matches in long lines #138

Open hgigas opened 1 year ago

hgigas commented 1 year ago

For example:

$ find /usr/bin | tr '\n' ' '
/usr/bin /usr/bin/mariadb-admin /usr/bin/stat /usr/bin/grub-kbdcomp /usr/bin/php /usr/bin/top /usr/bin/infocmp /usr/bin/gtk-query-settings /usr/bin/desktop-file-validate /usr/bin/deb-systemd-helper /usr/bin/ctr /usr/bin/pod2html /usr/bin/runcon /usr/bin/identify /usr/bin/gegl /usr/bin/g++ /usr/bin/sccmap /usr/bin/pbmtolj /usr/bin/oshfort /usr/bin/pgmtoppm /usr/bin/xload /usr/bin/file-roller /usr/bin/clang-move-11 /usr/bin/gvmap.sh /usr/bin/hp-probe /usr/bin/mtr /usr/bin/pdb3 /usr/bin/ptked /usr/bin/clang-11 /usr/bin/dot /usr/bin/gprof /usr/bin/psresize /usr/bin/chmod /usr/bin/dpkg-divert /usr/bin/portablectl /usr/bin/pbmtopi3 /usr/bin/machinectl /usr/bin/llvm-cxxfilt-11 /usr/bin/pbmtonokia /usr/bin/hp-doctor /usr/bin/dvilj6 /usr/bin/cvtsudoers /usr/bin/from /usr/bin/sxw2odt /usr/bin/gslp /usr/bin/doc2pdf /usr/bin/pbmtobbnbg /usr/bin/xscreensaver-demo /usr/bin/pnmtofits /usr/bin/latex2man /usr/bin/ppmrainbow /usr/bin/tkpasswd /usr/bin/pnmtops /usr/bin/msgcat /usr/bin/nmtui /usr/bin/ps2epsi /usr/bin/llvm-mca /usr/bin/Xephyr /usr/bin/GET /usr/bin/pooltype /usr/bin/tzselect /usr/bin/mysqlslap /usr/bin/cd-create-profile /usr/bin/mountpoint /usr/bin/dh_installinitramfs /usr/bin/luac5.4 /usr/bin/dh_usrlocal /usr/bin/rview /usr/bin/urxvtd /usr/bin/x86_64-linux-gnu-gcov-dump /usr/bin/neqn /usr/bin/chfn ...

then call tmux-thumbs. Only matches few items (first items).

fcsonline commented 1 year ago

Few days ago, we merged some changes to support long lines. Can you double check that you have the latest code?

https://github.com/fcsonline/tmux-thumbs/commit/b719e1fb46f140c633ee195ebbd5159b96aedf76

hgigas commented 1 year ago

Yes, I have the latest code ae91d5f. You can see for yourself with the example I included.

$ thumbs --version
thumbs 0.8.0
$ tmux-thumbs --version
tmux-thumbs 0.8.0

Several issues with long lines. With small width for example:

several lines overlaps.

fcsonline commented 1 year ago

I think you are facing another problem, not related to the length of the line and it is already known:

https://github.com/fcsonline/tmux-thumbs/issues/76

https://github.com/fcsonline/tmux-thumbs/issues/129

hgigas commented 1 year ago

Fixed some issues with long lines #139