mirror of
https://github.com/sstallion/obsidian-command-line.git
synced 2026-07-22 05:42:07 +00:00
Rename windows-command to batch-command (#6)
This commit is contained in:
parent
e5fb073db2
commit
e1efc73f81
3 changed files with 11 additions and 7 deletions
|
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
|
||||
- Renamed `windows-command` to `batch-command` for consistency
|
||||
|
||||
## [1.0.0] - 2025-03-11
|
||||
|
||||
Initial release
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ Command line code blocks are identified using one of the following languages:
|
|||
|
||||
| Name | Highlight | Prompt Pattern | Default Prompt | Continuation |
|
||||
| -------------------- | ------------ | -------------- | -------------- | ------------ |
|
||||
| `batch-command` | `batch` | `/\S*?>/` | `C:\>` | `^` |
|
||||
| `powershell-command` | `powershell` | `/\S*?>/` | `PS>` | `` ` `` |
|
||||
| `shell-command` | `shell` | `/\S*?[#$%]/` | `$` | `\` |
|
||||
| `windows-command` | `batch` | `/\S*?>/` | `C:\>` | `^` |
|
||||
|
||||
For example, copying the following code block to the clipboard will remove the
|
||||
prompt and output while preserving line continuations and white space:
|
||||
|
|
|
|||
12
src/main.ts
12
src/main.ts
|
|
@ -34,6 +34,12 @@ const DEFAULT_SETTINGS: Partial<CommandLineSettings> = {
|
|||
highlight: false,
|
||||
normalize: false,
|
||||
languages: {
|
||||
"batch-command": {
|
||||
defaultPrompt: "C:\\>",
|
||||
promptPattern: "^\\S*?>\\s*",
|
||||
continuationPattern: "\\^$",
|
||||
alias: "batch",
|
||||
},
|
||||
"powershell-command": {
|
||||
defaultPrompt: "PS>",
|
||||
promptPattern: "^\\S*?>\\s*",
|
||||
|
|
@ -46,12 +52,6 @@ const DEFAULT_SETTINGS: Partial<CommandLineSettings> = {
|
|||
continuationPattern: "\\\\$",
|
||||
alias: "shell",
|
||||
},
|
||||
"windows-command": {
|
||||
defaultPrompt: "C:\\>",
|
||||
promptPattern: "^\\S*?>\\s*",
|
||||
continuationPattern: "\\^$",
|
||||
alias: "batch",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue