Skip to main content

📝 Create a plugin

Clone the repository

Create a destination folder for the project, then open your preferred terminal or command prompt (e.g., CMD, PowerShell, or Git Bash). Run the following commands, making sure to replace the placeholder path with your actual folder directory:

cd "C:\Your\Folder\Path\"
git clone https://github.com/BlessEphraem/InputBar

1 Before running the application, you need to install the required Python packages. You can easily do this using pip:

pip install PyQt6 rapidfuzz keyboard pywin32

Write a plugin

A plugin is a .py file in Plugins/ that exposes an on_search(text) -> list function.

# Plugins/MyPlugin.py

def on_search(text: str) -> list:
if "hello" not in text.lower():
return []
return [{
"name": "Hello World",
"score": 100,
"action": lambda: print("Hello!"),
"icon_type": "settings", # "file" | "calc" | "settings"
}]

Each returned item can have:

FieldTypeDescription
namestrText displayed in the list
scorefloatSort score (higher = listed first)
actionstr or callablePath to open or function to call
icon_typestrIcon style: "file", "calc", "settings"
icon_pathstrPath to a custom icon (optional)
item_typestrSet to "app" to enable the right-arrow submenu

If action returns the string "KEEP_OPEN_AND_REFRESH", InputBar stays open and refreshes the results — useful for confirmation flows.