Commit Graph

600 Commits

Author SHA1 Message Date
elianiva
c8cc024ebf feat: add add_to_qflist, add_selected, and smart_add (#636)
* feat: add `add_to_qflist`, `add_selected`, and `smart_add`

* refactor: use local function
2021-03-12 11:00:15 +07:00
TJ DeVries
add7ee3943 nit: Don't reset highlights on detach 2021-03-09 22:44:45 -05:00
fdschmidt93
559bf36e73 feat: add completion to pre-filtering (#626)
Works by pressing `<C-l>` in insert mode. Supported are all builtins that have prefiltering. Means:
- lsp_workspace_symbols
- lsp_workspace_diagnostics
- lsp_document_symbols
- lsp_document_diagnostics
2021-03-09 21:04:21 +01: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
oberblastmeister
1c80a92d40 fix: error using dictionary as a string when running send_to_qflist (#622) 2021-03-07 08:50:57 +01:00
Simon Hauser
68c30dd560 fix: only expand if we are not in_fast_event() 2021-03-07 08:41:45 +01:00
elianiva
6e941e0ece feat: define scroll speed + smart_send to qflist (#610)
* smart send to qflist

* Previewer scrolling for half window height

* Start doing cleanup in readme

* feat: add ability to define the scrolling speed

* move scrolling action to action.set

* docs: added more docs for actions

* [docgen] Update doc/telescope.txt
skip-checks: true

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
Co-authored-by: Github Actions <actions@github>
2021-03-05 20:13:48 +07:00
fdschmidt93
8369acea3e fix: error from unset LspDiagnosticSign & introduce opts.no_sign to lsp_*_diagnostics (#607) 2021-03-04 21:53:41 +01: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
TJ DeVries
390e5fa9f5 fix: Keep remaps safe between reloads 2021-03-03 13:26:57 -05: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
tamago324
20984fc5cd fix: subcommand completion for each extension (#597) 2021-03-03 21:16:15 +08: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
763f63eb14 fix: make sure devicons are loaded (#590) 2021-03-02 09:51:21 +01:00
Raphael
677b44d3a0 Enhance Telescope command (#588)
* Enhance Telescope command close #581

* bug fix
2021-03-02 16:34:29 +08:00
ndavid
678494e503 refactor: move transform_devicons and get_devicons to utils (#580)
So extension developers can access them
2021-03-01 23:59:17 +01: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
Ben Smith
ed2764a1bd feat: layout horizontal and vertical can now be mirrored (#548)
See documentation for more info
2021-02-28 11:16:47 +01:00
Simon Hauser
e1c8ad5d78 fix: entry_prefix if selection_caret > entry_prefix (#572) 2021-02-28 10:54:44 +01:00
Volodymyr Kot
ee341b02ea feat: add ability to multiselect in reverse direction (#573)
Use Shift+Tab
2021-02-28 10:18:11 +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
oberblastmeister
84732d1d78 fix: goto_file_selection performance issues, do not reload buffer if it is already loaded (#541) 2021-02-27 16:01:02 +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
elianiva
d37dc88eab fix: proper multibytes chars alignment (#560)
I am 100% did not spoil anything, I swear
2021-02-26 20:17:47 +07:00
Jae-Won Chung
e2696d694a fix: change git previewers from using -P to --no-pager for better compatibility (#558) 2021-02-26 11:54:33 +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
elianiva
8b3d08d7a6 fix: scroll misbehaving + fixed jump to middle (#547)
* fix: scroll misbehaving + fixed jump to middle

* add test

* fixx

* fix nil
2021-02-24 21:40:11 +07:00
Simon Hauser
b5051eeb01 feat: make buffer previewer default and deprecate bat previewer (#420)
To revert back to bat previewers put this into your config:

file_previewer = require'telescope.previewers'.cat.new,
grep_previewer = require'telescope.previewers'.vimgrep.new,
qflist_previewer = require'telescope.previewers'.qflist.new,
2021-02-24 03:47:22 +01:00
Hubert Pelczarski
67b0661537 feat: adds M mapping in normal mode (#544) 2021-02-24 03:35:52 +01:00
Simon Hauser
10627e889e feat: advanced normal mode (#463)
Add <count>j and k to normal mode and H and L to jump at top and bottom of displayed results
2021-02-24 02:41:00 +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
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
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