Change behavior of "auto resize" and improve "zoom" related actions #333
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To help usage explained in #309
BufEnterautocmd to fix Suggestion to not auto-resize Fern if it's already toggled open and you resized it manually #309<Plug>(fern-action-zoom:reset)action to mimic previous behavior if they desirezoomaction opens a prompt to ask a desired width ratio or respectsv:count8zto make the drawer width 80% of the Vim window<Plug>(fern-action-zoom:half)or<Plug>(fern-action-zoom:full)tozto get back the previous mappingzoom:resetaction is added to easily get back to the original width of the drawerIn the video below, I use the following mappings (and those mappings are defined as default mappings)
zis mapped to<Plug>(fern-action-zoom)Zis mapped to<Plug>(fern-action-zoom:reset)Kapture.2021-05-01.at.12.34.57.mp4