Commit Graph

33 Commits

Author SHA1 Message Date
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