2import Network.Wai.Handler.DevelServer (runQuitWithReloadActions)
3import System.Directory(findExecutable)
4import System.Process(readProcess)
7main = runQuitWithReloadActions 4000 "SmallApp" "smallApp" (const $ return []) [browserRefresh]
9browserRefresh :: IO (IO ())
11 exe <- findExecutable "xdotool"
14 putStrLn "Install xdotool for automatic browser refresh"
17 putStrLn "Please click on the browser window..."
18 pid <- readProcess xdotool ["selectwindow"] ""
20 current <- readProcess xdotool ["getwindowfocus"] ""
21 let cmds = ["windowfocus", pid, "key", "F5", "windowfocus", current]
22 _ <- readProcess xdotool cmds ""
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