From 3eaff04eb6c09a280fea166276ff20d96c368b6f Mon Sep 17 00:00:00 2001 From: Knox Lively Date: Tue, 5 Mar 2024 16:32:54 -0700 Subject: [PATCH] added note for both codeedit and codeview --- reference/slashcommands.mdx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/reference/slashcommands.mdx b/reference/slashcommands.mdx index 3840699..a949a8d 100644 --- a/reference/slashcommands.mdx +++ b/reference/slashcommands.mdx @@ -60,12 +60,13 @@ Shows client version information and settings. ## /codeedit -View and edit a text file inline using rich native UI. Includes syntax highlighting, code folding, and completion. +View and edit files inline using rich native UI. Includes syntax highlighting, code folding, and completion. ``` Usage: codeedit [filename] /codeedit [filename] + [lang=javascript] codeedit [filename] [lang=json] codeedit hello.json ``` @@ -77,7 +78,9 @@ Shortcuts: - `Cmd-D` - Closes the editor. Note, this will prevent future saves (and shrink the editor to fit the current size of the content). - `Cmd-F` - Search the current file for a string using _whole word_, _regex_ and _match case_ options. `Cmd-F` also supports _find and replace_ by simply clicking the green dropdown arrow in the find box. -**Note:** A live preview of Markdown files can also be found in codedit by clicking the `show preview` button in the top right of the editor. This allows you to edit and render Markdown content in real-time, displaying the output adjacent to the code editor for convenient and immediate visual feedback. +**Note:** A live preview of Markdown files can also be found in codeedit by clicking the `show preview` button in the top right of the editor. This allows you to edit and render Markdown content in real-time, displaying the output adjacent to the code editor for convenient and immediate visual feedback. + +**Note:** See [codeview](#codeview) to view files in a _view only_ mode using the same native UI. ## /codeview @@ -93,6 +96,9 @@ codeview [filename] Both with and without the slash are allowed. Filename resolves against the current remote and current working directory. +**Note:** See [codeedit](#codeedit) to edit files using the same native UI. + + ## /comment Add a text comment into the current window.