neilagabriel / vim-geeknote

Vim plugin for Geeknote
233 stars 16 forks source link

Note listing window resizes regardless of what the note content window will be. #21

Closed Geiren closed 9 years ago

Geiren commented 9 years ago

Leaving no space for content window, if it opens a notebook with a note with a very long name.

neilagabriel commented 9 years ago

From the README:


By default, vim-geeknote will attempt to resize the navigation window based on its current content. If you have notebooks or notes with very long names you may want to use the following option to cap the size of the window:

let g:GeeknoteMaxExplorerWidth=<value>

The only other thing I could do would be to default this setting to some arbitrary limit, say 80 columns. Thoughts? I have some other ideas too, but I don't see how they would work out for all situations.

neilagabriel commented 9 years ago

I went ahead and set a default cap of 40 columns on the explorer window width. You can customize this default using the config variable above. See the README for more detail.

I'm going to close this issue but feel free to reopen it if the fix is not sufficient.

neilagabriel commented 9 years ago

And thanks by the way for testing and filing the bugs. They are helpful.

Geiren commented 9 years ago

Sorry i overlooked that in the readme file. It looks much better now, thanks.

neilagabriel commented 9 years ago

No worries. I should have set a reasonable default to begin with. Thanks again.

On Mon, Dec 15, 2014 at 9:42 AM, Geiren notifications@github.com wrote:

Sorry i overlooked that in the readme file. It looks much better now, thanks.

— Reply to this email directly or view it on GitHub https://github.com/neilagabriel/vim-geeknote/issues/21#issuecomment-67012823 .