Commit Graph
4 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 TrewandGitHub 83133f66c8 fix(utils): is_uri empty path (#2671) 2023-08-29 10:36:56 -04:00
James TrewandGitHub 1dfa66b845 perf(utils): linear scan is_uri (#2648) 2023-08-28 04:26:09 +00:00
James TrewandGitHub 2d92125620 test(utils): add tests for is_uri (#2645) 2023-08-10 00:34:54 +00:00