Skip to content

Commit

Permalink
Add albert launcher desc
Browse files Browse the repository at this point in the history
  • Loading branch information
watawuwu committed Dec 22, 2018
1 parent eed181b commit 49f783e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CARGO_VERSION := stable
CARGO_OPTIONS :=
CARGO_SUB_OPTIONS :=
CARGO_COMMAND := cargo +$(CARGO_VERSION) $(CARGO_OPTIONS)
APP_ARGS := launcher hain
APP_ARGS := launcher albert

# Environment
#===============================================================
Expand Down
40 changes: 27 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,21 @@ If the cargo project is a binary crates, this tool can register the binary in th
- Register as workflow
- [Hain](https://hainproject.github.io/hain/docs/)
- Register as devplugin
- [Albert](https://albertlauncher.github.io/docs/extensions/python/)
- Register as Python extension


## TODO
- [ ] cargo workspace(Only single binary crates)
- [ ] customize launcher scripts

## Usage

### Alfred workflow
### Common

```
- Install CLI binary

``` shell
$ cd {your binary crates project}

# Install to local, or manually install
Expand All @@ -26,8 +31,13 @@ $ cd {your binary crates project}
$ cargo install --path .
...
Installing /Users/watawuwu/.cargo/bin/{your-binary}
```

### Alfred workflow

# Export to Alfred
- Generate Alfredworkflow file

```
$ cargo launcher alfred
```

Expand All @@ -39,19 +49,23 @@ $ cargo launcher alfred

### Hain plugin

```
$ cd {your binary crates project}
# Install to local, or manually install
# The script path is set as follows
# PATH=$HOME/.cargo/bin:$HOME/.local/bin:/usr/local/bin:$PATH
$ cargo install --path .
...
Installing /Users/watawuwu/.cargo/bin/{your-binary}
- Export to hain devplugin directory

# Export to hain devplugin
```
$ cargo launcher hain
```

- Restart Hain


### Albert plugin

- Export to albert module directory

```
$ cargo launcher albert
```

- Check the checkbox of the python extension list and activate the setting

<img src="albert.png" width="300px"/>
Binary file added albert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 49f783e

Please sign in to comment.