-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change does several things: 1. Adds back `clink.slash_translation()` API for backward compatibility. 2. Adds new `clink.translateslashes()` API. 3. Adds new `matches.translate_slashes` setting. The default behavior for built in functionality is the same: file and directory matches are translated to use the system path separator (backslash on Windows). The default behavior for custom generators has changed: adding matches of type 'file' or 'dir' or 'none' (or not specifying type) now applies the same slash translation as the built in file match generator. Adding other match types is never affected by any slash translations. The new `matches.translate_slashes` setting overrides the default slash translation mode: - `off` turns off slash translation for custom generators. - `system` is the behavior described above. - `slash` translates to forward slashes. - `backslash` translates to backslashes. The `clink.translateslashes()` and `clink.slash_translation()` APIs can override the behavior for the current completion invocation.
- Loading branch information
1 parent
539e9f3
commit 3b2d3fb
Showing
10 changed files
with
199 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.