Skip to content

Commit

Permalink
fix description command can't be edited
Browse files Browse the repository at this point in the history
  • Loading branch information
bishoy-at-pieces committed Sep 18, 2024
1 parent 645745b commit 384d9b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions assets/export_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
- Tab Trigger: <a href='subl:pieces_edit_snippet_sheet {{"field":"trigger","sheet_id":{sheet_id}}}'>{trigger}</a>
- Description: <a href='subl:pieces_edit_snippet_sheet {{"field":"description","sheet_id":{sheet_id}}}'>{description}</a>
- Description: <a href='subl:pieces_edit_snippet_sheet {{"field":"asset_description","sheet_id":{sheet_id}}}'>{description}</a>
- Scope: <a href='subl:pieces_edit_snippet_sheet {{"field":"scope","sheet_id":{sheet_id}}}'>{scope}</a>
Expand Down Expand Up @@ -116,7 +116,7 @@ def run(self,sheet_id):
kwargs={
"asset_id":instance.asset_id,
"content":instance.content,
"description":instance.asset_description,
"asset_description":instance.asset_description,
"scope":instance.scope,
"trigger":instance.trigger
}
Expand All @@ -138,10 +138,11 @@ def run(self,field:str,sheet_id):
field (str):
- trigger
- scope
- description
- asset_description
- content
- asset_id
"""
print(field)
self.field = field
self.instance = PiecesExportAssetToSublimeCommand.get_instance(sheet_id)
self.window.show_input_panel(f"{field.title()}:", getattr(self.instance,field), self.on_done, None, None)
Expand Down

0 comments on commit 384d9b7

Please sign in to comment.