coc-fzf icon indicating copy to clipboard operation
coc-fzf copied to clipboard

support resume last search state in :CocFzfListResume command

Open shunlir opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe. CocFzfListResume does list all the results from the source, but it doesn't keep the fuzzy search key, nor which line was selected.

Describe the solution you'd like Just have a look at:CocListResume which does keep the last search window AS IS.

Is it possible to add this support? (seems CocFzfListResume doesn't support it for now?)

shunlir avatar Nov 22 '20 07:11 shunlir

@shunlir , thanks for this request.

The "which line was selected" part is not doable. I tried it with previous implementations of services or extensions... The issue is that the vim script needs to fake arrow key presses : not working well.

The "which pattern was used" part might however be doable. Would you be interested in this despite of being sent back the first line of that search?

antoinemadec avatar Nov 23 '20 11:11 antoinemadec

@antoinemadec Thanks for you response. I'm not sure whether I understand correctly, what I'm wanting is like below screen shot after resuming:

  1. the search word fix is preserved
  2. the select state is preserved I think it's fine if line 3021 is send back as first line if it's selected (I also observe this behavior in another VIM plugin(LeaderF))

image

shunlir avatar Nov 23 '20 12:11 shunlir

2 Is not doable Is that ok ?

antoinemadec avatar Nov 23 '20 17:11 antoinemadec

@antoinemadec the first is very helpful for my workflow.

Thanks.

shunlir avatar Nov 30 '20 13:11 shunlir