Commit Graph

297 Commits

Author SHA1 Message Date
kkharji
5e16fbc8ea feat(picker): command history filter (#2132)
* feat(picker): command history filter

I've recently start using command history. For sometime was a bit annoyed of unrelevant commands
like edit/write and others (most likely only used once)

I've considered using lua patterns, however, logical `or` isn't a thing. Additionally, passing a list of lua patterns and checking each pattern for each command history entry felt tedious.

This PR introduce a new optional function to filter command history items.

For example, in my configurations

~~~lua
local command_history_ignore = vim.regex "edit\\|Move\\|write\\|Write\\|e\\s\\|lua\\sI("
overrides.command_history = minimal {
  prompt_prefix = "CMDHistory> ",
  filter_fn = function(item)
    if #item < 3 then
      return false
    else
      return not command_history_ignore:match_str(item)
    end
  end,
}
~~~

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

Co-authored-by: Github Actions <actions@github>
2022-11-23 17:26:29 +01:00
Andreas Guth
7a4ffef931 fix(lsp_references): not changing files if only 1 result (#2229) 2022-11-11 08:15:29 +01:00
Gutyina Gergő
cc77713294 feat: add jump_type option for lsp_references (#2218) 2022-11-06 17:43:01 +01:00
ADoyle
d541e0d6e0 feat: the parameter "map" of attach_mappings can be list of modes to create mapping on multiple modes (#2220) 2022-11-06 17:42:29 +01:00
Simon Hauser
4bd4205028 Revert "feat(git): notify when not in a git repo instead of error (#2181)" (#2217)
This reverts commit a09df82861.
2022-10-31 15:48:32 +01:00
Simon Hauser
97847309cb fix: always load the up to date picker config on picker open 2022-10-26 16:32:23 +02:00
Simon Hauser
9cf465894a fix: rg invert and files-with-matches res line parsing (#2208) 2022-10-25 21:22:17 +02:00
Gutyina Gergő
5c7db4055d feat: allow table as additional args in live grep and grep string (#2139) 2022-10-24 08:44:13 +02:00
kylo252
090b687542 perf(builtin): faster list extend for find_files (#2205) 2022-10-24 08:24:10 +02:00
Antoine
a09df82861 feat(git): notify when not in a git repo instead of error (#2181)
Fix #2180
2022-09-30 19:29:03 +02:00
Tushar Kuntawar
2428953db3 fix: builtin register picker better sorting (#2175) 2022-09-27 21:17:11 +02:00
Marcus Caisey
4a43d13c95 fix: don't include current line in lsp references if current_line=false (#2165) 2022-09-17 10:14:53 +02:00
Sam Rosenthal
bd9e8a7eac docs: update for git_files and live_grep (#2133) 2022-09-04 21:55:54 +02:00
Christian Clason
b923665e64 fix(preview): update buffer previewer to upstream changes (#2150)
https://github.com/neovim/neovim/pull/19931 removed `_get_hl_from_capture(id)` since captures are now implicitly mapped to highlight groups with the same name.
2022-08-27 15:29:36 +02:00
Bryce Montano
ad32a4c453 fix: find_files to force color=never (#2130)
Co-authored-by: Bryce Montano <brycesec@amazon.com>
2022-08-13 11:03:34 +02:00
TJ DeVries
4725867ec6 fix: restore testing framework to actually work (#2070)
after refactor to some new asynchronous items for finders,
the tests stopped actually doing anything.

now they do things again.
2022-08-04 16:00:30 -04:00
Christoph Blessing
2e05e63cdf fix: error due to concatenating table to string (#2108)
This commit fixes a bug that lead to an error because we tried to
concatenate a table (`err`) to a string. Now we concatenate
`err.message` (a string) to the string.
2022-08-01 18:06:28 +02:00
steven
b5833a682c fix: move the moon behind show_moon option and update documentation (#2072) (#2079) 2022-07-22 18:16:17 +02:00
Simon Hauser
737f8cd6b5 fix: Telescope command lsp_definition call (and potentially more) (#2086) 2022-07-22 17:52:41 +02:00
Simon Hauser
5f25375191 chore: remove deprecated functions / messages (#2063) 2022-07-12 13:24:23 +02:00
Simon Hauser
a36500c7ee fix: live_grep search_dirs and grep_open_files opts
fix #2048
2022-07-07 19:16:13 +02:00
Simon Hauser
f838695459 chore: reformat with stylua 0.14.0 2022-07-07 08:27:46 +02:00
Simon Hauser
8fe2dde656 docs: add missing opts docs for lsp builtins 2022-07-06 20:45:40 +02:00
Simon Hauser
30f2a367f2 feat(grep_string): invert_match for search="", removing empty lines (#2040) 2022-07-06 20:38:51 +02:00
Simon Hauser
02cf3e4070 feat: grep_open_files for builtin.grep_string (#2039) 2022-07-06 08:26:22 +02:00
Simon Hauser
2b1da47deb chore: make to_fuzzy_refine configurable (#2034) 2022-07-03 21:39:24 +02:00
Simon Hauser
0621c1c6ba break: prefix internal files and add deprecation messages (#2032) 2022-07-01 22:20:12 +02:00
Turiiya
bf1a25dbfe feat: search_file option for builtin fd command (#2029) 2022-07-01 22:10:31 +02:00
Simon Hauser
75deb22aa8 fix: crash in tags on enter for no results and random crash in previewer 2022-07-01 19:18:30 +02:00
Simon Hauser
21eea92e72 fix: autocommands regression 2022-07-01 18:58:13 +02:00
Fabian David Schmidt
ef9137d85c feat: refine with new_table 2022-07-01 18:13:25 +02:00
TJ DeVries
8f56fede21 feat: Add entry_index for entry_makers
cleanup
2022-07-01 16:58:42 +02:00
Simon Hauser
546947d442 fix: spell_suggest if cursor is at last char of word
fix #1977
2022-06-30 14:57:33 +02:00
Anton
bef86acb6c feat(rg): pass multiple globs to rg by default (#2003) 2022-06-30 14:01:51 +02:00
Manuel
3a72cc8902 feat(builtin.lsp): implement builtin handlers for lsp.(incoming|outgoing)_calls (#1484)
Fixes #863
2022-06-30 14:01:51 +02:00
Simon Hauser
ffcc2221d6 docs: clarify docs around search_dirs and map_entries 2022-06-30 14:01:51 +02:00
Simon Hauser
f6efef4c41 feat: find_command can be a function (#2000) 2022-06-30 14:01:51 +02:00
Simon Hauser
77e2b8ceea chore: cleanup autocmd builtin (#1947) 2022-06-30 14:01:51 +02:00
Yorick Peterse
838c32d6a8 refactor: make_entry more consistent (#1410)
drops `ignore_filename`, use `path_display= { "hidden" }`

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2022-06-30 14:01:50 +02:00
Brian Di Palma
3f1f5b7e52 feat: add --follow to bcommits (#1997)
Yes the diff to parent preview will be blank but at the very least a user can follow a file around various moves and get access to the SHA-ID for the move.
2022-06-30 14:01:50 +02:00
Bjarki Baldursson Harksen
6703c957e7 feat: add option use_default_opts to builtin.builtin (#1996) 2022-06-30 14:01:50 +02:00
Antoine
15f6a0bb08 feat(tags): process tagfiles on the fly (#1989) 2022-06-30 14:01:50 +02:00
Jeremy Neal
8488cd5ac7 feat: no-ignore-parent shorthand option for find_files. (#1963) 2022-06-30 14:01:50 +02:00
Simon Hauser
6dc0a7d7c2 fix(resume): previewer if toggled (#1957) 2022-06-30 14:01:49 +02:00
Simon Hauser
83b6cadb2c break: deprecate utils.get_default utils.if_nil (#1545) 2022-06-30 14:01:49 +02:00
Simon Hauser
4482c2b551 chore: cleanup vim options (#1946) 2022-06-30 14:01:48 +02:00
Ben Smith
440684edad break(git_files): change show_untracked default to false (#842) 2022-06-30 14:01:48 +02:00
Reed Koser
b98b9a93c6 fix: grep_string crashes when string has newline (#2026)
Fixes the crash below by sanitizing the title to not include the
linebreak (replacing it by a "\n" string)

stack traceback:
        [C]: in function 'nvim_buf_set_lines'
        .../nvim/plugged/plenary.nvim/lua/plenary/window/border.lua:222: in function '__align_calc_config'
        .../nvim/plugged/plenary.nvim/lua/plenary/window/border.lua:266: in function 'new'
        ...are/nvim/plugged/plenary.nvim/lua/plenary/popup/init.lua:384: in function 'create'
        ...re/nvim/plugged/telescope.nvim/lua/telescope/pickers.lua:326: in function '_create_window'
        ...re/nvim/plugged/telescope.nvim/lua/telescope/pickers.lua:399: in function 'find'
        ...m/plugged/telescope.nvim/lua/telescope/builtin/files.lua:151: in function 'v'
        ...m/plugged/telescope.nvim/lua/telescope/builtin/files.lua:475: in function 'v'
        ...im/plugged/telescope.nvim/lua/telescope/builtin/init.lua:487: in function 'grep_string'

Fixes #2023
2022-06-30 12:09:36 +02:00
Rocky Zhang
c0a76f8a39 fix: error caused by the invalid options in create_autocmd for vimdiff (#2013) 2022-06-18 13:55:27 +02:00
Jose Veiga
e2a77a54a3 doc: use correct option name for 'only_sort_text' (#1995) 2022-06-12 13:03:12 +02:00