davidsierradz
6eeaf0f396
Add show_hidden_files_by_default option ( #2 )
...
MR requested at https://github.com/hrsh7th/cmp-path/pull/66#issuecomment-1938589117
Reviewed-on: https://codeberg.org/FelipeLema/cmp-async-path/pulls/2
Co-authored-by: davidsierradz <davidsierradz@gmail.com>
Co-committed-by: davidsierradz <davidsierradz@gmail.com>
2024-02-15 20:59:14 +00:00
Hoang Nguyen
dda6ddb1df
fix: hidden entries not showing up in the candidate list
...
`include_hidden` variable was accessed out of scope.
2024-02-12 00:00:00 +07:00
Felipe Lema
f872e56565
luatexts→vim.json.{encode,decode}
2024-02-02 17:10:30 -03:00
Felipe Lema
366aa70a3d
implement async using luv's thread pool + serialization
2023-01-16 16:19:46 -03:00
Felipe Lema
a17dc59b24
silence warnings
2022-12-30 10:25:46 -03:00
Felipe Lema
8e71ca21ba
lua-format
2022-12-27 14:49:23 -03:00
Felipe Lema
f4bfff1637
rename paths
2022-12-27 14:46:31 -03:00
amarakon
d5a571d79c
Change visual_slash
to label_trailing_slash
2022-10-03 02:19:15 -04:00
amarakon
78a7bce3bc
Add visual_slash
option with the default true
2022-10-03 01:02:17 -04:00
amarakon
1267fcfe88
Remove the leading slash from the directory label
2022-10-02 23:12:54 -04:00
Josef Litoš
108f4c32cc
added group check for ../../
2022-07-26 12:42:06 +02:00
Josef Litoš
3380dc962e
disallowed . and ~ from last dir char
2022-07-26 12:26:23 +02:00
Josef Litoš
691f09425f
used the original, removing allow_space
2022-07-26 12:00:23 +02:00
Josef Litoš
e8ea7a2a38
reverted 1 commit + trailing space makes new path
2022-07-26 11:32:16 +02:00
hrsh7th
bee12940fd
Improve space handling
2022-07-26 16:43:06 +09:00
Daan Goossens
c495c8aedd
fix: file previewer
2022-07-25 12:48:06 +02:00
registerGen
f3677a7530
fix: fix an issue caused by #44
2022-06-29 18:17:40 +08:00
registerGen
222ac1ce7e
feat: syntax highlighting in preview ( #36 )
2022-06-29 14:53:34 +08:00
schrc3b6
f244d8c333
added option to change the base dir for relative paths
2022-02-02 18:34:52 +01:00
Lucas Servén Marín
e9687f3db1
lua: add option for automatic trailing slash
...
This commit adds a new option to the source to automatically include
trailing slashes in the inserted text when completing a directory. This
option is disabled by default.
Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
2022-01-17 15:29:40 +01:00
Dmytro Meleshko
a41bd7d669
Stop using goto to support Lua 5.1
2021-12-30 13:48:24 +02:00
hrsh7th
81d88dfcaf
Fix directory candidates behavior
2021-12-20 16:53:39 +09:00
hrsh7th
94cc3117eb
Merge pull request #26 from dmitmel/main
...
Autocomplete special files, but don't generate previews for them, clean up stat-related code
2021-12-20 12:56:25 +09:00
Marcus Heng
03c004bde5
Fix path completions break after second /
...
Signed-off-by: Marcus Heng <marcushwz@gmail.com>
2021-12-18 21:34:29 +08:00
Dmytro Meleshko
0cfa5a31d8
Autocomplete special files, but don't generate previews for them, clean up stat-related code
2021-12-17 16:32:18 +02:00
hrsh7th
56a0fe5c46
Fix quotes
2021-12-14 23:40:48 +09:00
hrsh7th
d83839ae51
Remove trigger chars
2021-12-02 11:00:37 +09:00
hrsh7th
e30d3fdee6
Merge pull request #16 from sudoforge/10/relative-paths-without-a-leading-slash
...
feat: support relative paths without a leading forward slash
2021-11-29 12:22:52 +09:00
Dmytro Meleshko
ba1fe4fd51
Avoid generating previews for device files
2021-11-27 13:05:37 +02:00
Benjamin Denhartog
d4544fc965
feat: support relative paths without a leading forward slash
...
This patch adds support for triggering path completion on `"` and `'`
(double and single quotes), limited to relative paths that start without
a leading forward slash.
closes #10
2021-11-24 20:44:43 -07:00
Jean-Philippe Braun
7077ed61b0
Get filetype for unsupported FS
...
As per http://docs.libuv.org/en/v1.x/fs.html `uv_fs_scandir_next`
returns a type only for btrfs, ext2, ext3 and ext4 FS.
2021-11-15 09:16:41 +01:00
hrsh7th
97661b0023
Merge pull request #12 from dmitmel/main
...
Fix crash on undefined environment variables
2021-10-27 17:22:41 +09:00
Dmytro Meleshko
a77761ab25
Fix #11
2021-10-24 12:46:18 +03:00
hrsh7th
387b740fc1
Merge pull request #2 from tzachar/main
...
Add file preview
2021-10-22 19:41:36 +09:00
Dmytro Meleshko
515b8c0baf
fix crashes when completing a path after ~/ and with an unmatched {
2021-10-18 13:37:27 +03:00
hrsh7th
2b1d31fef7
Support cmdline
2021-10-17 00:26:07 +09:00
Nir Tzachar
eae0158feb
more efficient binary file detection
2021-10-06 17:42:53 +03:00
Nir Tzachar
f7d350a436
ignore binary files
2021-10-06 15:55:04 +03:00
Nir Tzachar
9b4c53f2e8
Merge branch 'main' of https://github.com/hrsh7th/cmp-path into hrsh7th-main
2021-10-06 14:35:53 +03:00
hrsh7th
8d88c92dd5
Fix #7
2021-10-06 20:23:03 +09:00
py2048
833f9f5a38
Fix hidden files bug
2021-09-11 23:21:08 +07:00
hrsh7th
3a29c5131a
Fix PATH_REGEX
2021-09-08 13:36:26 +09:00
hrsh7th
8450341c7e
Don't include '/' as keywords
2021-09-06 19:28:26 +09:00
hrsh7th
8889960ab7
Regex compile first
2021-09-04 21:28:21 +09:00
hrsh7th
62ecedd4bd
Avoid vim.fn.expand
2021-09-04 21:27:26 +09:00
Nir Tzachar
f3de33728e
misc
2021-09-02 14:23:11 +03:00
Nir Tzachar
868f1206ff
move reading lines to resolve
2021-09-02 12:36:15 +03:00
Nir Tzachar
c0d3a5e3ab
add file preview
2021-09-02 12:10:19 +03:00
hrsh7th
175a385424
Fix filename completion
2021-08-10 03:21:32 +09:00
hrsh7th
b5e157c8ae
Support chained completion
2021-08-09 14:40:59 +09:00