As a user, I like the option to build my own workflow, for example, every working morning i open the same programs (["vs code", "visual studio", "git-fork" .... ]) , a nice feature could be to add the ability to config in the ueli.config.json a list of workflows that run a list of command callable via ueli
maybe something like this 馃槃 in the .json
"workfolows": [
{
"name": "work",
"actions": [
{
"url": "path\\to\\vs code",
"type": "program"
},
{
"url": "path\\to\\git-fork",
"type": "program"
},
{
"url": "path\\to\\insomnia",
"type": "program"
},
{
"url": "https://www.reddit.com/r/webdev",
"type": "link"
}
]
},
{
"name": "home",
"actions": [
{
"url": "https://www.youtube.com/",
"type": "link"
},
{
"url": "https://www.netflix.com/",
"type": "link"
}
]
}
]
Will look into it as soon as possible!
take your time, it's nothing urgent 馃槃
On windows you could do something like this
>cmd.exe /k "start https://google.com & start https://www.reddit.com/r/webdev & code"
but currently there is an issue here https://github.com/oliverschwendener/ueli/blob/d3ecfb429de4d70c0613e2271b32dca742991b6c/src/ts/helpers/string-helpers.ts#L26-L31 thats splits everything to seperate command. When you would replace .split(/\s/g); to .match(/"(?:\\"|\\\\|[^"])*"|\S+/g); it would work.
EDIT: Actually i would do this
Lines 6-8
public static splitIntoWords(value: string): string[] {
return value.match(/"(?:\\"|\\\\|[^"])*"|\S+/g) || [""];
}
And lines 26-31
public static stringToWords(value: string): string[] {
const words = StringHelpers.splitIntoWords(value);
return words.filter((w): boolean => {
return !StringHelpers.stringIsWhiteSpace(w);
});
}
I tried to fork and thest this but i'm getting Module not found: Error: Can't resolve 'worker_threads' in 'C:\Users\AlanAasmaa\Code\ueli\node_modules\write-file-atomic so maybe next time.
Good idea! Because I am working on a total rewrite you have to wait for this until I release a next major version.
This is included in the newest v8.0.0 release.
Most helpful comment
This is included in the newest v8.0.0 release.