You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
:CtrlPMRU now erroneously shows the current buffer. #88
I didn't try to extensively reproduce this. I just noticed it after installing, so let me know if it's not easy to reproduce. I had to disable the plugin to fix.
:CrtlPMRU is supposed to automatically place your cursor on the previously opened buffer. Now it starts you on the current buffer, which you would obviously never need to switch to.
after a lot of digging I found the key issue inside s:MatchIt because I am sending the items with an extra glyph/icon but the current item (a:exc) here does NOT have the glyph so the match is failing causing the item to be added to the list when it shouldn't be.
This all relates to how I am actually modifying s:mrufs instead of modifying the s:formatline() method and the change would require overwriting a ton more CtrlP functions 😢
So I think what is going to happen is eventually I am going to drop support of Kien's original repo and only support the ctrlpvim active fork CtrlP because I could submit a PR to make this a lot easier
I use kien's but until you mentioned it, I didn't know there was another one that was being actively maintained. Now I suppose I'll just switch to that one!
@liuxyc Sorry about that. Yes well I have a proposal for a solution (ctrlpvim/ctrlp.vim#267) but waiting for a response and then I would submit a PR to ctrlp that would add support for logic on vimdevicons side to complete the fix
Activity
ryanoasis commentedon Aug 3, 2015
@washtubs thanks and I will look into it. Sorry about that!
Just FYI if you want you can disable just the ctrlp integration until this is fixed with:
ryanoasis commentedon Aug 7, 2015
after a lot of digging I found the key issue inside
s:MatchItbecause I am sending the items with an extra glyph/icon but the current item (a:exc) here does NOT have the glyph so the match is failing causing the item to be added to the list when it shouldn't be.This all relates to how I am actually modifying
s:mrufsinstead of modifying thes:formatline()method and the change would require overwriting a ton more CtrlP functions 😢So I think what is going to happen is eventually I am going to drop support of Kien's original repo and only support the ctrlpvim active fork CtrlP because I could submit a PR to make this a lot easier
Which one do you use by the way?
washtubs commentedon Aug 8, 2015
I use kien's but until you mentioned it, I didn't know there was another one that was being actively maintained. Now I suppose I'll just switch to that one!
ryanoasis commentedon Aug 8, 2015
😄
ryanoasis commentedon Nov 20, 2015
Sorry for the late follow up. @washtubs is this still an issues?
If you use pull the latest https://github.com/ctrlpvim/ctrlp.vim it should be fixed since my PR.
I will test this out tomorrow. Cheers.
ryanoasis commentedon Nov 21, 2015
Actually, sorry this still looks to be an issue 😢
ryanoasis commentedon May 27, 2016
This is actually a very annoying UX , so I am going to try to work on it next after a few other ones are completed
liuxyc commentedon Jul 15, 2016
this bug really prevent me using vim-devicons...... hope get fixed soon
ryanoasis commentedon Jul 15, 2016
@liuxyc Sorry about that. Yes well I have a proposal for a solution (ctrlpvim/ctrlp.vim#267) but waiting for a response and then I would submit a PR to ctrlp that would add support for logic on vimdevicons side to complete the fix
ryanoasis commentedon Jul 28, 2016
The support needed in ctrlp has now been merged 🎉 . The vimdevicons portion will be added in the next release (v0.9.0)
ryanoasis commentedon Sep 23, 2016
Wow has it been this long? 😊 I will try to get this up this weekend. Thanks!