Yilin-Yang / vim-markbar

Display all accessible marks and their surrounding lines in a collapsible sidebar.
MIT License
191 stars 3 forks source link

Feature request: Popup window with a list of markings without context? #22

Open lanza opened 4 years ago

lanza commented 4 years ago

I think a neat quick little view could be just a popup window at the cursor without the context for jumping to known targets. I use vim-ccls which used a sidebar implementation for a long time before getting a new popup version and I'm finding it (along with a few other examples) are just much easier to use.

Yilin-Yang commented 2 years ago

Hi, sorry for the delay. Reopening this issue; I'm open to working on this.

Yilin-Yang commented 2 years ago

I've been thinking about a design for this. Rather than a small pop-up window at the cursor, I'd like to add the option to show the whole markbar (or the peekaboo markbar) in a large floating window.

You could customize that to give roughly the behavior you describe. Assuming that you only wanted the popup window when pressing ', you could set g:markbar_peekaboo_open_position to "floating_window", set g:markbar_num_lines_context.peekaboo_around_local (etc.) to 0, and maybe edit g:markbar_peekaboo_mark_name_format_string and g:markbar_peekaboo_mark_name_arguments to be more compact. The only thing missing is that the floating window wouldn't be anchored to the cursor position.