From 5af11fbe66825fae9082721f33680e5c72ecc7c8 Mon Sep 17 00:00:00 2001 From: Oliver Schwendener Date: Mon, 28 May 2018 07:26:20 +0200 Subject: [PATCH 1/2] Added ueli command to check for updates --- src/ts/ipc-channels.ts | 1 + src/ts/main.ts | 4 ++++ src/ts/search-plugins/ueli-commands-plugin.ts | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/src/ts/ipc-channels.ts b/src/ts/ipc-channels.ts index 1f3c97f25..5765e911e 100644 --- a/src/ts/ipc-channels.ts +++ b/src/ts/ipc-channels.ts @@ -14,6 +14,7 @@ export class IpcChannels { public static readonly commandLineOutput = "command-line-output"; public static readonly ueliReload = `${UeliHelpers.ueliCommandPrefix}reload`; public static readonly ueliExit = `${UeliHelpers.ueliCommandPrefix}exit`; + public static readonly ueliCheckForUpdates = `${UeliHelpers.ueliCommandPrefix}check-for-updates`; public static readonly exitCommandLineTool = "exit-command-line-tool"; public static readonly resetCommandlineOutput = "reset-commandline-output"; public static readonly resetUserInput = "reset-user-input"; diff --git a/src/ts/main.ts b/src/ts/main.ts index d0f114bf3..a263554f1 100644 --- a/src/ts/main.ts +++ b/src/ts/main.ts @@ -265,3 +265,7 @@ ipcMain.on(IpcChannels.resetUserInput, (): void => { ipcMain.on(IpcChannels.showHelp, (): void => { new WebUrlExecutor().execute("https://github.com/oliverschwendener/ueli#ueli"); }); + +ipcMain.on(IpcChannels.ueliCheckForUpdates, (): void => { + autoUpdater.checkForUpdates(); +}); diff --git a/src/ts/search-plugins/ueli-commands-plugin.ts b/src/ts/search-plugins/ueli-commands-plugin.ts index eefc2098f..8e1548469 100644 --- a/src/ts/search-plugins/ueli-commands-plugin.ts +++ b/src/ts/search-plugins/ueli-commands-plugin.ts @@ -27,6 +27,10 @@ export class UeliCommandsSearchPlugin implements SearchPlugin { executionArgument: UeliHelpers.configFilePath, name: "Edit configuration file", } as UeliCommand, + { + executionArgument: IpcChannels.ueliCheckForUpdates, + name: "Check for updates", + }, ]; } From b3b19cf3d0d960fe5e4f0167ab118de55b6be963 Mon Sep 17 00:00:00 2001 From: Oliver Schwendener Date: Tue, 29 May 2018 15:37:58 +0200 Subject: [PATCH 2/2] Updated readme --- README.md | 69 +++++++++++++++++++++++++------------------------------ 1 file changed, 31 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 548b69feb..cec9b38fd 100644 --- a/README.md +++ b/README.md @@ -37,26 +37,26 @@ This is a keystroke launcher for Windows and macOS. ### Program search -![Feature Program search](img/doc/features/ueli-feature-program-search.png) - * You can search for installed programs * Use the arrow keys to scroll up and down * Presss Enter to launch the selected program -### Files and folder search +![Feature Program search](img/doc/features/ueli-feature-program-search.png) -![Feature home folder](img/doc/features/ueli-feature-home-folder.png) +### Files and folder search * You can search files and folders in your home folder * Press Enter to open the selected file/folder -### Open URLs with your default web browser +![Feature home folder](img/doc/features/ueli-feature-home-folder.png) -![Feature URL](img/doc/features/ueli-feature-url.png) +### Open URLs with your default web browser * Type in a URL * Press enter to open the URL with your default web browser +![Feature URL](img/doc/features/ueli-feature-url.png) + ### Open default mail program * Type in a email address @@ -66,22 +66,10 @@ This is a keystroke launcher for Windows and macOS. ### Web search engines -![Feature web search engines](img/doc/features/ueli-feature-web-search.png) +* You can use web search engines with a prefix and `?`. + * Example: `g?{your search term}` -* You can [customize](#customization) web search engines like this: - -``` json -"webSearches": [ - { - "icon": "...", - "name": "Google", - "prefix": "g", - "url": "https://google.com/search?q=" - } -] -``` - -Now you can type in `g?{your search term}` to launch the web search engine in your default browser. +![Feature web search engines](img/doc/features/ueli-feature-web-search.png) Default web search engines: @@ -94,9 +82,20 @@ Default web search engines: |`w`|[Wikipedia](https://wikipedia.org)| |`yt`|[YouTube](https://youtube.com)| -### Execute commandline tools +* You can [customize](#customization) web search engines like this: -![Feature commandline](img/doc/features/ueli-feature-commandline.png) +``` json +"webSearches": [ + { + "icon": "...", + "name": "My Search Engine", + "prefix": "m", + "url": "https://my-search-engine.com/search?q=" + } +] +``` + +### Execute commandline tools * Start a commandline tool with the `>` prefix * Example: `>ipconfig /all` @@ -104,18 +103,18 @@ Default web search engines: > Note: you can **not** interact with the commandline tool. You only see the output. -### Browse file system +![Feature commandline](img/doc/features/ueli-feature-commandline.png) -![Feature file browser](img/doc/features/ueli-feature-file-browser.png) +### Browse file system * You can browse your file system by typing in a filepath * Example: `C:\Users` or `/Applications` * Press `Enter` to open the file or folder * Press `Tab` for autocompletion -### Calculator +![Feature file browser](img/doc/features/ueli-feature-file-browser.png) -![Feature calculator](img/doc/features/ueli-feature-calculator.png) +### Calculator * Calculate simple math, matrix, symbolic function, convert unit and a lot more. * Example: @@ -123,9 +122,9 @@ Default web search engines: * `1 km/h to mile/h` * `a = [1, 2, 3]; a * 2` -### Custom commands +![Feature calculator](img/doc/features/ueli-feature-calculator.png) -![Feature custom commands](img/doc/features/ueli-feature-custom-commands.png) +### Custom commands * You can [customize](#customization) custom commands to * Start command line tools @@ -138,18 +137,12 @@ Default web search engines: "name": "ping", "executionArgument": "start ping 8.8.8.8 -t", "icon": "..." - }, - { - "name": "Data", - "executionArgument": "start \"\" \"C:\\Data\"" - }, - { - "name": "code", - "executionArgument": "start \"\" \"C:\\My-Programs\\Visual Studio Code\\Visual Studio Code.lnk\"" - }, + } ] ``` +![Feature custom commands](img/doc/features/ueli-feature-custom-commands.png) + ### Keyboard shortcuts |Keyboard shortcut|Description|