Commit Graph

238 Commits

Author SHA1 Message Date
August Masquelier
f92b9b1fae fix: live_grep path appending with cwd when already absolute (#768) 2021-04-17 22:50:07 +03:00
Weihang Lo
9e603d3c1b feat: table layout for builtin commands (#754) 2021-04-15 09:26:38 -04:00
James Walmsley
07d518105c picker(live_grep): add option to grep only over open files (#666) 2021-04-14 18:31:22 +03:00
Ben Smith
c5f0d05835 git(action): create and checkout branch (#755)
* added git action for creating and checking out a new branch, added basic docstrings for git actions

* Added confirmation for creation of new branch, changed default mapping
to <c-u>

* Switched back to `<c-a>` default mapping for now
2021-04-14 12:31:05 +03:00
oberblastmeister
253d3aaa6b added a new DynamicFinder (which can be used with rust_analyzer) (#705)
* started tree finder

* made tree more ergonmic

* deleted unneeded comments

* added stack root and node

* added preprocessing

* using staticfinder instead of separate finder, custom entry maker

* added selections and remember

* removed unused stuff

* fixed warnings

* fixed remember and selections pop

* started branch

* added go function

* changed up test

* removed root parameter from go function

* changed back to not do_close

* removed node and leaf classes

* removed stack class instead for table.insert and table.remove

* fixed warning

* started branch

* added better preprocessor and tree class

* started some tests

* finished making tests pass

* cleaned up

* fixed make entry and updated example

* started

* added some stuff

* deleted uneeded stuff

* added cancelable

* changed workspace requester

* use better cancellation mechanism

* removed accidental stuff

* removed useless print

* delete more useless stuff

* rename to dynamic

* added request cancellation

* CHECK IF NIL

* removed unused

* added trash global variable
2021-04-13 14:39:14 -04:00
TJ DeVries
ba1e674e68 fix: update to newer code (#744) 2021-04-09 13:04:01 -04:00
Nitin Chaudhary
2ebbf7f9d4 pickers(buffers): added only_cwd opt (#739)
closes #733 
Co-authored-by: Nitin Chaudhary <nitin.chaudhary@sap.com>
2021-04-09 12:52:26 +03: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
TJ DeVries
e5fbe6fe60 fix: Use standardized names for current buffer fuzzy find (#737) 2021-04-07 17:12:47 -04:00
Kyoichiro Yamada
d367eb4fd8 fix(git_branches): use the quoted fields instead of json-formatting and fix regressions with #695 (#704) 2021-04-07 17:00:38 +02:00
TJ DeVries
0b2c801978 feat: buf highlights for current buffer fuzzy find (#732)
* feat: Add buffer highlights from treesitter

* fix: Handle not having tree sitter in some buffers

* fixup

* fixup

* fixup: move back to old node
2021-04-06 19:59:42 -04:00
August Masquelier
d0cf646f65 feat: current buffer fuzzy find improvements (#694)
If you don't want to have a previewer disable it with `:Telescope current_buffer_fuzzy_find previewer=false`
To ignore empty lines do: `:Telescope current_buffer_fuzzy_find skip_empty_lines=true`
2021-04-04 13:04:06 +02:00
ovikk13
89a6161c81 Fix #707: lsp_workspace_symbols add support for multiple clients. (#718) 2021-04-03 20:11:38 +03:00
Jesse Leite
2c4efc2f8a fix: better relative path output in live_grep and grep_string (#683) 2021-03-31 09:47:21 +02: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
Kyoichiro Yamada
2e03f67de9 picker(git_branch): show committer, upstream and date (#695)
* wip: rich finder for branches

for: https://github.com/nvim-telescope/telescope.nvim/issues/569

* fix some diagnostics
2021-03-29 21:04:25 +03:00
Jesse Leite
a7fa60411e Fix prompt titles. Closes #OCD. (#675) 2021-03-21 12:44:08 +07:00
Jesse Leite
d4bf1181ea Improve oldfiles Picker (#657) 2021-03-18 10:21:25 +03:00
tami5
284f38c575 feat & fix: Command History Picker (#656) 2021-03-14 20:05:56 +03:00
Volodymyr Kot
5333ab0b19 Prefer vim.api over vim.fn (#650)
See https://github.com/neovim/neovim/pull/13875 for details.
2021-03-14 17:11:45 +03:00
oberblastmeister
ff428c9187 feat: lsp definitions (#631)
* added lsp definitoins

* don't call locations_to_items when there is one

Co-authored-by: Jae-Won Chung <jaywonchung@snu.ac.kr>

* added missing end

* added description

* added to feature map

* Update lua/telescope/builtin/lsp.lua

Co-authored-by: fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com>

* Update lua/telescope/builtin/lsp.lua

Co-authored-by: Jae-Won Chung <jaywonchung@snu.ac.kr>

Co-authored-by: Jae-Won Chung <jaywonchung@snu.ac.kr>
Co-authored-by: fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com>
2021-03-09 14:17:56 -05:00
Tom
e7f724b437 feat: add hidden opt to file_browser (#608)
:Telescope file_browser hidden=true
2021-03-04 20:40:35 +01:00
fdschmidt93
908752fc67 feat: workspace diagnostics, jump to and improved styling (#599)
Changes: `Telescope lsp_diagnostics` is now `Telescope lsp_document_diagnostics`
New: `Telescope lsp_workspace_diagnostics`

Co-authored-by: Fabian David Schmidt <fabian.david.schmidt@hotmail.com>
Co-authored-by: elianiva <dicha.arkana03@gmail.com>
2021-03-04 15:01:17 +01:00
fdschmidt93
db7615578b feat: lsp diagnostics and prefiltering by entry attribute (#543)
prefiltering for lsp_document_symbols and lsp_workspace_symbols.
example: type `:var:` to show all vars
2021-03-03 22:33:03 +01:00
Simon Hauser
3faca0802f docs: start documenting previewers (#574)
Co-authored-by: Muhammed Zakir <MuhammedZakir@users.noreply.github.com>
2021-03-03 18:14:46 +01:00
TJ DeVries
0fef4c3e17 fix: remove gotos because this breaks lua 5.1 (#583) 2021-03-03 17:51:44 +01:00
elianiva
569ebd43e7 feat: add expand_dir opts for git_status (#591)
* feat: add expand_dir opts for git_status

* make -u as the default
2021-03-02 19:41:01 +07:00
Simon Hauser
b08f65c5fd feat: better display for git_branches (#586) 2021-03-01 22:36:37 +01:00
ThePrimeagen
50ae42b158 feat: delete mappings for git_branches (#578) 2021-03-01 22:18:36 +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
Tom
49650f5d74 feat: allow git_* to use vim pwd over git root (#563)
with opt use_git_root = false
Examples:
- Telescope git_files use_git_root=false
- Telescope git_commits use_git_root=false
- Telescope git_status use_git_root=false
2021-02-27 12:04:30 +01:00
TJ DeVries
55ab5c77a5 feat: Add vim docs & generators (#370)
* feat: Add vim docs & generators

* example of what we could start to do

* Docgen CI job

* wip

* incremental updates. soon good validation

* [Actions] Generate Documentation
skip-checks: true

* pretty cool now

* [Actions] Generate Documentation
skip-checks: true

* make sure telescope is loaded first

* Add updates. Maybe this will not delete now?

* Add defaults tags as well

* 😄

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
Co-authored-by: Github Actions <actions@github>
2021-02-24 21:44:51 -05: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
Asbjørn Håland
1c5e42a6a5 feat: add 'follow' opt to find_files (#530)
This will add possibility to follow symlinks
2021-02-12 22:31:27 +01:00
Simon Hauser
3a7fa41857 fix: all git builtin respect cwd now (#517) 2021-02-09 18:25:57 +01:00
JINNOUCHI Yasushi
c422d86eb9 feat: add sections opt for man_pages and fix for macos (#413)
:Telescope man_pages sections=3 will only show man pages from section 3
:Telescope man_pages sections=1,2,3 will show man pages from section 1, 2 and 3
2021-02-02 13:23:37 +01:00
anott03
5995a8be8f Undo #465 (#469)
We have broke all extension that do some sort of goto_file_selection:replace

Problem described here: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767831897
Possible solution: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767808213
2021-01-27 17:22:11 +01:00
anott03
ccbb7f5638 fix: move to actions.select as default action (#465) 2021-01-25 19:20:01 +01:00
JINNOUCHI Yasushi
5bf9e14f10 feat: support different languages for help_tags if helpfiles are available in other languages (#430)
" use helplang and show en help when it is not found.
:Telescope help_tags

" use helplang, but do not show en help when it is not found.
:Telescope help_tags fallback=false

" ignore helplang and show help from specified langs.
" when helps cannot be found, show en help.
:Telescope help_tags lang=ja,ru

" ignore helplang and show help from specified langs only.
:Telescope help_tags lang=ja,ru fallback=false
2021-01-25 19:17:40 +01:00
tami5
a81f316712 grep_string/live_grep support multiple dirs (#448)
+ overwriting vimgrep_argumnets
2021-01-20 15:50:13 +03:00
relnod
36783845e4 feat: add ignore_current_buffer opt to builtin buffers (#444) 2021-01-19 18:33:18 +01:00
Massimo Redaelli
9f58834d04 feat: allow to list files in git submodules (#329)
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-01-16 12:07:21 +01:00
Simon Hauser
e08a5b1331 feat: show git log for remote branches (#428) 2021-01-15 09:27:46 +01:00
Simon Hauser
5701255097 fix #426 (#427) 2021-01-12 22:26:12 +01:00
Simon Hauser
6461b07454 fix #385 (#422) 2021-01-12 17:20:02 +01:00
JINNOUCHI Yasushi
95264ada79 fix: git_branch only remove remotes/origin part (#423) 2021-01-12 09:06:16 +01:00
Senghan Bright
1d6195ff64 fix: remove quotes from spell suggestions (#400) 2021-01-06 15:16:46 +01:00
Senghan Bright
dda5b44b94 Spell suggestions (#399)
* feat: spell suggest picker

* set correct window title

* add entry to readme
2021-01-06 14:57:14 +01:00
JINNOUCHI Yasushi
402c2ea5fa add devicons to oldfiles picker (#397) 2021-01-06 06:20:59 +03:00