#!/bin/bash

[[ $KITTY_WINDOW_ID ]] || { echo "not in kitty window" >&2; exit 1; }

kitty @ launch --type window --copy-env --cwd current --title "$*" vim "$@" >/dev/null

# vim:noet:sw=8:sts=8:ts=8
