From fbee6202c4ca07539b7f8c77034e6c46ccb8c528 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Sat, 23 Jan 2021 18:34:36 +0100 Subject: [PATCH 1/9] Simplify snippet filling The `help` attribute now is directly replaced by a `TODO` (instead of a regular placeholder) because it should require considerable time to fill in this attribute and may break the 'speed' of the placeholder editing. --- client/src/snippets.json | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/client/src/snippets.json b/client/src/snippets.json index 8d208c5..8785dc4 100644 --- a/client/src/snippets.json +++ b/client/src/snippets.json @@ -45,14 +45,14 @@ "prefix": "gx-conditional-select", "body": [ "", - " ", - " ", - " ", + " ", + " ", + " ", " ", - " ", + " ", " $0", " ", - " ", + " ", " ", "" ], @@ -61,10 +61,10 @@ "Select parameter with 3 options": { "prefix": "gx-select-3-param", "body": [ - "", - " ", - " ", - " ", + "", + " ", + " ", + " ", "" ], "description": "Select parameter with 3 options" @@ -72,12 +72,12 @@ "Select parameter with 5 options": { "prefix": "gx-select-5-param", "body": [ - "", - " ", - " ", - " ", - " ", - " ", + "", + " ", + " ", + " ", + " ", + " ", "" ], "description": "Select parameter with 5 options" From aa096a0c7b5dec9bc3c0c0d22f44dce280346f6c Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Sat, 23 Jan 2021 18:37:36 +0100 Subject: [PATCH 2/9] Add dashes to arguments and remove name attribute By default all `param` snippets include only the `argument` attribute instead of the `name`. --- client/src/snippets.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/client/src/snippets.json b/client/src/snippets.json index 8785dc4..fea6bcf 100644 --- a/client/src/snippets.json +++ b/client/src/snippets.json @@ -85,42 +85,42 @@ "Boolean parameter": { "prefix": "gx-boolean-param", "body": [ - "" + "" ], "description": "Boolean parameter" }, "Integer parameter": { "prefix": "gx-integer-param", "body": [ - "" + "" ], "description": "Integer parameter" }, "Float parameter": { "prefix": "gx-float-param", "body": [ - "" + "" ], "description": "Float parameter" }, "Data parameter with single required dataset": { "prefix": "gx-data-single-param", "body": [ - "" + "" ], "description": "Data parameter with single required dataset" }, "Data parameter with multiple required datasets": { "prefix": "gx-data-multiple-param", "body": [ - "" + "" ], "description": "Data parameter with multiple required datasets" }, "Text parameter": { "prefix": "gx-text-param", "body": [ - "", + "", " ", " ", " ", @@ -140,7 +140,7 @@ " ", " ", " ", - " ", " ", " ", @@ -149,7 +149,7 @@ " ", " ", " ", - " ", + " ", " ", "" ], From cb293e11055dda9438493514be526ffa9c5cb94a Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Sat, 23 Jan 2021 18:46:07 +0100 Subject: [PATCH 3/9] Add default values to avoid self-closing on document save --- client/src/snippets.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/snippets.json b/client/src/snippets.json index fea6bcf..7cc87db 100644 --- a/client/src/snippets.json +++ b/client/src/snippets.json @@ -14,10 +14,10 @@ " ", " ", " ", - " ", + " topic_TODO", " ", " ", - " ", + " operation_TODO", " ", " ", " $1", @@ -35,7 +35,7 @@ " TODO: Fill in help in reStructuredText (https://en.wikipedia.org/wiki/ReStructuredText)", " ]]>", " ", - " ", + " ", " ", "" ], From 57be066209eb539c1f67b3e73757b55cfdb33a2e Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Sat, 23 Jan 2021 18:46:51 +0100 Subject: [PATCH 4/9] Reorder placeholders --- client/src/snippets.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/snippets.json b/client/src/snippets.json index 7cc87db..7db9662 100644 --- a/client/src/snippets.json +++ b/client/src/snippets.json @@ -2,13 +2,13 @@ "Basic Galaxy tool": { "prefix": "gx-tool", "body": [ - "", + "", " $5", " ", " $0", " ", " ", - " ${3:0.1.0}", + " ${4:0.1.0}", " 0", " ", " ", From 5fbbf9d4b137c5b10205f6602144af0ea41d2c3a Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Sat, 23 Jan 2021 18:51:01 +0100 Subject: [PATCH 5/9] Add some hints in the comments --- client/src/snippets.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/snippets.json b/client/src/snippets.json index 7db9662..32fa1f7 100644 --- a/client/src/snippets.json +++ b/client/src/snippets.json @@ -23,13 +23,15 @@ " $1", " ", " ", " ", " ", " ", " ", " ", + " ", " ", " Date: Sat, 23 Jan 2021 18:51:51 +0100 Subject: [PATCH 6/9] Include minimum help boilerplate --- client/src/snippets.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/client/src/snippets.json b/client/src/snippets.json index 32fa1f7..0d2908e 100644 --- a/client/src/snippets.json +++ b/client/src/snippets.json @@ -34,7 +34,23 @@ " ", " ", " ", " ", " ", From 1412b4e5232727a3441f701e9c9b15c2f37c6f26 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Sat, 23 Jan 2021 19:11:15 +0100 Subject: [PATCH 7/9] Add hint to reStructuredText online editor --- client/src/snippets.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/snippets.json b/client/src/snippets.json index 0d2908e..23b4128 100644 --- a/client/src/snippets.json +++ b/client/src/snippets.json @@ -39,7 +39,8 @@ "", "**What it does**", "", - "TODO: Fill in help in reStructuredText format (https://en.wikipedia.org/wiki/ReStructuredText)", + "TODO: Fill in help in reStructuredText format (https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html)", + "Hint: If you want, you can preview your help section using this online editor: http://rst.ninjs.org/", "", "Usage", ".....", From 65fbf749090076a6198884e7460d2f9d62b5231d Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Sat, 23 Jan 2021 19:18:14 +0100 Subject: [PATCH 8/9] Add dashes in boolean param as default value --- client/src/snippets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/snippets.json b/client/src/snippets.json index 23b4128..1eda33a 100644 --- a/client/src/snippets.json +++ b/client/src/snippets.json @@ -104,7 +104,7 @@ "Boolean parameter": { "prefix": "gx-boolean-param", "body": [ - "" + "" ], "description": "Boolean parameter" }, From 2af30d608621de05cce51e6bdddf380a8cb2d5f6 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Sat, 23 Jan 2021 19:19:58 +0100 Subject: [PATCH 9/9] Add TODO as default value for help attributes --- client/src/snippets.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/client/src/snippets.json b/client/src/snippets.json index 1eda33a..d07a7f2 100644 --- a/client/src/snippets.json +++ b/client/src/snippets.json @@ -64,14 +64,14 @@ "prefix": "gx-conditional-select", "body": [ "", - " ", - " ", + " ", " ", + " ", " ", - " ", + " ", " $0", " ", - " ", + " ", " ", "" ], @@ -80,10 +80,10 @@ "Select parameter with 3 options": { "prefix": "gx-select-3-param", "body": [ - "", - " ", + "", " ", " ", + " ", "" ], "description": "Select parameter with 3 options" @@ -91,12 +91,12 @@ "Select parameter with 5 options": { "prefix": "gx-select-5-param", "body": [ - "", - " ", + "", " ", " ", " ", " ", + " ", "" ], "description": "Select parameter with 5 options" @@ -111,35 +111,35 @@ "Integer parameter": { "prefix": "gx-integer-param", "body": [ - "" + "" ], "description": "Integer parameter" }, "Float parameter": { "prefix": "gx-float-param", "body": [ - "" + "" ], "description": "Float parameter" }, "Data parameter with single required dataset": { "prefix": "gx-data-single-param", "body": [ - "" + "" ], "description": "Data parameter with single required dataset" }, "Data parameter with multiple required datasets": { "prefix": "gx-data-multiple-param", "body": [ - "" + "" ], "description": "Data parameter with multiple required datasets" }, "Text parameter": { "prefix": "gx-text-param", "body": [ - "", + "", " ", " ", " ",