cocopon / vaffle.vim

:file_folder: Lightweight, window-based file manager for Vim
MIT License
284 stars 20 forks source link

Feature: Support floating windows #42

Closed mintelm closed 3 years ago

mintelm commented 4 years ago

Hi,

is there a way to open the vaffle buffer in a floating window?

I'd expect to make a configuration for example like this: let g:vaffle_layout = { 'window': { 'width': 0.9, 'height': 0.6, 'highlight': 'Debug' } }

suliveevil commented 4 years ago

https://github.com/liuchengxu/vim-which-key

This is a good example to use popup menu.

If Vaffle could also have this “step by step” and Backspace to go back feature, that would be even nicer!

cocopon commented 4 years ago

Interesting, but it seems to be difficult to run Vaffle inside Vim popup window because it cannot get keyboard focus. https://vimhelp.org/popup.txt.html#popup-intro

suliveevil commented 4 years ago

I’m just begin using vim-which-key. If we can make those “open file/folder” as a function, then we define a function to a shortcut, we will be able use which-key as vaffle’s UI😝

cocopon commented 4 years ago

I still cannot imagine vim-which-key integration, but if you want to discuss this feature, please create a new issue (because it seems to be not directly related to this issue).

suliveevil commented 4 years ago

It’s out of the topic,I will stop here😂