@microsoft/inshellisense 0.0.1-rc.23 → 0.0.1-rc.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ # Microsoft Open Source Code of Conduct
2
+
3
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
4
+
5
+ Resources:
6
+
7
+ - [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
8
+ - [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
9
+ - Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
package/README.md ADDED
@@ -0,0 +1,159 @@
1
+ # inshellisense
2
+
3
+ `inshellisense` provides IDE style autocomplete for shells. It's a terminal native runtime for [autocomplete](https://github.com/withfig/autocomplete) which has support for 600+ command line tools. `inshellisense` supports Windows, Linux, & macOS.
4
+
5
+ <p align="center"><img alt="demo of inshellisense working" src="/docs/demo.gif"/></p>
6
+
7
+ ## Getting Started
8
+
9
+ ### Installation
10
+
11
+ **npm (recommended)**
12
+ ```shell
13
+ npm install -g @microsoft/inshellisense
14
+ is init
15
+ ```
16
+ **homebrew (macOS/linux)**
17
+ ```shell
18
+ brew tap microsoft/inshellisense https://github.com/microsoft/inshellisense
19
+ brew install inshellisense
20
+ is init
21
+ ```
22
+
23
+ ### Updating
24
+
25
+ ```shell
26
+ npm install -g @microsoft/inshellisense # OR brew upgrade inshellisense
27
+ is reinit
28
+ ```
29
+
30
+ ### Quickstart
31
+
32
+ After completing the installation, run `is doctor` to verify your installation was successful. You can run `is` to start the autocomplete session for your desired shell. Additionally, inshellisense is also aliased under `inshellisense` after installation.
33
+
34
+ ### Shell Plugin
35
+
36
+ If you'd like to automatically start inshellisense when you open your shell, run the respective command for your shell. After running the command, inshellisense will automatically open when you start any new shell session:
37
+
38
+ ```shell
39
+ # bash
40
+ is init bash >> ~/.bashrc
41
+
42
+ # zsh
43
+ is init zsh >> ~/.zshrc
44
+
45
+ # fish
46
+ is init fish >> ~/.config/fish/config.fish
47
+
48
+ # pwsh
49
+ is init pwsh | Add-Content $profile
50
+
51
+ # powershell
52
+ is init powershell | Add-Content $profile
53
+
54
+ # xonsh
55
+ is init xonsh >> ~/.xonshrc
56
+
57
+ # nushell
58
+ is init nu | save $nu.env-path --append
59
+ ```
60
+
61
+ > [!NOTE]
62
+ > When updating your shell configuration in the future, make sure the inshellisense plugin is the last command in the file. Including commands after it may break the configuration (ex. initializing your shell plugin manager after the inshellisense plugin)
63
+
64
+ ### Usage
65
+
66
+ | Action | Command | Description |
67
+ | ------------------------------------- | ------- | ------------------------------------------------ |
68
+ | Start | `is` | Start inshellisense session on the current shell |
69
+ | Stop | `exit` | Stop inshellisense session on the current shell |
70
+ | Check If Inside Inshellisense Session | `is -c` | Check if shell inside inshellisense session |
71
+
72
+ #### Keybindings
73
+
74
+ All other keys are passed through to the shell. The keybindings below are only captured when the inshellisense suggestions are visible, otherwise they are passed through to the shell as well. These can be customized in the [config](#configuration).
75
+
76
+ | Action | Keybinding |
77
+ | ------------------------- | -------------- |
78
+ | Accept Current Suggestion | <kbd>tab</kbd> |
79
+ | View Next Suggestion | <kbd>↓</kbd> |
80
+ | View Previous Suggestion | <kbd>↑</kbd> |
81
+ | Dismiss Suggestions | <kbd>esc</kbd> |
82
+
83
+ ## Integrations
84
+
85
+ inshellisense supports the following shells:
86
+
87
+ - [bash](https://www.gnu.org/software/bash/)
88
+ - [zsh](https://www.zsh.org/)
89
+ - [fish](https://github.com/fish-shell/fish-shell)
90
+ - [pwsh](https://github.com/PowerShell/PowerShell)
91
+ - [powershell](https://learn.microsoft.com/en-us/powershell/scripting/windows-powershell/starting-windows-powershell) (Windows Powershell)
92
+ - [cmd](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cmd) _(experimental)_
93
+ - [xonsh](https://xon.sh/)
94
+ - [nushell](https://www.nushell.sh/)
95
+
96
+ ## Configuration
97
+
98
+ All configuration is done through a [toml](https://toml.io/) file. You can create this file at `~/.inshellisenserc` or, for XDG compliance, at `~/.config/inshellisense/rc.toml`. The [JSON schema](https://json-schema.org/) for the configuration file can be found [here](https://github.com/microsoft/inshellisense/blob/main/src/utils/config.ts).
99
+
100
+ ### Keybindings
101
+
102
+ You can customize the keybindings for inshellisense by adding a `bindings` section to your config file. The following is the default configuration for the [keybindings](#keybindings):
103
+
104
+ ```toml
105
+ [bindings.acceptSuggestion]
106
+ key = "tab"
107
+ # shift and ctrl are optional and default to false
108
+ shift = false
109
+ ctrl = false
110
+
111
+ [bindings.nextSuggestion]
112
+ key = "down"
113
+
114
+ [bindings.previousSuggestion]
115
+ key = "up"
116
+
117
+ [bindings.dismissSuggestions]
118
+ key = "escape"
119
+ ```
120
+
121
+ Key names are matched against the Node.js [keypress](https://nodejs.org/api/readline.html#readlineemitkeypresseventsstream-interface) events.
122
+
123
+ ### Alias Expansion
124
+
125
+ Inshellisense supports expanding aliases for bash/zsh shells. You can enable alias expansion in your config file:
126
+
127
+ ```toml
128
+ useAliases = true
129
+ ```
130
+
131
+ ### NerdFonts
132
+
133
+ If you are using a [NerdFont](https://www.nerdfonts.com/) patched font, you can enable the NerdFonts support in your config file:
134
+
135
+ ```toml
136
+ useNerdFont = true
137
+ ```
138
+
139
+ ## Contributing
140
+
141
+ This project welcomes contributions and suggestions. Most contributions require you to agree to a
142
+ Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
143
+ the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
144
+
145
+ When you submit a pull request, a CLA bot will automatically determine whether you need to provide
146
+ a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
147
+ provided by the bot. You will only need to do this once across all repos using our CLA.
148
+
149
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
150
+ For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
151
+ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
152
+
153
+ ## Trademarks
154
+
155
+ This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
156
+ trademarks or logos is subject to and must follow
157
+ [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
158
+ Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
159
+ Any use of third-party trademarks or logos are subject to those third-party's policies.
package/SECURITY.md ADDED
@@ -0,0 +1,41 @@
1
+ <!-- BEGIN MICROSOFT SECURITY.MD V0.0.9 BLOCK -->
2
+
3
+ ## Security
4
+
5
+ Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin).
6
+
7
+ If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below.
8
+
9
+ ## Reporting Security Issues
10
+
11
+ **Please do not report security vulnerabilities through public GitHub issues.**
12
+
13
+ Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report).
14
+
15
+ If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp).
16
+
17
+ You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
18
+
19
+ Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20
+
21
+ * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22
+ * Full paths of source file(s) related to the manifestation of the issue
23
+ * The location of the affected source code (tag/branch/commit or direct URL)
24
+ * Any special configuration required to reproduce the issue
25
+ * Step-by-step instructions to reproduce the issue
26
+ * Proof-of-concept or exploit code (if possible)
27
+ * Impact of the issue, including how an attacker might exploit the issue
28
+
29
+ This information will help us triage your report more quickly.
30
+
31
+ If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs.
32
+
33
+ ## Preferred Languages
34
+
35
+ We prefer all communications to be in English.
36
+
37
+ ## Policy
38
+
39
+ Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd).
40
+
41
+ <!-- END MICROSOFT SECURITY.MD BLOCK -->
package/SUPPORT.md ADDED
@@ -0,0 +1,13 @@
1
+ # Support
2
+
3
+ ## How to file issues and get help
4
+
5
+ This project uses GitHub Issues to track bugs and feature requests. Please search the existing
6
+ issues before filing new issues to avoid duplicates. For new issues, file your bug or
7
+ feature request as a new Issue.
8
+
9
+ For help and questions about using this project, create a new Github Discussion.
10
+
11
+ ## Microsoft Support Policy
12
+
13
+ Support for this project is limited to the resources listed above.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/inshellisense",
3
- "version": "0.0.1-rc.23",
3
+ "version": "0.0.1-rc.24",
4
4
  "description": "IDE style command line auto complete",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -13,13 +13,16 @@
13
13
  "bugs": {
14
14
  "url": "https://github.com/microsoft/inshellisense/issues"
15
15
  },
16
- "files": [],
16
+ "files": [
17
+ "*.md",
18
+ "LICENSE"
19
+ ],
17
20
  "optionalDependencies": {
18
- "@microsoft/inshellisense-darwin-x64": "0.0.1-rc.23",
19
- "@microsoft/inshellisense-darwin-arm64": "0.0.1-rc.23",
20
- "@microsoft/inshellisense-linux-x64": "0.0.1-rc.23",
21
- "@microsoft/inshellisense-linux-arm64": "0.0.1-rc.23",
22
- "@microsoft/inshellisense-win32-x64": "0.0.1-rc.23",
23
- "@microsoft/inshellisense-win32-arm64": "0.0.1-rc.23"
21
+ "@microsoft/inshellisense-darwin-x64": "0.0.1-rc.24",
22
+ "@microsoft/inshellisense-darwin-arm64": "0.0.1-rc.24",
23
+ "@microsoft/inshellisense-linux-x64": "0.0.1-rc.24",
24
+ "@microsoft/inshellisense-linux-arm64": "0.0.1-rc.24",
25
+ "@microsoft/inshellisense-win32-x64": "0.0.1-rc.24",
26
+ "@microsoft/inshellisense-win32-arm64": "0.0.1-rc.24"
24
27
  }
25
28
  }