refactor a bit more
This commit is contained in:
parent
230916ceb1
commit
fdbf43a4e9
11 changed files with 79 additions and 90 deletions
|
|
@ -3,7 +3,7 @@ import { removeFocus } from "./eval";
|
|||
|
||||
export const actionShortcuts: [string, string[], string][] = [
|
||||
["call" , ['c'], "expr ⌴" ],
|
||||
["transform", ['.'], "⌴ expr" ],
|
||||
["transform", ['t'], "⌴ expr" ],
|
||||
["assign" , ['a'], "let (⌴ = expr) in ⌴"],
|
||||
["declare" , ['d'], "let (⌴ = ⌴) in expr"],
|
||||
["lambda" , ['l'], "λ⌴. expr" ],
|
||||
|
|
@ -19,7 +19,7 @@ export function getActions(globalContext, setState) {
|
|||
}));
|
||||
globalContext?.doHighlight.call();
|
||||
},
|
||||
'.': () => {
|
||||
t: () => {
|
||||
setState(state => ({
|
||||
kind: "call",
|
||||
fn: initialEditorState,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue