Commit Graph

73 Commits

Author SHA1 Message Date
Carlos Hernandez
3c2dea3ea5 feat: Add built-in to search keymaps (#191)
* Add built-in to search keymaps

* Re-factor maps for cleaner codes

Rather than use function to return a results table for various key maps.
Assign results the key maps table itself. This makes for cleaner code.

* Keymaps: escape termcodes using built-in util

* Rename builtin.maps to builtin.keymaps
2020-11-14 14:38:21 -05:00
Anirudh Haritas Murali
24057365da Fix git files in non-git directories (#239)
0 is not a false value in Lua. Compare to 1 to check if it is a git
	directory. Fixed error syntax.
2020-11-13 15:20:52 -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
tami5
64aae0abd8 feat: Add c-v, c-x, c-t to help_tags (#229) 2020-11-13 10:14:40 -05:00
Senghan Bright
051aefdb8c feat: v1 options menu (#133)
Still has a bunch of improvements that can be done, but wanted to merge in some of the related changes.

* options parser

* wip: vimoptions finder

* feat: pre-populate ex-command line with `:set foo=`

* use options current value when populating command line

* fix: use result.raw_value to store original option value

* .

* options: Continue work on option finder

* [WIP]: Tue 27 Oct 2020 10:34:09 PM EDT

* [WIP]: Mon 02 Nov 2020 08:20:13 PM EST

* [WIP]: Mon 02 Nov 2020 09:04:23 PM EST

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-11-02 21:05:10 -05:00
Simon Hauser
78cf7ebd7f Fix find_command for find_files when using find executable (#199)
Closes: #193
2020-10-28 03:55:49 -04:00
Simon Zeng
59ef37ded4 Add telescopes provider (#168)
Amendment: replace the old `builtin`
2020-10-24 23:00:22 -04:00
TJ DeVries
f95fe484f7 feat: Add ability to configure default sorters 2020-10-19 22:46:36 -04:00
Malcolm Ramsay
4cfab37541 Ensure git_files uses the git root directory as cwd (#180)
* fix: Ensure git_files uses the git root directory as cwd

This sets the cwd option of the git_files builtin to use the root of the
git directory when the cwd option doesn't already exist. When git lists
files, it is relative to the root of the git directory, rather than the
current working directory. This caused problems when using git_files in
a subdirectory of the git root (see #174).

This commit fixes the issue by always setting the cwd as the root of the
git directory.

* ref: Use neovim's system caller for command

This removes the need for an additional lua function to extract the shell
response, making use of inbuilt vim functionality.
2020-10-19 14:06:51 -04:00
Alvaro Muñoz
d493a76058 refactor: prompt->prompt_title (#169)
* refactor: prompt->prompt_title ; prompt_prefix->prompt_text

* undo prompt_prefix rename

* undo prompt_prefix rename
2020-10-17 17:26:14 -04:00
TJ DeVries
5a7a3147a4 fix: Use entry maker for marks 2020-10-15 22:30:08 -04:00
Raphael
18a91f2714 Add Colorscheme and Marks Support and Telescope Commands (#167)
* Add Telescope Commands

* Add Colorscheme support

* Add Command for coloscehme

* add marks support

* rename commad
2020-10-12 09:38:34 -04:00
TJ DeVries
376959e7df fix: #125 2020-10-08 22:56:51 -04:00
TJ DeVries
59497d6640 feat: Do a bit better sorting for command history
To be honest, I'm not 100% sure this is fantastic, but it's definitely a
step in the right direction for command history.

Closes: #150
2020-10-08 22:31:44 -04:00
Norlock
919b8f2a9d fix: Changed git command to show all files inside project (#129) 2020-10-07 17:03:30 -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
Nolan Prochnau
caf370cc37 feat: Add find command support (#145) 2020-10-05 21:57:48 -04:00
Senghan Bright
054bd34498 feat: builtin - lua package reloader (#132) 2020-10-04 09:08:05 -04:00
TJ DeVries
ae7fd0d27a feat: Add status, better debug, and some associated refactors
* [WIP]: Mon 28 Sep 2020 01:08:24 PM EDT

* add much much better tracking. so much less hax

* status updates, oneshot job updates, etc.

* remove temp function

* add status function

* asdfasdfasdf
2020-09-29 22:52:38 -04:00
TJ DeVries
c58779144f fix: #105
Warn users if they have `report` set to a bad value

In the future, we could try and change it and put it back, but that
feels a bit bad. If anyone can tell me WHY you would want this, then we
can do it.
2020-09-25 10:29:17 -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
e43efc389e fix: Don't pass anything if word match is empty 2020-09-22 12:50:03 -04:00
TJ DeVries
025485fa1f wip: Add ability to search for word match w/ rg 2020-09-22 09:58:08 -04:00
TJ DeVries
9f863d40bd fix: Add timeout param to all buf_requests and move to 10 seconds 2020-09-18 10:02:15 -04:00
TJ DeVries
492b4f1e95 fix: add timeout param 2020-09-18 09:59:46 -04:00
TJ DeVries
d891ba4f2e feat: add some tests and improve perf 2020-09-18 00:11:22 -04:00
TJ DeVries
a9d9b3d8bf feat: Improved previewers and cleanup 2020-09-17 12:34:42 -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
Christian Clason
1ef43e001b Add sorter to live_grep (#61) 2020-09-16 18:10:20 -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
TimUntersberger
93e683f0e7 feat: add builtin.lsp_code_actions (#77)
* fix: use correct path separator on windows

* fix: add utils.get_separator

* asdf

* feat: add builtin.commands

* change commands sorter

* change sorter

* change sorter

* feat: make it possible to specify the find_command for find_files

* temp

* feat: add find_command option for find_files

* wip

* fix: execute code action
2020-09-16 12:31:16 -04:00
TimUntersberger
0a734ae49d feat: add find_command option for find_files (#73) 2020-09-13 18:13:46 -04:00
Corentin Brunel
3d423a3b59 feat: Add support for ripgrep in "find_files" builtin (#70)
* feat: Add support for ripgrep in "find_files" builtin

* docs: Add mention about "ripgrep" for find_files builtin
2020-09-12 23:52:24 -04:00
Simon Hauser
4852d027d0 feat: Adds shorten_path, show_all_buffers opts and fixes alignment (buffers builtin) (#32) 2020-09-12 17:07:37 -04:00
TimUntersberger
3a9b25e6bf feat: builtin.commands (#54)
* fix: use correct path separator on windows

* fix: add utils.get_separator

* asdf

* feat: add builtin.commands

* change commands sorter

* change sorter

* change sorter
2020-09-12 17:02:10 -04:00
TJ DeVries
58ab225dca fix: Pass cwd down correctly for find files 2020-09-12 13:47:15 -04:00
Dave Lage
8beb8c876b Merge pull request #59 from clason/patch-1
Restrict builtin find_files to files
2020-09-11 18:13:41 -04:00
TJ DeVries
f47f1dc037 feat: make buffer work much better 2020-09-11 15:28:32 -04:00
Christian Clason
8d8368a641 Restrict find_files to files 2020-09-11 14:57:13 +02:00
TJ DeVries
769f5934f0 feat: add current file fuzzy finder 2020-09-11 00:14:40 -04:00
TJ DeVries
969e49c577 builtin.fd -> builtin.find_files 2020-09-10 11:16:10 -04:00
TJ DeVries
e1ded1a01d Allow easily changing grep arguments 2020-09-10 11:11:17 -04:00
TJ DeVries
b0faec6dd9 temp: limit requests for live grep 2020-09-08 23:29:29 -04:00
TJ DeVries
11a3c70609 Begin work on larger global config, to tailor defaults 2020-09-07 00:20:08 -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
TJ DeVries
0185d9b6b0 fix: err msg 2020-09-05 23:34:52 -04:00
TJ DeVries
639497ae6d feat: version check 2020-09-05 15:15:15 -04:00
TJ DeVries
c70d6e58a0 feat: add buffer list (#30)
NOTE: Buffer entry sometimes uses unstyled window, and I can't figure out why.

* feat: add buffers

* fixup
2020-09-05 07:34:38 -04:00
TJ DeVries
a6c883ce36 breaking: change attach_mappings to take bufnr as first argument 2020-09-04 11:01:10 -04:00