Skip to content

Commit

Permalink
placed the editor opening correctly
Browse files Browse the repository at this point in the history
earlier described in the open command , the editor opening is actually a flag of the list assets command , so that has been replaced , refactored and rewritten correctly .
  • Loading branch information
sambhavnoobcoder authored Aug 10, 2024
1 parent 94e8b7a commit 52568c5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/extensions-plugins/cli/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ Displays your `x` most recent assets.
pieces list assets x
```

#### List Editor Opening
Opens the Assets in the configured editor of choice.

```bash
list assets -e
```

```-e``` is a flag that opens the asset in the configured external editor. Editor of choice can be configured using config command.

#### List Applications
Lists all registered applications.

Expand All @@ -76,11 +85,9 @@ pieces list models
Opens an asset from a list or search. If only "open" is used, it opens the most recent asset. This also creates a link to the asset's code.
```bash
pieces open [ITEM_INDEX] [-e]
pieces open [ITEM_INDEX]
```
```-e``` is an optional flag . It Opens the asset in the configured external editor. Editor of choice can be configured using config command.

##### Editor Configuration:
You can configure an external editor to open assets for editing. Use the following command to set your preferred editor:
Expand Down

0 comments on commit 52568c5

Please sign in to comment.