Commit Graph

475 Commits

Author SHA1 Message Date
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
bi0ha2ard
0a32b47f20 fix: typo from last commit (#542)
Please blame conni for that one
2021-02-23 21:01:08 +01:00
bi0ha2ard
da7bdd9ee7 readme: update extensions section. Link to wiki for community extensions (#539) 2021-02-23 20:48:42 +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
09d1e3a607 feat: buffer previewers ls is now colorized (#505)
Requires up to date plenary version
2021-02-12 22:30:55 +01:00
Danilo Luvizotto
b075d0d2b6 fix: git_commits when a commit has no message (#529) 2021-02-12 19:23:13 +01:00
Simon Hauser
3a7fa41857 fix: all git builtin respect cwd now (#517) 2021-02-09 18:25:57 +01:00
JINNOUCHI Yasushi
993e383dd5 hotfix: displayer showing now items on windows (#515)
No longer use ffi for strdisplaywidth and utf_ptr2len on windows.
That might lead to wrong truncations on windows but its better than nothing.
2021-02-09 09:32:43 +01:00
JINNOUCHI Yasushi
b3d3d93869 feat: show all sections in man_pages (#512)
:Telescope sections=ALL
2021-02-08 09:52:33 +01:00
TJ DeVries
5f1d16acf6 nit: Abstract some functions (#498) 2021-02-04 20:56:05 -05:00
Tae Sandoval
d6ce595aba feat: Open quickfix list on it's own action (#497)
Given that Telescope has a picker for quickfix items, opening its
window automatically isn't that useful, so this commit removes the call
from send_to_qflist and send_selected_to_qflist. Some users may prefer
the old behaviour though so a new action open_qflist was created.

To open quickfix with one key, you can do this:
```
       ["<C-q>"] = actions.send_to_qflist + actions.open_qflist,
```

Co-authored-by: Tae Sandoval <tssm@users.noreply.github.com>
2021-02-04 15:03:40 -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
Raphael
feacafacbc remove bat env theme variable (#489) 2021-02-02 20:39:01 +08: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
Simon Hauser
9e76b1613a fix: remove env workaround for term_previewer (#482)
Also fixes #484
2021-02-01 14:50:01 +01:00
Peacock
fc54211868 Correct missing comma #485 (#487) 2021-02-01 18:10:23 +07:00
Gustavo Sampaio
ef3262f94a readme: Add new community extension: asynctasks (#483) 2021-01-31 22:32:31 +03:00
Raphael
689dd12385 support custom table type keyword (#450)
* support custom table type keyword

* remove custom split function use vim.split

* remove unused varable fix test

* rewrite get extensions subcommand

* add comment

* remove blankline

* check the param in default options

* revert

* add register keyword function
2021-01-31 19:21:25 +08:00
JINNOUCHI Yasushi
1ca1e7ccba fix: Multi byte truncate for displayer (#464)
This is needed for calling strdisplaywidth() from Lua loop.

See https://github.com/nvim-telescope/telescope.nvim/issues/414
See a1ed941a78/src/nvim/eval/funcs.c (L9845-L9858)

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-01-31 10:55:17 +01:00
TJ DeVries
4e0dfa2e70 fix: dont error if the previewer is not able to set at the current time 2021-01-30 22:57:36 -05:00
elianiva
b1fb172b7f fix: no TS highlight if it gets loaded after Telescope (#479) 2021-01-30 23:34:05 +07:00
Corentin Brunel
2a5db2f4f1 fix: git branches previewer add nil check to cend (#478)
Co-authored-by: Corentin Brunel <cbrunel@localhost.localdomain>
2021-01-30 10:16:17 +01:00
David Begin
0ae5991385 Improves documentation by fixing spelling mistake (#475)
If you're reading this, then you know begin doesn't deserver hacktoberfest cred.
2021-01-29 11:14:48 -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
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
Alvaro Muñoz
951ede2a70 fix: allow previewer win customization (#460) 2021-01-24 23:53:58 +01:00
elianiva
099910dcd9 fix: escape filename for previewer and action (#456) 2021-01-23 19:35:29 +07:00
Simon Hauser
223ec81774 feat: add vim buffer directory viewer using plenary scandir.ls_async (#421)
feat: git_status (??) now shows file or directory
fix: attempt to index field 'state' (a nil value)
2021-01-22 21:03:39 +01:00
Simon Hauser
36ff7d5078 fix: fnameescape in from_entry (#454)
if entry.path is nil vim.fn.fnameescape will return null which results
in all other option no longer be checked
2021-01-22 20:11:01 +01:00
elianiva
f94909bc84 fix: escape filename before opening it (#453) 2021-01-22 16:03:39 +07:00
tami5
a81f316712 grep_string/live_grep support multiple dirs (#448)
+ overwriting vimgrep_argumnets
2021-01-20 15:50:13 +03:00
Dave Lage
b82d6a7cba fix: Treesitter link in README to correct section 2021-01-19 15:46:55 -05:00
relnod
36783845e4 feat: add ignore_current_buffer opt to builtin buffers (#444) 2021-01-19 18:33:18 +01:00
Simon Hauser
d75d9ae428 fix: error message too many open files (#432)
and buffer previewer still "erroring" out for builtin.buffers
2021-01-19 18:28:47 +01:00
Senghan Bright
7d4d3462e9 Substring matcher (#443)
* add substr_matcher

* correct function name

* use util.split function and remove unused opts
2021-01-18 17:53:52 +01:00
wordhou
7e241aa0a4 feat: Add option to set initial_mode (#442) 2021-01-17 23:09:23 -05:00
Raphael
c2039ca78d improve conver_user_opts function readable (#441) 2021-01-17 17:34:58 +08: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
Raphael
c50c69ac00 support convert custom command arg (#439)
* support convert custom command arg

* format code

* remove unused variable
2021-01-16 18:55:36 +08:00
Simon Hauser
00e898a1f9 fix: preview for unnamed buffers (#434) 2021-01-15 16:42:26 +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
TJ DeVries
4ca523232e feat: only_search_text (#419) 2021-01-11 16:32:53 -05:00
Simon Hauser
5592d709c6 refactor file_maker signature and fix scrolling (#412) 2021-01-11 21:10:42 +01:00
Simon Hauser
07f8f3d340 fix: previewer windows fix (#371) 2021-01-11 21:02:24 +01:00