From 52568c542135dcd2361d1486959019f2bc3d768a Mon Sep 17 00:00:00 2001 From: Sambhav Dixit <94298612+sambhavnoobcoder@users.noreply.github.com> Date: Sat, 10 Aug 2024 22:08:51 +0530 Subject: [PATCH] placed the editor opening correctly 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 . --- docs/extensions-plugins/cli/commands.mdx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/extensions-plugins/cli/commands.mdx b/docs/extensions-plugins/cli/commands.mdx index f7df2667b..66192e9a9 100644 --- a/docs/extensions-plugins/cli/commands.mdx +++ b/docs/extensions-plugins/cli/commands.mdx @@ -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. @@ -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: