shuttle icon indicating copy to clipboard operation
shuttle copied to clipboard

Possible to put shortcuts in order?

Open lindseydiloreto opened this issue 5 years ago • 6 comments

Is it possible to put the shortcuts in order manually?

It seems they are always shown in alphabetical order, regardless of how they are sorted in the JSON.

lindseydiloreto avatar Mar 08 '19 00:03 lindseydiloreto

Hello, Yes this is in #234 I need to compile a binary.

thshdw avatar Mar 08 '19 00:03 thshdw

Excellent, thank you! Looking forward to this. 🙂

lindseydiloreto avatar Mar 08 '19 04:03 lindseydiloreto

Has this been implemented in a version that is available for download? I installed 1.2.8, which I downloaded from https://fitztrev.github.io/shuttle/

ryanmasuga avatar Jan 25 '20 15:01 ryanmasuga

I've compiled master and it doesn't seem to work. What is the correct way to have entries manually ordered?

I have the following snippet, in the order I want them to appear, the first two followed by a separator:

	"Network": [
		{
			"name": "adevice (1)",
			"cmd": "bla blah;"
		},
		{
			"name": "adevice (2)[---]",
			"cmd": "bla blah;"
		},
		{
			"name": "aaadevice (1)",
			"cmd": "bla blah;"
		},
	]

The separator shows up where I want but the last item always gets sorted to the top. I have tried:

  1. Preceding all of the names with [aaa];
  2. Putting [aaa] and the end of all the names;
  3. Only putting [aaa] in front of the first two;
  4. Only putting [aaa] in front of the last entry;

What am I missing?

EDIT Figured it out:

	"Network": [
		{
			"name": "[aaa]adevice (1)",
			"cmd": "bla blah;"
		},
		{
			"name": "[bbb]adevice (2)[---]",
			"cmd": "bla blah;"
		},
		{
			"name": "[ccc]aaadevice (1)",
			"cmd": "bla blah;"
		},
	]

tsimmons avatar Feb 20 '20 17:02 tsimmons

I've actually managed to sort mine using some invisible character trick

‏‏‎ ‎ <- here is an invisible character that renders as a space in VS Code, but it is invisible in Shuttle. If you prepend this to a name, it will go on top of the list

image

In my example I prepended this character to dev, stage and prod and it seems to work fine Hope it helps

eugeniumegherea avatar Jul 31 '20 06:07 eugeniumegherea

I can't get separators to work, and at this point I've learned to live with whatever order Shuttle wats to put these things in. ¯_(ツ)_/¯

ryanmasuga avatar Jul 31 '20 14:07 ryanmasuga