File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 {"name" : " Rename" , "command" : " rename" },
99 {"name" : " Reorder" , "command" : " reorder" },
1010 {"name" : " Tidy" , "command" : " tidy" },
11+ {"name" : " Run all" , "command" : " all" },
1112 {"separator" : true },
12- {"name" : " Run all ..." , "command" : " options" }
13+ {"name" : " Run custom ..." , "command" : " options" }
1314 ]
14- }
15+ }
Original file line number Diff line number Diff line change @@ -147,6 +147,12 @@ figma.clientStorage.getAsync('UUID').then(data => {
147147 cmdTidy ( )
148148 setTimeout ( ( ) => figma . closePlugin ( ) , 100 )
149149 } else
150+ if ( cmd == 'all' ) {
151+ cmdTidy ( )
152+ cmdReorder ( )
153+ cmdRename ( )
154+ setTimeout ( ( ) => figma . closePlugin ( ) , 100 )
155+ } else
150156 if ( cmd == 'options' ) {
151157 figma . showUI ( __html__ , { width : 320 , height : 360 } )
152158 figma . ui . postMessage ( { type : 'init' , UUID : UUID , cmd : cmd } )
You can’t perform that action at this time.
0 commit comments