tomtom/tlib_vim

Keep last filter / remember list of filters (tmru)

Opened this issue · 1 comments

When invoking tmru I would like to either have the last filter set initially (optionally, via some config), or an easy method to get to previously used filters.

This would allow for easily going back to a particular filter state after having selected an item.

With the head version of tlib_vim @ github you should be able to add these lines to ~/.vim/after/plugin/tmru.vim to get the behaviour you want:

let g:tmru_world.cache_var = 'g:tmru_cache'
let g:tmru_world.restore_from_cache = ['filter']

I'd appreciate if you could test this. I'm not sure it works well with all the other modes/states/ways to enter/exit the list view.