8000 GitHub - AndreasKostler/dyscord: My favourite Metal band from Perth, Western Australia and a clojurescript library to bring emacs-like key sequences to web-apps.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

My favourite Metal band from Perth, Western Australia and a clojurescript library to bring emacs-like key sequences to web-apps.

Notifications You must be signed in to change notification settings

AndreasKostler/dyscord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dyscord

My favourite Metal band from Perth, Western Australia and a clojurescript library to bring emacs-like key sequences to web-apps.

usage

A key sequence, is a sequence of keyboard key presses. Any element in such a sequence can be a chord composed of a non-modifier key and one or more modifier keys pressed at the same time.

;; define a command for 'a'
(key-sequence! "a" (fn [] (js/alert "You pressed 'a' indeed!")))
;; let's do our first chord: 'C-x' by pressing 'ctrl' and 'x' at the same time.
(key-sequence! "C-x" (fn [] (js/alert "Congrats; Your first chord. Now let's get musical!")))
;; The chords 'C-x' and 'C-M-e' are typed in sequence
(key-sequence! "C-x C-M-e" (fn [] (js/alert "Sounds like music to me")))

As in emacs, 'C-g' cancels a partially typed or accidental command. Dyscord does not suppress browser shortcuts, yet. Maybe it never will.

About

My favourite Metal band from Perth, Western Australia and a clojurescript library to bring emacs-like key sequences to web-apps.

Resources

Stars

Watchers

Forks

Releases

No releases published
3246

Packages

No packages published
0