Commit Graph
24 Commits
Author SHA1 Message Date
James TrewandSimon Hauser d5fe96ec8a fix: expand/normalize paths more selectively (#2628)
(cherry picked from commit 3b8399c273)
2024-05-20 11:10:12 +02:00
fcyingandSimon Hauser 321d782c1d fix: remove duplicate lazyloaded items in colorscheme (#2951)
(cherry picked from commit 04dfe370b0)
2024-05-20 10:52:06 +02:00
James TrewandGitHub d85ad68222 fix(builtin.marks): expand mark path (#2980)
(cherry picked from commit 5550bbb1b6)
2024-03-12 14:24:34 +01:00
James TrewandSimon Hauser 72b42a5b80 fix(builtin.oldfiles): cwd matching with special characters (#2860)
`vim.fn.matchstrpos({expr}, {pat})` doesn't handle all characters well
since the pattern (cwd path in this case) is used as a regex pattern.

(cherry picked from commit b3ff5f3320)
2024-03-06 11:03:57 +01:00
James TrewandSimon Hauser 65ee034c35 fix(builtin.buffers): better buffer in cwd check (#2847)
Previously, using `string.find`, certain characters were taken as regex
special characters leading to bad matches.
New approach takes bufname truncated to the length of cwd and compares
the two strings.

(cherry picked from commit 8b56e9bb2d)
2024-03-06 10:46:02 +01:00
James TrewandSimon Hauser 425ab66b3b fix(builtin.buffers): improve only_cwd handling with partial matches (#2845)
closes #2843

Previously, bad partial matches between cwd and target buffer path would
result in non-cwd buffers showing up in the picker despite using
`only_cwd=true`.

eg.
cwd = `/foo/bar`
target buffer = `foo/bar1/baz.txt`
The target buffer starts with the cwd path.

This is fixed by appending a path separator before comparing/matching:
eg.
cwd = `/foo/bar/`
target buffer = `foo/bar1/baz.txt`

(cherry picked from commit c621f71012)
2024-03-06 10:44:30 +01:00
LiuandSimon Hauser 1bec1c974e fix(builtin.commands): make 0-arg commands be repeatable by @: (#2808)
(cherry picked from commit 9907deaed2)
2024-03-06 10:36:06 +01:00
Sofronie CristianandSimon Hauser 54930e1abf fix(internal.resume): dynamic_preview_title was not respected and title became static (#2696)
* fix(internal.resume): dynamic_preview_title was not respected and title became static

* run stylua

(cherry picked from commit 3d8e051c8c)
2023-09-10 12:54:18 +02:00
Sofronie CristianandSimon Hauser 0847120c40 fix(builtin.pickers): fix wrong picker resuming when using filtering (#2682)
When filtering is applied, `picker:get_index(picker:get_selection_row())` returns index relative to the filtered entry list rather than the original full results. This causes inaccurate indexing into the `cache_pickers` table.

(cherry picked from commit 74be3c3bba)
2023-09-05 16:10:48 +02:00
KalmanderandSimon Hauser 866cd41242 fix(registers): add small delete remove black hole (#2553)
Co-authored-by: Tryggvi Kalman <tryggvikalman@protonmail.com>
(cherry picked from commit be49680937)
2023-06-09 11:27:28 +02:00
Juan BarriosandSimon Hauser b98bc793c4 feat: sorting popup autocomplete items and initial builtin items (#2518)
(cherry picked from commit 8dd1cb2771)
2023-05-24 17:07:01 +02:00
Pete MatsyburkaandSimon Hauser a49c3aa977 fix: exclude directories from oldfiles picker (#2485)
(cherry picked from commit 0900f6fcaa)
2023-05-14 22:18:09 +02:00
Rishikesh VaishnavandSimon Hauser 7bcbbb853d fix: replace default mapping rather than mapping CR directly for history and search pickers (#2506)
(cherry picked from commit 40dc952352)
2023-05-14 22:06:22 +02:00
liughandSimon Hauser b04b051942 fix(builtin.commands): add the command w/ zero arguments to cmd history when executed (#2320)
(cherry picked from commit f409830422)
2023-02-19 14:10:24 +01:00
Fernando SchauenburgandSimon Hauser 4340c22b63 fix: man_pages on macOS and FreeBSD (#2326) (#2352)
macOS 13.x (Ventura, Darwin 22.x) uses `apropos(1)` from FreeBSD, which
does not behave the same as the previous implementation up to macOS 12.

`apropos(1)` takes a regular expression as an argument, so passing "."
causes it to match anything and therefore return all results to be
filtered by Telescope.

(cherry picked from commit d5f6c0911d)
2023-02-19 14:08:46 +01:00
Hasan MahmudandSimon Hauser ebdea0a718 fix(oldfiles): use path separator from builtin utils in cwd_only (#2340)
(cherry picked from commit 83eb2f9756)
2023-01-22 10:08:44 +01:00
emmanueltouzeryandGitHub f7bceabcc9 fix(old_files): opts.cwd_only includes similarly named dirs (#2308)
(cherry picked from commit 04af51dbfb)
2023-01-07 12:45:58 +01:00
Tobias SandSimon Hauser 9cc8a4b2c5 fix: jumplist picker indexing the line after (#2273)
(cherry picked from commit e960efa60e)
2023-01-06 14:32:07 +01:00
ADoyleandSimon Hauser 2bf2d10d19 feat: the parameter "map" of attach_mappings can be list of modes to create mapping on multiple modes (#2220)
(cherry picked from commit d541e0d6e0)
2023-01-06 14:30:45 +01:00
Tushar KuntawarandSimon Hauser c640176e95 fix: builtin register picker better sorting (#2175)
(cherry picked from commit 2428953db3)
2023-01-06 14:26:07 +01:00
stevenandSimon Hauser 83c760cbac fix: move the moon behind show_moon option and update documentation (#2072) (#2079)
(cherry picked from commit b5833a682c)
2022-07-22 18:22:45 +02:00
Simon Hauser 01ad16522c fix: Telescope command lsp_definition call (and potentially more) (#2086)
(cherry picked from commit 737f8cd6b5)
2022-07-22 18:22:37 +02:00
Simon Hauser f838695459 chore: reformat with stylua 0.14.0 2022-07-07 08:27:46 +02:00
Simon HauserandGitHub 0621c1c6ba break: prefix internal files and add deprecation messages (#2032) 2022-07-01 22:20:12 +02:00