Commit Graph

35 Commits

Author SHA1 Message Date
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
hrsh7th
ad85ac623d Initial commit 2021-08-03 23:51:11 +09:00