1import { Menu, MenuItem, PredefinedMenuItem, Submenu } from "@tauri-apps/api/menu";
3export const itemImpl = options => action => () =>
4 MenuItem.new({ ...options, action: id => action(id)() });
6export const predefinedImpl = item => () => PredefinedMenuItem.new({ item });
8export const aboutImpl = item => () => PredefinedMenuItem.new({ item });
10export const submenuImpl = text => items => () => Submenu.new({ text, items });
12export const menuImpl = items => () => Menu.new({ items });
14export const setAsAppMenuImpl = menu => () => menu.setAsAppMenu();
16export const closeImpl = resource => () => resource.close();
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list