Replies: 3 comments 7 replies
|
This can be achieved using watcher, and here is an example. from typing import Any, Dict
from kitty.typing import BossType
from kitty.window import Window
def on_focus_change(boss: BossType, window: 'Window', data: Dict[str, Any]) -> None:
if data.get('focused'):
window.set_marker('text 1 ERROR')
else:
window.remove_marker()https://sw.kovidgoyal.net/kitty/invocation/#cmdoption-kitty-watcher In the current unreleased version (try with the nightly version), the global watcher can be defined in the configuration file. Or use launch to open a new window with marker enabled by default. https://sw.kovidgoyal.net/kitty/launch/#cmdoption-launch-marker Or configure the default window to enable marker in the startup session file. startup_session.conf https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.startup_session Or use remote control .bashrc https://sw.kovidgoyal.net/kitty/remote-control/#kitty-create-marker |
|
Thanks for the advice, I will try it. I've thought that I could put some configs to startup session to achieve this, but didn't seem to find the right API for it. |
|
IIRC you can use remote control for that, just add the remote control
command to your shell rc files.
|
Uh oh!
There was an error while loading. Please reload this page.
I know I can start the terminal, and press some keys like
f1to enable markers. Can I make makers enabled by default? I'm pretty sure my markers do not harm performance too much. Thanks.All reactions