Commit Graph

235 Commits

Author SHA1 Message Date
Tom Praschan
b78d4ef10c Reset multi-selection in Picker:refresh() (#830)
If there's a new finder the multi selection is invalidated, so reset it
2021-05-15 12:54:53 -04:00
Luke Kershaw
c061c216bf fix: add check for nil win_id in Picker.close_windows (#831)
This probably fixes issues with nobuflisted buffers (startify, dashboard-nvim and probably more)
2021-05-09 22:17:39 +02:00
TJ DeVries
38765f68db fix: Fix things for conni 2021-04-28 10:38:24 -04:00
TJ DeVries
a28999574e feat: allow reset prompt to set text as well 2021-04-22 17:55:06 -04:00
TJ DeVries
d27907b0da fix: Default to an empty sorter, so we always have one 2021-04-16 11:11:40 -04:00
TJ DeVries
2e7ee55aa4 feat: Add more sorter hooks (#752)
* feat: Add more sorter hooks

* fix breaking conni brain
2021-04-15 09:24:10 -04:00
TJ DeVries
64e59060b1 feat: asyncify pickers - except for live_grep (#709)
* something kind of works already

* yayayayayayayayayayayayayayayayayayayayayayayayayayayayayayayayaya

* use async for everything besides live jobs

* fix: fixup autocmds previewer

* fix: lints for prime

* temp: Add example of how we can think about async sorters

* feat: Allow picker to decide when to cancel

* fix: simplify scoring logic and tests

* fixup: name

* fix: Move back towards more backwards compat methods

* fixup: Remove results from opts

* fixup: remove trailing quote

* fixup: Attempt to clean up some more async items. Next is status

* wip: Add todo for when bfredl implements extmarks over the EOL

* wip

* fixup: got em

* fixup: cleaning

* fixup: docs
2021-04-08 10:35:44 -04:00
Simon Hauser
aefc831735 fix: no longer leaking one buffer previewer in some occasions (#664)
* fix: stop leaking last preview buffer
* fix: formatting for docs
* fix: async check if file is dir or not and
  - fix for in_fast_event when overriding file_maker
* fix: filtering for space in keymaps and fzy
* fix: show correct result numbers when using file_ignore_patterns
* Handle early close. Caused because we actually cleaning up buffers now
* cleanup
* [docgen] Update doc/telescope.txt
2021-03-30 12:32:18 +02:00
TJ DeVries
add7ee3943 nit: Don't reset highlights on detach 2021-03-09 22:44:45 -05:00
Simon Hauser
e1c8ad5d78 fix: entry_prefix if selection_caret > entry_prefix (#572) 2021-02-28 10:54:44 +01:00
TJ DeVries
11674ac021 feat: multi selection. Only integrates with send_selected_to_qflist (#551)
This will not yet work with select actions. More work is needed in that case.

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-02-27 21:06:04 +01:00
Simon Hauser
ca92ec1a83 fix: a lot of small things and adds more customization for caret (#554)
Attention:
prompt_prefix will no longer add a space at the end. So if you still want a space at the end make sure your configuration has one.
The default should not be changed. So if you haven't copied prompt_prefix in your config this doesn't affect you.

Feat:
- prompt prefix does no longer always end with space
- selection_caret configurable. Default: `> `
- result_prefix configurable. Default: `  `
- more actions for git_branches
  - <c-t> does track the branch
  - <c-r> does rebase branch
  - also added delete branch action but not configured. See readme on how to do that

Fixes:
- fix docgen ci
- Better error for lsp_workspace_symbols
- better formatting for CONTRIBUTING.md
- move from systemlist to plenary.job
- git branch now supports checkout on remote branches
2021-02-27 16:26:25 +01:00
Simon Hauser
4dd35ef0e1 feat: file browser & refresh interface (#290)
and more picker api stuff for sunjon. refresh is implemented for file_browser and git_status
2021-02-23 22:10:19 +01:00
TJ DeVries
d7c02e3b52 feat: Action improvements (#472)
* feat: replace_map

* feat: Add action_set and action_state

* fix: Move all actions.get_ to action_state.get_

* fix: replace all internal references of _goto_file_selection_edit

* feat: add some docs

* fix: lint

* feat: actions.select

* remove mentions and usage of goto_file_selection APIs

* feat: special case attach_mappings to be overridable and defaultable

* Having goto_file_selection mappings will cause a error

as well as replacing deprecated goto_file_selection methodes

For config and replacing use this instead:
- actions.select_default
- actions.select_horizonal
- actions.select_vertical
- actions.select_tab

Only replacing:
- actions.set.edit -- for replacing all select functions

* adds actions.state.select_key_to_edit_key

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-02-22 11:30:57 -05:00
Simon Hauser
3a7fa41857 fix: all git builtin respect cwd now (#517) 2021-02-09 18:25:57 +01:00
TJ DeVries
5f1d16acf6 nit: Abstract some functions (#498) 2021-02-04 20:56:05 -05:00
Raphael
779704bf26 Add user autocmd TelescopeFindPre (#491)
* Add user autocmd Telescope

* change name to TelescopeFindPre

* update Readme for Telescope user autocmds
2021-02-02 23:23:28 -05:00
Senghan Bright
9d4670c748 feat: allow a callback to be called on on_lines update (for filtering tags from query text) (#455)
* allow a callback to be called on on_lines update

* .

* remove unused _filter_marker var

* nit: Move to table and implement 'close'

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2021-01-28 16:39:05 -05:00
Alvaro Muñoz
951ede2a70 fix: allow previewer win customization (#460) 2021-01-24 23:53:58 +01:00
wordhou
7e241aa0a4 feat: Add option to set initial_mode (#442) 2021-01-17 23:09:23 -05:00
TJ DeVries
8783bea06e feat: quickfix (#293)
* feat: quickfix (not implemented)

* [WIP]: Wed 09 Dec 2020 11:11:30 PM EST

* somewhat working linked list impl

* getting closer

* might be working

* might be working for real

* works and implemented basic example

* dont forget to close prompt

* fix descending and add more tests

* test fixes

* fix test

* more logging

* Fix some more tests

* Fix logging messing up tests

* fix: lint

* fix: multi select stuffs
2021-01-11 13:29:37 -05:00
oberblastmeister
f750159203 feat: add actions.get_current_line (#391) 2021-01-05 08:50:44 +01:00
TJ DeVries
2aa8bcb878 feat: Add better highlighting and new CI abilities (#355)
* Revert "Revert "fix: Better highlights (#344)" (#350)"

This reverts commit 7950fc8ba0.

* better highlights take 2

* fixup

* install fd find for sameness

* add some debug output

* more deterministic

* better ci
2020-12-21 16:03:48 -05:00
Senghan Bright
7950fc8ba0 Revert "fix: Better highlights (#344)" (#350)
This reverts commit eca83f214a.
2020-12-18 23:44:58 +01:00
TJ DeVries
eca83f214a fix: Better highlights (#344)
* scratch: easy reproduce for buffers

* fix: Many highlight fixes
2020-12-18 23:42:51 +01:00
Senghan Bright
28abd7fb53 fix results count padding (#348) 2020-12-18 20:43:59 +01:00
Simon Hauser
6e6fbbc49e Fix: scroller for descending (#327) 2020-12-11 16:48:14 +01:00
TJ DeVries
f3609abd7f refactor: Move scroller into own testable module 2020-12-10 23:31:28 -05:00
TJ DeVries
b74c4b3efd Revert "fix: cycle scroll when num_results is small (#316)"
I didn't test this cause I'm noob. It's my fault not tami's

This reverts commit d9bf9181bc.
2020-12-10 23:01:41 -05:00
aca
d9bf9181bc fix: cycle scroll when num_results is small (#316) 2020-12-10 22:52:30 -05:00
Simon Hauser
141dc6d55e ci: Add luacheck ci job (#317)
* Add luacheck ci job

* Fix most of the linting issues

* fixup: lint

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-12-09 15:46:41 -05:00
Simon Hauser
2e5ee9d43e Fix file_ingore_patterns for tags and lsp (#309)
closes #299 

authored by: @Conni2461
2020-12-03 15:50:27 +03:00
Simon Hauser
863328a96d feat: Buffers rework (indicators and sorting) (#208) 2020-11-23 10:11:46 -05:00
TJ DeVries
2ac0582c06 feat: v0.1 of extensions (#278) 2020-11-23 09:29:10 -05:00
TJ DeVries
985856946e feat: Allow overriding actions from mappings (#248) 2020-11-16 10:58:30 -05:00
TJ DeVries
9fad317d05 fix: #236 2020-11-13 14:56:57 -05:00
Simon Hauser
ba52c70a60 fix: selection_strategies row and follow (#218) 2020-11-13 10:20:09 -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
TJ DeVries
a37e4699c4 feat: Closes #205 2020-10-30 18:31:06 -04:00
TJ DeVries
b76babb225 fix: attempt to fix problem for tami, hopefully no more error 2020-10-27 22:35:55 -04:00
TJ DeVries
113a516c63 feat: Add ability to turn off devicon colors 2020-10-25 08:19:09 -04:00
TJ DeVries
477261e5c0 feat: Improve filtering ideas for sorters. 2020-10-25 08:09:07 -04:00
TJ DeVries
a8e7807086 feat: Use colors from nvim-devicons 2020-10-24 22:55:45 -04:00
TJ DeVries
14f834b754 fix: trim spaces from prompt string 2020-10-20 19:57:59 -04:00
Bastien Rivière
b98509b4ad fix: use results_height and results_width from config (#171) 2020-10-19 22:54:35 -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
3cf3acc4d5 feat: Add scroll_strategy = 'cycle' 2020-10-08 22:47:22 -04:00
TJ DeVries
1222cc5b42 nit: Log when we fail with a busted bufnr 2020-10-08 22:35:17 -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
TJ DeVries
c2c4626c3d feat: Add more easily customizable mappings.
Closes: #131
2020-10-08 21:39:43 -04:00