- Set env vars for previewer with set_env({ key = value } fix#228)
- Set pager for git previewes (default is GIT_PAGER=less so users can scroll see #253)
- Use less for people who don't have bat but less installed
- Reset less env to only '-RS' because '-X' will break scrolling(fix#253, thanks @eth3lbert)
- Scrolling for buffer previewer(thanks @tami5 for helping)
- Also new function to create buffer previewers (which has scrolling by default). Used for tags and help_tags previewer.
- Add new setting set_env to readme
Probably slower, but the builtin `taglist()` only looks at the first
file in 'tags', not ideal for this application. This can probably be
cleaned up a little.
* fix: make sure that `$VIMRUNTIME/doc/tags` is in `tags` path
* feat: highlight matched topic in helptags preview
* fixup: Use previewer setup and teardown
Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
First edition. Sometimes weird things can happen with the previewer, but I think I got it 99% working.
* feat: Manpages finder (output of apropos)
* fixup: Add previewer and fix comments
Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
This gets rid of a slightly annoying difference between files that fit
in the preview pane and ones that don't: hitting the scroll-preview
mappings would complain about a closed stream. Always using the pager
ensures there's always a process at the other end, even if asking it
to scroll doesn't actually do anything.
* feature: Vim help-tags picker
* fix: filtered results were wrong because of missing `entry.value`
* fix: filtered (Vim only help) items are listed in results as empty
entries.
* fix: avoid search history pollution by replacing / in cmd returned by taglist() with search()
* fix: improve search() formatting
* fix: escape tilde in search() command
* fix: improve help-preview
* fix: improve search()
* fix: search() string fixes.
* fix: use no magic to do magic
Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
First pass, but seems to work. Fixed a few other related items, so pushing it to master now.
* [WIP]: Wed 16 Sep 2020 05:17:10 PM EDT
* [WIP]: Wed 16 Sep 2020 06:10:33 PM EDT
* [WIP]: Wed 16 Sep 2020 06:19:43 PM EDT
* feat: add scrolling in preview window
refactor into two layers
* remove redundant code
* add error message for scroll_fn and send_input
* consider count for preview scrolling
* add planets viewer builtin
* Remove print statement
* Don't use fzf & echo
* Add all planets as files and refactor accordingly
* Remove planets.lua
* add the moon
* example ofe how to do this without ls everywhere
* fix rebase and update to new style
Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>