This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 921
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into upgrade-clojurescript
- Loading branch information
Showing
31 changed files
with
458 additions
and
198 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
;; User keymap | ||
;; ----------------------------- | ||
;; Keymaps are stored as a set of diffs that are merged together to create | ||
;; the final set of keys. You can modify these diffs to either add or | ||
;; subtract bindings. | ||
;; Modify this file to add and subtract keybindings (keyboard shortcuts). | ||
;; Keybindings allow custom keys to invoke any desired LightTable functionality that is behind a command. | ||
;; A keybinding has the following format: | ||
;; | ||
;; Like behaviors, keys are bound by tag. When objects with those tags are active | ||
;; the key bindings are live. Keys can be bound to any number of Light Table commands, | ||
;; allowing you the flexibility to execute multiple operations together. To see a list | ||
;; of all the commands you can execute, start typing a word related to the thing you | ||
;; want to do in between the square brackets (e.g. type "editor"). | ||
|
||
;; [:TAG "KEYS" :COMMAND] | ||
;; | ||
;; * A tag indicates in what context the keybinding applies. Common tags are :app and :editor which respectively | ||
;; indicate the keybinding can be used anywhere and the keybinding can only be used when editing text. | ||
;; | ||
;; * Keys are the actual keys you type for the keybinding. Most keybindings start with modifier(s) e.g. alt or control. | ||
;; Keybindings with modifiers have the format "modifier(s)-key". For example "alt-shift-x" means press alt, shift and x | ||
;; at once. For more on configuring keys see https://github.com/LightTable/LightTable/blob/master/doc/behavior-and-keymap-configuration.md#keys. | ||
;; | ||
;; * Command is the specific LightTable command(s) to invoke. To search available commands, | ||
;; start typing a search term after "KEYS". Once you've found the desired command, press TAB to have autocomplete | ||
;; fill in the command name. For more on configuring commands see https://github.com/LightTable/LightTable/blob/master/doc/behavior-and-keymap-configuration.md#commands-in-keybindings. | ||
[ | ||
[:editor "alt-w" :editor.watch.watch-selection] | ||
[:editor "alt-shift-w" :editor.watch.unwatch] | ||
|
||
;; To subtract a binding, prefix the key with '-' e.g. | ||
;; To subtract a keybinding, prefix the key with '-' e.g. | ||
;; [:app "-ctrl-shift-d" :docs.search.show] | ||
] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"0.7.2","electron":"0.31.1"} | ||
{"version":"0.8.0","electron":"0.34.5"} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
This document assumes [the user.keymap | ||
introduction](../deploy/core/User/user.keymap) and [the user.behaviors | ||
introduction](../deploy/core/User/user.behaviors) have been read. | ||
|
||
## Introduction | ||
|
||
Keymap and behaviors files are ClojureScript data that when merged together | ||
create LightTable's final keys and functionality. A user can add or remove any | ||
keybinding/behavior. This is powerful as any default keybinding/behavior, | ||
whether from LightTable or a plugin, can be removed or overridden by a user. | ||
Next this document will cover configuring behaviors and keybindings through | ||
tags, keys and commands. | ||
|
||
## Tags | ||
|
||
Tags allow keybindings/behaviors to apply in different contexts i.e. `enter` | ||
means something different in a url bar vs a popup. Under the hood, objects have | ||
tags added and removed which makes a keybinding/behavior apply or not apply to | ||
them respectively. Tags can have optional extensions that make them apply in | ||
different contexts. For example to have the `:editor` tag only apply to a file | ||
for a given filetype use the format `:editor.FILETYPE` e.g. | ||
`:editor.javascript`. Note that for the same keybinding/behavior a tag with | ||
an extension takes precedence over one without. | ||
|
||
There are a number of tags that only apply in a unique UI context or widget e.g. | ||
a browser. Here are some common ones: | ||
|
||
* :browser - Applies when inside a browser tab | ||
* :editor.keys.hinting.active - Applies when hinting/autocomplete is active | ||
* :filter-list.input - Applies when in a filter-list e.g. Commands pane or Navigator | ||
|
||
For more tags see the ones used by default in | ||
[default.keymap](../deploy/settings/default/default.keymap) and | ||
[default.behaviors](../deploy/settings/default/default.behaviors) and search | ||
LightTable for when a context tag is added with | ||
[ctx/in!](https://github.com/LightTable/LightTable/search?utf8=%E2%9C%93&q=%22ctx%2Fin%21%22&type=Code). | ||
|
||
## Keys | ||
|
||
LightTable uses [mousetrap](https://github.com/ccampbell/mousetrap) for keyboard | ||
handling. Mousetrap recognizes the following modifier keys: `shift, ctrl, | ||
alt/option and command/cmd`. LightTable also recognizes pmeta which is | ||
command/cmd in OSX and ctrl anywhere else. To specify other special keys like | ||
'enter' see [this Mousetrap documentation](https://craig.is/killing/mice#keys). | ||
LightTable also supports key combinations/sequences when keys are separated by a | ||
space. This allows plugins like Emacs to support key chords like 'ctrl-x u'. | ||
|
||
## Commands In Keybindings | ||
|
||
Keybindings can run multiple commands by appending them to the end e.g. `[:TAG | ||
"KEYS" :COMMAND1 :COMMAND2]`. While commands are started serially, there isn't a | ||
guarantee that one command is fully finished before the next proceeds. Any | ||
commands that have asynchronous functionality e.g. interaction with a network or | ||
filesystem cannot guarantee when their functionality is complete. Commands can | ||
have arguments passed to them by wrapping them in parenthesis e.g. `(:COMMAND | ||
ARG1 ARG2)`. For example `[:tabs "pmeta-1" (:tabs.goto 0)]` is a default | ||
keybinding that passes `0` as an argument to the `:tabs.goto` command. |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Build codox api docs and publish it on gh-pages branch | ||
|
||
lein with-profile doc codox | ||
|
||
git checkout gh-pages | ||
|
||
rm -rf api/ | ||
mv codox api | ||
|
||
git add api | ||
git commit -m "Build api docs using script/build-api-docs.sh" | ||
git push origin gh-pages:gh-pages | ||
git checkout - |
Oops, something went wrong.