Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve hover popup behavior #403

Merged
merged 4 commits into from
Mar 28, 2022

Conversation

hrsh7th
Copy link
Contributor

@hrsh7th hrsh7th commented Mar 16, 2022

This PR aims to improve the hover popup feature.

  1. Support neovim
  2. Support directory coloring
  3. Support debounce

in neovim

Kapture.2022-03-16.at.16.13.40.mp4

in vim

Kapture.2022-03-16.at.16.18.30.mp4

autoload/fern/internal/drawer/hover_popup.vim Outdated Show resolved Hide resolved
autoload/fern/internal/drawer/hover_popup.vim Show resolved Hide resolved
autoload/fern/internal/drawer/hover_popup.vim Show resolved Hide resolved
autoload/fern/internal/drawer/hover_popup.vim Outdated Show resolved Hide resolved
autoload/fern/internal/drawer/hover_popup.vim Outdated Show resolved Hide resolved
autoload/fern/internal/drawer/hover_popup.vim Show resolved Hide resolved
autoload/fern/internal/drawer/hover_popup.vim Outdated Show resolved Hide resolved
@hrsh7th hrsh7th force-pushed the improve-hover-popup branch from db08b81 to 6011da3 Compare March 23, 2022 03:52
@lambdalisue
Copy link
Owner

@hrsh7th Please re-request review when the PR is ready to review.

@hrsh7th hrsh7th requested a review from lambdalisue March 26, 2022 12:13
Copy link
Owner

@lambdalisue lambdalisue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


function! s:debounced_show() abort
call s:hide()
let s:show_timer = timer_start(g:fern#drawer_hover_popup_delay, { -> s:show(fern#helper#new()) })
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE:

Initialization of the helper instance will be changed in the next commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants