This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ ************************************************************* | |
* Context menu for mpv using Tcl/Tk. Mostly proof of concept. | |
* Avi Halachmi (:avih) https://github.com/avih | |
* | |
* Features: | |
* - Simple construction: ["<some text>", "<mpv-command>"] is a complete menu item. | |
* - Possibly dynamic menu items and commands, disabled items, separators. | |
* - Possibly keeping the menu open after clicking an item (via re-launch). | |
* - Hacky pseudo sub menus. Really, this is an ugly hack. | |
* - Reasonably well behaved/integrated considering it's an external application. |