tmux-plugins / tmux-copycat

A plugin that enhances tmux search
MIT License
1.11k stars 63 forks source link

Git status - Long file names are not detected properly #124

Open dylan-chong opened 6 years ago

dylan-chong commented 6 years ago

How to replicate:

Make your terminal less wide, for exampled by opening a horizontal split

Then run:

git clone https://github.com/dylan-chong/long-filename-test
cd long-filename-test
git reset head~
git status

Now press <prefix><c-g>.

You should get something that looks like a screenshot below:

In the screenshot below, the last long file is not selected because it goes across multiple lines.

screen shot 2017-12-23 at 8 39 27 pm


This bug is quite annoying because i have files which are in very deeply nested directories, which causes the filename in git status to flow across to the second line.

bruno- commented 6 years ago

I confirm this is a bug. I remember I tried solving it when this plugin was initially developed but I was unable to find a proper solution. I'd be ok to add this to the known limitations page https://github.com/tmux-plugins/tmux-copycat/blob/master/docs/limitations.md