Commit Graph

16 Commits

Author SHA1 Message Date
Dmitriy Kovalenko 0dfe9e1edf feat: Support Line Column in file pickers
Original issue: When selecting files in telescope iti is impossible to
enter paths from compiler that includes cursor locations, you need to clear it from the path.

This commit fixes the problem by stripping out the location from path
(important: only for file pickes) and using this location to set the
cursor when openning the file and highlight the line or poisition in the
previewer.

This feature requires a new option for a picker, whichi for now is basically
enabling location stripping but it is helpful for any file picker
builtin or external one.

By default equals `false` becuase most of pickers like live grep,
current buffer fuzy are messed up with locations stripping. It is only
useful for file searches.

Added test suite that covers alghoritm of stripping the location to the
`utils_spec.lua`
2023-11-20 10:39:49 +01:00
James Trew e7cfbb5d1f fix(git): tbl_isarray compat with nvim 0.9 (#2710) 2023-09-19 23:43:18 +00:00
Aaron Kollasch e7e6492a2d feat(git): Add bcommits_range picker (#2398)
* Filter bcommits by selection in visual mode

* Split bcommits_range into new picker

* Add option to run bcommits_range as operator

Starts operator-pending mode and shows commits in the range of lines
covered by the next text object or motion

* Rename range arguments to "first" and "last"

Can't use start/end, since end is an annoying keyword to use in lua
and start/stop doesn't fit as well

* Move operators functionality to new module

* Run bcommits if no range given to bcommits_range

* Make bcommits_range default to current line

Instead of calling bcommits

* Improve documentation of telescope.operators

* Add default value for last_operator

Default to a no-op callback

* Update bcommits_range for detached worktrees

See #2597

* Rename range arguments to "from" and "to"

* Move shared bcommits picker into single function
2023-07-22 21:35:52 +00:00
James Trew 2ea8dcd17b feat(git): support detached working trees (#2597)
* feat(git): support detached working trees

closes #2595

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

* fix: use_file_path

---------

Co-authored-by: Github Actions <actions@github>
2023-07-14 17:12:03 +00:00
William Henrotin 9f501680e5 feat: find git root from current buffer (#2435) 2023-05-24 11:36:37 +02:00
atusy ee90403e40 feat: keep prompt and selection on git_staging_toggle (#2372) 2023-02-19 10:46:51 +01:00
Simon Hauser 203bf56091 Revert "feat(git): git_commits shows the current branch graph (#2288)" (#2358)
This reverts commit 01d92285ef.
2023-01-31 08:24:16 +01:00
Matt Taylor 1ba7278cf0 feat(pickers): add opt.show_remote_tracking_branches to git_branches (#2314) 2023-01-11 15:00:44 +01:00
Jonas Strittmatter b24fdfdb25 fix: correctly parse filenames with special chars in git_status (#2296) 2023-01-06 12:04:15 +01:00
Cyan 01d92285ef feat(git): git_commits shows the current branch graph (#2288)
Co-authored-by: Cyan Joeng <cyan.joeng@gmail.com>
2022-12-28 15:43:35 +03:00
A. Schueler cea9c75c19 feat: sort branches initially by authordate (#2236) 2022-11-23 18:26:15 +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
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
Simon Hauser f838695459 chore: reformat with stylua 0.14.0 2022-07-07 08:27:46 +02:00
Simon Hauser 0621c1c6ba break: prefix internal files and add deprecation messages (#2032) 2022-07-01 22:20:12 +02:00