Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ def compile():

@click.group()
def plugin():
"""Translation and localization commands."""
"""Plugin commands."""
...


@plugin.command()
def gen_plugin_info():
"""Auto generate the `plugin.json` file for Wox"""
"""Auto generate the `plugin.json` file for Flow"""

plugin_infos = {
"ID": PLUGIN_ID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
import copy
from typing import List

from flowlauncher import FlowLauncher

from plugin.templates import *
from plugin.wox import Wox


class Main(Wox):
class Main(FlowLauncher):
messages_queue = []

def sendNormalMess(self, title: str, subtitle: str):
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
flowlauncher
python-dotenv
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Python Template for Wox Plugin
# Python Template for Flow Plugin

Just a Python Template Advice for Wox plugin, not a plugin.
Just a Python Template Advice for Flow plugin, not a plugin.

You can follow the template advice or not. But it could be better if you do.

## :bookmark: Versions

- [Flow](https://github.com/Flow-Launcher/Flow.Launcher.Plugin.PythonTemplate/tree/master)
- [Wox](https://github.com/Flow-Launcher/Flow.Launcher.Plugin.PythonTemplate/tree/wox)

## :file_folder: File Structure

```
Expand Down Expand Up @@ -74,9 +79,14 @@ After all of this, we need to compile the `.po` to `.mo` file.
python commands.py compile
```

## :pushpin: Requirements

- [`flowlauncher`](https://github.com/Flow-Launcher/Flow.Launcher.JsonRPC.Python) Flow's jsonRPC API for Python. It's **NECESSARY** for plugin.
- `python-dotenv` User's config package.

## :runner: ToDos

* [x] auto commands
* [x] local language
* [ ] inputs parser, for mulity inputs
* [ ] setting ui for wox
* [ ] setting ui for Flow
125 changes: 0 additions & 125 deletions Wox.Plugin.PythonTemplate/plugin/wox.py

This file was deleted.