-
Notifications
You must be signed in to change notification settings - Fork 29.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve folder/file terminal completions (#234363)
- Loading branch information
1 parent
143f300
commit f2fba1b
Showing
5 changed files
with
180 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
const cdSpec: Fig.Spec = { | ||
name: 'cd', | ||
description: 'Change the shell working directory', | ||
args: { | ||
name: 'folder', | ||
template: 'folders', | ||
isVariadic: true, | ||
|
||
suggestions: [ | ||
{ | ||
name: '-', | ||
description: 'Switch to the last used folder', | ||
hidden: true, | ||
}, | ||
{ | ||
name: '~', | ||
description: 'Switch to the home directory', | ||
hidden: true, | ||
}, | ||
], | ||
} | ||
}; | ||
|
||
export default cdSpec; |
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.