Commit Graph

198 Commits

Author SHA1 Message Date
Tom
c5a6ed16e2 feat: selection_strategy closest (#885)
* Added closest selection_strategy to use default_selection_index initially but prefer highest ranked match when prompt not empty

* Updated supporting documentation to include selection_strategy
2021-07-02 12:42:25 +02:00
TJ DeVries
5a53ec5c2f feat: Consistent and sensible layout_config (#922)
* feat: Consistent and sensible layout_config

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

* [WIP]: Thu 17 Jun 2021 03:36:44 PM EDT

* [WIP]: Thu 17 Jun 2021 03:38:11 PM EDT

* layout_default -> layout_defaults

* remove options from bug repot

* Conni2461 suggestions: part 1

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

* Conni2461 suggestions: part 2

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

* Linting

* Improve deprecation checks

- Move `layout_defaults` handling to `deprecated.lua`
- Check for "layout keys" outside of `layout_config` on `setup`

* fixup: Just add a few more words

Co-authored-by: Luke Kershaw <35707277+l-kershaw@users.noreply.github.com>
Co-authored-by: Github Actions <actions@github>
2021-07-01 05:41:58 -04:00
jpe90
f9ce723f2e docs: fix navigation link for LSP pickers (#904) 2021-06-10 17:05:59 +02:00
Simon Hauser
618e0e6075 feat: set defaults for each picker in telescope setup (#883)
This allows easier picker configuration for example:

```lua
require("telescope").setup {
  pickers = {
    buffers = {
      show_all_buffers = true,
      sort_lastused = true,
      theme = "dropdown",
      previewer = false,
      mappings = {
        i = {
          ["<c-q>"] = "smart_send_to_qflist",
        }
      }
    }
  }
}
```

This configuration will be applied when running `:Telescope buffers`
2021-06-09 19:51:03 +02:00
Samuel Yvon
ec8cf12cdc Make comment match with config (#870)
The configuration example does not match the comment.
2021-05-27 20:01:01 -04:00
Dave Lage
904f849423 Add Ivy Theme 2021-05-27 15:23:25 -04:00
TJ DeVries
d466135418 doc: Add related projects 2021-05-15 08:33:39 -04:00
Ben Smith
e88864123b Docs for builtin pickers (#783) 2021-05-13 18:44:26 +00:00
Amirreza Askarpour
9fd242db26 feat: add git_stash picker (#800) 2021-05-11 10:20:57 +02:00
caojoshua
e2907fc0f2 feat: jumplist picker and jump to row/col on existing buffers. (#813) 2021-05-09 11:05:12 +02:00
Volodymyr Kot
712de3e182 feat: add search history picker (#769)
Co-authored-by: Volodymyr Kot <vkot@palantir.com>
2021-04-23 18:24:09 +03:00
August Masquelier
f92b9b1fae fix: live_grep path appending with cwd when already absolute (#768) 2021-04-17 22:50:07 +03: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
b7d0488db9 readme: fix broken links and spelling errors (#753) 2021-04-13 21:59:10 +03:00
Khue Nguyen
a7d359948b docs: correct link to CONTRIBUTING.md (#632) 2021-03-10 05:39:50 +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
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
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
elianiva
b67c6fdfee docs: show a short way to list all builtin pickers
ref: #588
2021-03-03 13:52:41 +07:00
Thorsten Ball
a14b95962f Fix formatting in README to show keybinding (#577) 2021-03-01 17:38:18 +07:00
elianiva
b1711389b6 docs: add space before + and }
I am sorry, my OCD can't stand this :DDD
2021-02-28 22:27:41 +07: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
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
elianiva
d3a9c786ba docs: update outdated gif + more demo (#546)
* docs: update outdated gif

* add link that points to telescope wiki
2021-02-25 00:23:41 -05: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
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
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
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
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
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
Dave Lage
b82d6a7cba fix: Treesitter link in README to correct section 2021-01-19 15:46:55 -05:00
wordhou
7e241aa0a4 feat: Add option to set initial_mode (#442) 2021-01-17 23:09:23 -05:00
Raphael
a089c67483 refactor telescope command (#398)
* refactor telescope command

* addd telescope default options support

* fix variable name wrong

* convert command line string to lua type

* add comment.

* update readme for use theme in commandline

* enhance complete in commandline

* enhance complete in commandline

* enhance covert commandline options
2021-01-08 01:47: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
Simon Hauser
1d40ab5ccd feat: All buffer previewers are now async and more config options (#354)
Configure preview window with:
autocmd User TelescopePreviewerLoaded setlocal wrap
autocmd User TelescopePreviewerLoaded setlocal number

file_maker example: Use regex highlighting for certain filetype like `*min.js` because they slow
down things with treesitter highlighter. Just a snippet for tests. We will do an extension :)

local previewers = require('telescope.previewers')
local putils = require('telescope.previewers.utils')
local pfiletype = require('plenary.filetype')

local _bad = { '.*%.min%.js' }
local bad_files = function(filepath)
  for _, v in ipairs(_bad) do
    if filepath:match(v) then
      return true
    end
  end

  return false
end

local new_maker = function(filepath, bufnr, bufname, use_ft_detect, callback)
  if use_ft_detect == nil then use_ft_detect = true end

  if bad_files(filepath) then
    previewers.buffer_previewer_maker(filepath, bufnr, bufname, false, callback)
    local ft = pfiletype.detect(filepath)
    putils.regex_highlighter(bufnr, ft)
  else
    previewers.buffer_previewer_maker(filepath, bufnr, bufname, use_ft_detect, callback)
  end
end

require('telescope').setup {
  defaults = {
    buffer_previewer_maker = new_maker,
  }
}
2020-12-29 21:05:59 +01:00
Sebsatian Keller
1e7ef41c70 fix: README example configuration (#357)
Both `find_files()` and `help_tags()` were bound to `<leader>ff`. This resulted in <leader>ff not opening the `find_files()` dialog
2020-12-21 23:05:17 +03:00
Dave Lage
d5ee177306 Capitalize supported items 2020-12-11 00:50:04 -05:00
Dave Lage
77e8125ef5 Fix files link 2020-12-10 18:57:27 -05:00
Dave Lage
aa18920fc7 Add Example for pickers 2020-12-10 18:56:58 -05:00
Dave Lage
8661d0d0cc Upgrade Usage to main section 2020-12-10 18:46:04 -05:00
Dave Lage
9568d01fcf Move buffer lists to vim section 2020-12-10 18:44:24 -05:00
Dave Lage
466ee510bf Add links to sections in intro. 2020-12-10 18:40:06 -05:00
Dave Lage
328743ff5d Fix treesitter table 2020-12-10 18:39:10 -05:00