Skip to content

Conversation

@lambdalisue
Copy link
Owner

@lambdalisue lambdalisue commented May 1, 2021

To help usage explained in #309

  • 💥 Behavior changed. Fern restore the previous drawer width on the BufEnter autocmd to fix Suggestion to not auto-resize Fern if it's already toggled open and you resized it manually #309
    • It's more natural to restore the previous width rather than the original one
    • Users can use <Plug>(fern-action-zoom:reset) action to mimic previous behavior if they desire
  • 💥 Behavior changed. The zoom action opens a prompt to ask a desired width ratio or respects v:count
    • For example, users can use 8z to make the drawer width 80% of the Vim window
    • Users can map <Plug>(fern-action-zoom:half) or <Plug>(fern-action-zoom:full) to z to get back the previous mapping
  • ✨ Feature added: The zoom:reset action is added to easily get back to the original width of the drawer

In the video below, I use the following mappings (and those mappings are defined as default mappings)

  • z is mapped to <Plug>(fern-action-zoom)
  • Z is mapped to <Plug>(fern-action-zoom:reset)
Kapture.2021-05-01.at.12.34.57.mp4

- The 'zoom' action ask users for the desired ratio or use v:count
- The 'zoom:reset' action is used to get the original width back

Now user can use "7z" to get 70% width drawer and "Z" to get back.

This is mainly for helping a usage explained in a feature request #309
#309
Repository owner deleted a comment from github-actions bot May 1, 2021
Repository owner deleted a comment from github-actions bot May 1, 2021
@lambdalisue lambdalisue added the enhancement New feature or request label May 1, 2021
@lambdalisue lambdalisue merged commit 5409f2e into master May 2, 2021
@lambdalisue lambdalisue deleted the improve-zoom branch May 2, 2021 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggestion to not auto-resize Fern if it's already toggled open and you resized it manually

2 participants