Commit Graph

44 Commits

Author SHA1 Message Date
Nolan Prochnau
8eecc9c9dc Manually search through tags
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.
2020-11-15 13:26:30 -05:00
Nolan Prochnau
1495cbec5a Have plugin tags previewed
Still doesn't update for multiple files, but the first file in the
taglist is shown, so that's a start?
2020-11-15 10:54:33 -05:00
Simon Hauser
76e7fe8cb0 fix: Multiple Previewer fixes (#225)
Fixes previews for files beginning with ~/
Previewer will now show directories
Fix if clause with vim.fn.executable
2020-11-13 15:07:12 -05:00
Simon Hauser
d8befe2437 Cat will no longer display binary files (#224) 2020-11-05 19:53:57 -05:00
Spencer Gilbert
87d99bd4d7 feat: Get BAT_THEME var from environment (#200)
Closes: #196
2020-10-28 03:53:08 -04:00
Christian Clason
1e02a0a9cd fix: Clason is a miracle worker (#172)
Adds the `-R` flag to `less` for the other code path as well, which is called for `grep` and `workspace_symbols`.
2020-10-10 14:37:20 -04:00
TJ DeVries
6267ead134 fix: Use R for less so it's not bad 2020-10-09 17:34:26 -04:00
TJ DeVries
fe63e4f1de fix: Add 'use_less' config value 2020-10-09 00:00:57 -04:00
TJ DeVries
fa17b37dad fix: Do not wrap lines and allow scrolling in ranged options 2020-10-08 21:07:25 -04:00
Senghan Bright
c337911b79 Fix help preview and add highlighting to search result (#124)
* 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>
2020-10-07 17:00:59 -04:00
Senghan Bright
a7957b2bdc feat: Manpages finder (output of apropos) (#134)
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>
2020-10-07 16:01:47 -04:00
Kamal Marhubi
ce66c1f78c fix: Pass --paging=always to bat (#142)
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.
2020-10-04 09:04:50 -04:00
Senghan Bright
c3f9b25606 feature: Vim help-tags picker (#117)
* 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>
2020-09-25 00:16:48 -04:00
TJ DeVries
a38bb06e7d wip: Add some stuff for nvim_file 2020-09-24 23:23:03 -04:00
Fahad RIaz
7015596711 fix: adding a nil check to self.state when the window is too narrow for a preview (#110) 2020-09-23 00:19:14 -04:00
TJ DeVries
a9d9b3d8bf feat: Improved previewers and cleanup 2020-09-17 12:34:42 -04:00
Corentin Brunel
17ee4a96ff fix: Add nil checks for state when preview hasn't been initialized yet (#92) 2020-09-17 08:15:48 -04:00
TJ DeVries
1865815687 feat: Easy Termopen for Previewer (#88)
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
2020-09-16 18:20:14 -04:00
Oleg Matrokhin
9766a5bec8 fix: use double dash to fix special filenames (#87)
Co-authored-by: Oleg Matrokhin <o.matrohin@softpro.com>
2020-09-16 17:09:12 -04:00
haorenW1025
7d1a8292b6 feat: add scrolling in preview window (#47)
* 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
2020-09-16 12:20:45 -04:00
TJ DeVries
c73eb1c0d8 nit: Always set a state 2020-09-11 23:57:55 -04:00
TJ DeVries
f47f1dc037 feat: make buffer work much better 2020-09-11 15:28:32 -04:00
TJ DeVries
fe7dec6339 fix: don't accidentally mess with state 2020-09-09 00:18:43 -04:00
TJ DeVries
c70bbf804c fix: set some opts for bat 2020-09-07 11:11:00 -04:00
TJ DeVries
dffcef9470 fix: Close termopen jobs when done
TODO: Still need to fix the rest of em. And I see lots of repeated
code... we will need to fix that.

Also adjusted some bat options.
2020-09-07 10:47:11 -04:00
smolck
2592586533 View the planets (#12)
* 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>
2020-09-06 23:07:51 -04:00
Brian Ryall
b065423013 added treesitter builtin (#31)
* added treesitter builtim

* fixed treesitter pr comments

* fix the buffer previewer to keep lnum visable
2020-09-06 22:48:36 -04:00
Subeet Kumar Dutta
d3c9b65252 added preview for files which spaces in names. (#35)
TODO: Still need to do better escaping.
2020-09-05 15:49:01 -04:00
TJ DeVries
14310ee6b1 fix: Don't push past midnight. You'll make clason's stuff break :/ 2020-09-04 09:49:10 -04:00
TJ DeVries
839f57efb3 feat: Major improvements in API. Particularly relating to entries. 2020-09-03 23:56:49 -04:00
TJ DeVries
061307233c feat: add some new items and make mappings easier 2020-09-02 00:06:07 -04:00
TJ DeVries
39096492ab feat/hack: Add builtin.builtin 2020-09-01 22:27:50 -04:00
TJ DeVries
4ac50c68ca wip: new sorters 2020-09-01 20:51:41 -04:00
TJ DeVries
51ed9c3e98 Add some WIP stuff 2020-08-31 22:23:12 -04:00
TJ DeVries
6b066cf9e8 feat: Add better mapping support 2020-08-31 00:06:53 -04:00
TJ DeVries
f2fcdcb675 feat: borders and no previews for rocker 2020-08-28 00:19:10 -04:00
TJ DeVries
4100795d0c slightly better small screen UX 2020-08-27 22:55:44 -04:00
TJ DeVries
7e9f38a87e feat: Add livegrep and lsp referecnes 2020-08-27 22:12:47 -04:00
TJ DeVries
1995ca53f3 Add fuzzy git file finderZ 2020-08-24 12:31:57 -04:00
TJ DeVries
cfddae42f5 WIP: Actually get the UI to work and add some tests 2020-08-20 23:41:53 -04:00
TJ DeVries
96cac0a8c8 Work on ngram sorter 2020-08-03 20:40:04 -04:00
TJ DeVries
fa0382d93e Streamed some refactoring. More work to do 2020-07-31 00:05:22 -04:00
TJ DeVries
ababfbfd88 Another stream 2020-07-17 00:03:20 -04:00
TJ DeVries
c6f0142fc6 Get simple rg example to work 2020-07-15 17:53:30 -04:00