-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add view option to open(), change handling of height option (#38)
* feat(winrestore): add options to restore quickfix height and view * fix: prevent scroll jump when opening quickfix The issue occurs if: - cursor position is not at the top - focus=true - opened quickfix win is large enough to change the scroll position * feat(winrestore): add option to enforce min/max height * docs(winrestore): add description to README * Revert winrestore * refactor: set quickfix height using :copen <count> * refactor: increase max_height from 10 to 16 for quicker.open * fix: make opts.open_cmd_mods non-optional in quicker.open, quicker.toggle * feat: add optional 'view' argument to quicker.open, quicker.toggle * docs: mention min_height, max_height overriding in README.md * docs: describe 'view' argument for quicker.open, quicker.toggle in README.md * docs: update min/max_height defaults for quicker.open, quicker.toggle * refactor: make empty table check more explicit * refactor: remove height setting in favor of :copen <count> * refactor: remove unused util.is_full_height_vsplit * fix: resolve type mismatch when setting opts.view = vim.fn.winsaveview() --------- Co-authored-by: Steven Arcangeli <[email protected]>
- Loading branch information
1 parent
ceff21e
commit b9b7eec
Showing
3 changed files
with
50 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters