Commit Graph

295 Commits

Author SHA1 Message Date
Simon Hauser
8381a215e0 hotfix: should have been there but wasnt
ref: https://github.com/nvim-telescope/telescope.nvim/issues/1145#issuecomment-903161099
2021-08-21 21:13:09 +02:00
Simon Hauser
1c276f5539 fix(pickers): config mappings (#1147)
This happens because we removed our packed deepcopy. So i refactored
this part to not do a deepcopy
2021-08-21 21:02:38 +03:00
Simon Hauser
364d795d22 fix: some improvements for telescope.symbols if run in insert mode (#1117)
- keep insert if run in insert mode
- also look in `.local/share/nvim/telescope/symbols/*.json` for symbols
  can be overriden with `symbol_path`
2021-08-21 16:48:19 +02:00
TJ DeVries
a97af306c4 feat(performance): Major performance improvements using async v2 from @oberblastmeister (#987)
* start: Working w/ async jobs

* short circuit to using bad finder if you pass writer.
2021-08-20 11:11:24 -04:00
Jan Steinke
615efe666b Allow range parameters on command parser (#1123) 2021-08-19 19:11:22 +02:00
James Trew
f039f60a99 chore: separate commit date & time in git_branches (#1111) 2021-08-12 15:30:10 +02:00
Marten Trip
06e55d3b3a fix: builtin list_or_jump now handles non list replies from the server (#1101)
fix for servers such as zls and clojure_lsp
2021-08-11 20:03:31 +02:00
Simon Hauser
2c573b9d12 fix: picker config (#1094) 2021-08-09 21:28:16 +02:00
Simon Hauser
e7362e9996 chore: reformat docs after tree-sitter-lua changes 2021-08-04 22:41:18 +02:00
zeertzjq
d7cdfcbeb6 feat: add option jump_type to lsp_definitions and lsp_implementations (#1077) 2021-08-04 22:33:13 +02:00
zeertzjq
654903fc04 fix: preview the correct man page section (#1076) 2021-08-04 22:19:39 +02:00
Dhruv Manilawala
aa7c13ea36 fix: escape newlines in code action title (#1012) 2021-08-04 22:16:18 +02:00
Nazeeh ElDirghami
ca195e32e0 feat: live_grep and grep_string function for additional opts (allow file mask) (#1017) 2021-08-04 09:07:04 +02:00
Luke Kershaw
f8caad1d6b fix: fix file_browser on windows and potentially other file opens (#1026) 2021-08-03 11:08:42 +02:00
Joshua Cao
5ff6f9ad07 fix: git_bcommit use absolute path for current file (#1059) 2021-08-03 11:04:07 +02:00
Joel Palmer
b742c50bf1 feat: add git reset action for git commits picker (#999) 2021-07-30 00:16:45 +03:00
Lee Marlow
82f4d3028b feat: add no_ignore option to find_files (#1010)
Allow find_files to find files ignored by .gitignore
and other ignore files. This is supported by fd, rg, and fdfind.
2021-07-29 12:45:19 +03:00
Simon Hauser
79644ab677 chore: use stylua for formatting (#1040)
* chore: stylua job and config

* reformat with stylua
2021-07-23 11:42:37 -04:00
Simon Hauser
46e03a935f feat: sort_mru for builtin buffers (#1028)
:help builtin.buffers
2021-07-19 09:10:06 +02:00
Daniel Imfeld
3f17192322 feat: add ^ and $ to characters handled by regex escape (#1007) 2021-07-17 16:27:14 +07:00
wongxy
0708120a84 fix: correct the prompt title (#1013) 2021-07-17 10:27:36 +02:00
wongxy
747396227d feat: enable to preview themes (#980) 2021-07-16 18:45:31 +02:00
anott03
df579bac42 refactor: move from telescope.path to plenary.path (#473)
This will deprecate telescope.path, we will remove it soon. Please move over to plenary.path

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-07-14 19:25:00 +02:00
Luke Kershaw
a4896e5ef3 fix: builtin find_files, find command win32 check == 0 (#989)
- changes check for Windows OS, as 0 is truthy, so `not 0` and `not 1` are both `false`
2021-07-14 13:46:46 +02:00
Luke Kershaw
999fad2ce5 feat: add Windows where file finder command (#979) 2021-07-13 19:16:50 +01:00
caojoshua
49b86b4610 fix: for closed buffer in tagstack picker (#972) 2021-07-11 08:26:57 +02:00
caojoshua
dc0dca27dc refactor: Jumplist picker uses quickfix entry maker. Delete jumplist entry maker. (#973) 2021-07-11 08:24:57 +02:00
caojoshua
d5a8e48aa6 Consistent filepath display and code cleanup. (#839)
BREAKING CHANGE: see :help telescope.changelog-839 for more information

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-07-08 10:30:44 +02:00
Luke Kershaw
a5608b9026 feat: option to include_extensions in builtin picker (#953)
- add option `include_extensions` which defaults to `false`
- if `include_extensions` is `true` then add functions from extensions to results
- update `actions.run_builtin` to check if extension function provided
2021-07-03 23:31:45 +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
Simon Hauser
6ac5ee0854 feat: cycle previewers with commit and bcommit already using it (#528)
- new git previewers
- jump to line in bcommit previewer
- vimdiff for bcommits
- dynamic preview window titles
- more previewers documentation

Cycle previewers are not mapped yet. So you need to setup yourself:
```lua
require('telescope').setup {
  defaults = {
    mappings = {
      i = {
        ["<C-s>"] = actions.cycle_previewers_next,
        ["<C-a>"] = actions.cycle_previewers_prev,
      },
    },
  }
}
```

Co-authored-by: Thore Strassburg <thore@weilbier.net>
2021-06-14 21:50:46 +02:00
JINNOUCHI Yasushi
0c1bc129da chore: use plenary.strings and remove strings functions from utils (#690)
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-06-14 20:47:33 +02:00
Simon Hauser
6aa66d9211 fix: ripgrep 13 2021-06-12 17:53:35 +02:00
fdschmidt93
e27c87f88a feat: add filtering by symbol(s) to lsp_{document,workspace}_symbols (#903) 2021-06-10 23:10:18 +02:00
fdschmidt93
1407ac3400 feat: improved configuration and sorting of lsp_{document,workspace}_diagnostics (#867) 2021-06-10 17:13:34 +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
David Mejorado
feaed4b6e2 docs: update builtin.file_browser options (#887) 2021-06-06 21:11:42 +02:00
the continium
4aa4590510 fix: search_dirs in builtin.grep_string (#897) 2021-06-06 19:39:09 +02:00
Gwarnifarn
2697bcfaf0 docs: add more builtin.buffers documentation (#888) 2021-06-03 22:16:09 +02:00
Jose Alvarez
5b6b23a3a2 fix: correctly check output of git worktree command (#882) 2021-06-01 23:27:32 +02:00
fdschmidt93
57ac8dcc3e feat: add prefiltering to treesitter picker (#879) 2021-05-31 09:39:21 +02:00
Ben Smith
654b11aa08 Change the show_all_buffers option to true by default for buffers picker (#858)
* show_all_buffers true by default, added docs

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

* fix for docs, used param instead of field oops

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

Co-authored-by: Github Actions <actions@github>
2021-05-30 22:12:18 -04:00
Damon Timm
69eb5eacff fix: string.find() matching for only_cwd option (builtin.buffers) (#849)
`string.find()` is defaulting to _pattern_ matching (rather than string
literal matching).  If you are using the `only_cwd` command in a
directory with a `-` (for example) the option fails to work.

This fix asks `string.find()` to interpret the arguments as literal
strings rather than patterns.

Reference: https://stackoverflow.com/a/15258515/181902
2021-05-16 20:36:16 +02:00
Ben Smith
e88864123b Docs for builtin pickers (#783) 2021-05-13 18:44:26 +00:00
saadparwaiz1
6dc69f46f6 fix: add git_stash field to builitn (#836)
PR #800 add git_stash picker. However, it's not added as a field in builtin.
2021-05-11 17:08:14 +02:00
Kyoichiro Yamada
d5aa53dcd3 create new action: git switch (#798)
* create new action: git switch

If the branch already exists in local, switch to that.
If the branch is only in remote, create new branch tracking remote and switch to new one.

* fix a point of review

* fix a point of review: map to git-switch action

* Revert "fix a point of review"

This reverts commit 017ce424a3adfe1b3712a421385cfc3f4258a0fb.

* undocument header comment
2021-05-11 01:55:41 -07: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
Khalid
25a7ecc289 feat: add use_regex option to grep_string (#767) 2021-05-08 14:02:18 +02:00
Luke Kershaw
144c761e03 fix: oldfiles cwd_only that include backslashes (windows) (#820) 2021-05-08 13:38:40 +02:00