Skip to content

Commit

Permalink
Formatted files with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschwendener committed Apr 26, 2021
1 parent c7d7dc4 commit c080bf1
Show file tree
Hide file tree
Showing 131 changed files with 1,814 additions and 1,395 deletions.
107 changes: 53 additions & 54 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,34 @@ This is a keystroke launcher for Windows and macOS.

## Table of contents

* [Installation](#installation)
* [Features](#features)
* [Keyboard shortcuts](#keyboard-shortcuts)
* [Settings](#settings)
* [Updating](#updating)
* [Privacy](#privacy)
* [Known bugs](#known-bugs)
* [Development](#development)
* [Alternatives](#alternatives)
* [License](#license)
* [Release notes](https://github.com/oliverschwendener/ueli/releases)
- [Installation](#installation)
- [Features](#features)
- [Keyboard shortcuts](#keyboard-shortcuts)
- [Settings](#settings)
- [Updating](#updating)
- [Privacy](#privacy)
- [Known bugs](#known-bugs)
- [Development](#development)
- [Alternatives](#alternatives)
- [License](#license)
- [Release notes](https://github.com/oliverschwendener/ueli/releases)

## Installation

### Installer / Zip

* Download the latest version from here: https://ueli.app/#/download
* Run the installer or unzip
* Run the application
- Download the latest version from here: https://ueli.app/#/download
- Run the installer or unzip
- Run the application

> Note: because the executables are not signed Windows and macOS will probably prevent you from executing the installer or the program itself.
### Installing via chocolatey repository

* Open a powershell with administration rights (Right click on your start button and click `Windows PowerShell (Admin)`
* Type `choco install ueli`
* Accept the upcoming prompt by entering `y` or run above command with `-y` switch
* Run the application
- Open a powershell with administration rights (Right click on your start button and click `Windows PowerShell (Admin)`
- Type `choco install ueli`
- Accept the upcoming prompt by entering `y` or run above command with `-y` switch
- Run the application

## Features

Expand All @@ -49,11 +49,11 @@ This plugin enables you to search your browser bookmarks.

Currently supported browsers:

- Google Chrome
- Brave
- Vivaldi
- SideKick
- Microsoft Edge
- Google Chrome
- Brave
- Vivaldi
- SideKick
- Microsoft Edge

![browser-bookmarks](assets/feature-browser-bookmarks.png)

Expand Down Expand Up @@ -176,30 +176,29 @@ This plugin enables you to quickly execute multiple things at once.

## Keyboard shortcuts

|Keyboard shortcut|Description|
|---|---|
|<kbd>Enter</kbd>|Execute selected search result|
|<kbd>Shift</kbd> <kbd>Enter</kbd>|Execute selected program as admin (Windows only)|
|<kbd>Tab</kbd>|Autocomplete file path|
|<kbd>Ctrl</kbd> <kbd>o</kbd>|Open the selected program or file at it's location (Windows)|
|<kbd>Cmd</kbd> <kbd>o</kbd>|Open the selected program or file at it's location (macOS)|
|<kbd>↑</kbd>|Scroll up|
|<kbd>↓</kbd>|Scroll down|
|<kbd>Ctrl or Cmd</kbd> <kbd>p</kbd>|Scroll up|
|<kbd>Ctrl or Cmd</kbd> <kbd>n</kbd>|Scroll down|
|<kbd>Ctrl</kbd> <kbd>i</kbd>|Open settings (Windows)|
|<kbd>Cmd</kbd> <kbd>,</kbd>|Open settings (macOS)|
|<kbd>Shift</kbd> <kbd>↑</kbd>|Browse user input history up|
|<kbd>Shift</kbd> <kbd>↓</kbd>|Browse user input history down|
|<kbd>Ctrl</kbd> <kbd>l</kbd>|Set focus on user input|
| Keyboard shortcut | Description |
| ----------------------------------- | ------------------------------------------------------------ |
| <kbd>Enter</kbd> | Execute selected search result |
| <kbd>Shift</kbd> <kbd>Enter</kbd> | Execute selected program as admin (Windows only) |
| <kbd>Tab</kbd> | Autocomplete file path |
| <kbd>Ctrl</kbd> <kbd>o</kbd> | Open the selected program or file at it's location (Windows) |
| <kbd>Cmd</kbd> <kbd>o</kbd> | Open the selected program or file at it's location (macOS) |
| <kbd>↑</kbd> | Scroll up |
| <kbd>↓</kbd> | Scroll down |
| <kbd>Ctrl or Cmd</kbd> <kbd>p</kbd> | Scroll up |
| <kbd>Ctrl or Cmd</kbd> <kbd>n</kbd> | Scroll down |
| <kbd>Ctrl</kbd> <kbd>i</kbd> | Open settings (Windows) |
| <kbd>Cmd</kbd> <kbd>,</kbd> | Open settings (macOS) |
| <kbd>Shift</kbd> <kbd>↑</kbd> | Browse user input history up |
| <kbd>Shift</kbd> <kbd>↓</kbd> | Browse user input history down |
| <kbd>Ctrl</kbd> <kbd>l</kbd> | Set focus on user input |

## Settings

![settings](assets/settings.png)

To open the settings simply search for "Settings" or press `Ctrl+i` on Windows or `Cmd+,` on macOS. Here you can start configuring the app to your needs by enabling/disabling features or changing the settings.


## Updating

The check if any updates are available open the settings. Under "General Settings" you can check if an update is available or not.
Expand All @@ -212,19 +211,19 @@ For better search results ueli is keeping track of the applications, files and f

## Known bugs

* ([#37](https://github.com/oliverschwendener/ueli/issues/37)) Window starts to move while typing when custom scaling in Windows is set.
* ([#92](https://github.com/oliverschwendener/ueli/issues/92)) If you see an error that says `spawn powershell.exe ENOENT` check if powershell is installed (should be installed in all recent Versions of Windows by default) and check if powershell is in the PATH variable.
* ([#278](https://github.com/oliverschwendener/ueli/issues/278)) If you're on macOS Catalina you might miss some system apps (for example: Books or QuickTime Player). Try adding `/System/Applications` to your application search settings.
- ([#37](https://github.com/oliverschwendener/ueli/issues/37)) Window starts to move while typing when custom scaling in Windows is set.
- ([#92](https://github.com/oliverschwendener/ueli/issues/92)) If you see an error that says `spawn powershell.exe ENOENT` check if powershell is installed (should be installed in all recent Versions of Windows by default) and check if powershell is in the PATH variable.
- ([#278](https://github.com/oliverschwendener/ueli/issues/278)) If you're on macOS Catalina you might miss some system apps (for example: Books or QuickTime Player). Try adding `/System/Applications` to your application search settings.

For more check [here](https://github.com/oliverschwendener/ueli/issues).

## Development

### Requirements

* Git
* Node 12.x.x
* Yarn
- Git
- Node 12.x.x
- Yarn

### Setup

Expand Down Expand Up @@ -271,14 +270,14 @@ $ yarn package

## Alternatives

* [khanhas/ueli](https://github.com/khanhas/ueli)
* [Launchy](https://www.launchy.net/)
* [Wox](https://github.com/Wox-launcher/Wox)
* [Keypirinha](http://keypirinha.com/)
* [Alfred](https://www.alfredapp.com/)
* [Hain](https://github.com/hainproject/hain)
* [Zazu App](http://zazuapp.org/)
* [Cerebro](https://cerebroapp.com/)
- [khanhas/ueli](https://github.com/khanhas/ueli)
- [Launchy](https://www.launchy.net/)
- [Wox](https://github.com/Wox-launcher/Wox)
- [Keypirinha](http://keypirinha.com/)
- [Alfred](https://www.alfredapp.com/)
- [Hain](https://github.com/hainproject/hain)
- [Zazu App](http://zazuapp.org/)
- [Cerebro](https://cerebroapp.com/)

## Thanks

Expand Down
58 changes: 29 additions & 29 deletions electron-builder-config.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
directories:
output: dist
buildResources: bundle
output: dist
buildResources: bundle

files:
- bundle/**/*.js
- styles/**/*.css
- ./*.html
- img/**/*
- assets/**/*
- bundle/**/*.js
- styles/**/*.css
- ./*.html
- img/**/*
- assets/**/*

win:
icon: ./img/icons/win/icon-black.ico
target:
- target: nsis
arch:
- x64
- ia32
- target: zip
arch:
- x64
- ia32
publish:
- github
icon: ./img/icons/win/icon-black.ico
target:
- target: nsis
arch:
- x64
- ia32
- target: zip
arch:
- x64
- ia32
publish:
- github

mac:
icon: ./img/icons/mac/icon-white-circle.icns
category: public.app-category.utilities
target:
- dmg
- zip
publish:
- github
icon: ./img/icons/mac/icon-white-circle.icns
category: public.app-category.utilities
target:
- dmg
- zip
publish:
- github

nsis:
allowToChangeInstallationDirectory: true
oneClick: false
perMachine: true
allowToChangeInstallationDirectory: true
oneClick: false
perMachine: true
8 changes: 2 additions & 6 deletions jest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,5 @@
},
"verbose": true,
"testRegex": "((test|spec))\\.ts$",
"moduleFileExtensions": [
"ts",
"js",
"json"
]
}
"moduleFileExtensions": ["ts", "js", "json"]
}
10 changes: 5 additions & 5 deletions main.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./styles/app.css">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="./styles/app.css" />
<title>ueli</title>
</head>
<body>
Expand All @@ -15,4 +15,4 @@
</div>
<script src="./bundle/renderer.js"></script>
</body>
</html>
</html>
32 changes: 16 additions & 16 deletions settings.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./node_modules/bulma/css/bulma.min.css">
<link rel="stylesheet" href="./node_modules/bulma-extensions/dist/css/bulma-extensions.min.css">
<link rel="stylesheet" href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css">
<link rel="stylesheet" href="./styles/settings.css">
</head>
<body>
<div id="app">
<settings :config="config" :translations="translations"></settings>
</div>
<script src="./bundle/renderer.js"></script>
</body>
</html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="./node_modules/bulma/css/bulma.min.css" />
<link rel="stylesheet" href="./node_modules/bulma-extensions/dist/css/bulma-extensions.min.css" />
<link rel="stylesheet" href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" />
<link rel="stylesheet" href="./styles/settings.css" />
</head>
<body>
<div id="app">
<settings :config="config" :translations="translations"></settings>
</div>
<script src="./bundle/renderer.js"></script>
</body>
</html>
9 changes: 5 additions & 4 deletions src/common/config/appearance-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ export interface AppearanceOptions {
scrollbarBorderRadius: string;
}

const defaultFontFamily = getCurrentOperatingSystem(platform()) === OperatingSystem.Windows
? `"Segoe UI", Roboto, "Segoe UI Emoji", "Segoe UI Symbol"`
: `-apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, "Apple Color Emoji`;
const defaultFontFamily =
getCurrentOperatingSystem(platform()) === OperatingSystem.Windows
? `"Segoe UI", Roboto, "Segoe UI Emoji", "Segoe UI Symbol"`
: `-apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, "Apple Color Emoji`;

export const defaultAppearanceOptions: AppearanceOptions = {
allowTransparentBackground: false,
Expand All @@ -37,5 +38,5 @@ export const defaultAppearanceOptions: AppearanceOptions = {
userInputBorderRadius: "0px",
userInputBottomMargin: 0,
searchResultsBorderRadius: "0px",
scrollbarBorderRadius: "0px"
scrollbarBorderRadius: "0px",
};
13 changes: 5 additions & 8 deletions src/common/config/application-search-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ const windowsApplicationSearchOptions: ApplicationSearchOptions = {

const macOsApplicationSearchOptions: ApplicationSearchOptions = {
applicationFileExtensions: [".app"],
applicationFolders: [
"/Applications",
"/System/Library/CoreServices",
`${homedir()}/Applications`,
],
applicationFolders: ["/Applications", "/System/Library/CoreServices", `${homedir()}/Applications`],
enabled: true,
showFullFilePath: false,
useNativeIcons: true,
};

export const defaultApplicationSearchOptions = getCurrentOperatingSystem(platform()) === OperatingSystem.Windows
? windowsApplicationSearchOptions
: macOsApplicationSearchOptions;
export const defaultApplicationSearchOptions =
getCurrentOperatingSystem(platform()) === OperatingSystem.Windows
? windowsApplicationSearchOptions
: macOsApplicationSearchOptions;
9 changes: 5 additions & 4 deletions src/common/config/commandline-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { OperatingSystem } from "../operating-system";
export interface CommandlineOptions {
isEnabled: boolean;
prefix: string;
shell: WindowsShell|MacOsShell;
shell: WindowsShell | MacOsShell;
}

const defaultMacOsCommandlineOptions: CommandlineOptions = {
Expand All @@ -21,6 +21,7 @@ const defaultWindowsCommandlineOptions: CommandlineOptions = {
shell: WindowsShell.Cmd,
};

export const defaultCommandlineOptions: CommandlineOptions = getCurrentOperatingSystem(platform()) === OperatingSystem.Windows
? defaultWindowsCommandlineOptions
: defaultMacOsCommandlineOptions;
export const defaultCommandlineOptions: CommandlineOptions =
getCurrentOperatingSystem(platform()) === OperatingSystem.Windows
? defaultWindowsCommandlineOptions
: defaultMacOsCommandlineOptions;
4 changes: 1 addition & 3 deletions src/common/config/filebrowser-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export interface FileBrowserOptions {
}

export const defaultFileBrowserOptions: FileBrowserOptions = {
blackList: [
"desktop.ini",
],
blackList: ["desktop.ini"],
isEnabled: false,
maxSearchResults: 100,
showFullFilePath: true,
Expand Down
Loading

0 comments on commit c080bf1

Please sign in to comment.