mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-09-28 04:32:58 +00:00
lint more
This commit is contained in:
@@ -259,7 +259,7 @@ const newBreak = (type)=>(view)=>forEachSelection(view, (state, range)=>{
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const generalKeymap = Prec.high(keymap.of([
|
export const generalKeymap = Prec.high(keymap.of([
|
||||||
{ key: 'Tab', run: insertTab }, //runs indentMore if multiple lines selected in a single selection
|
{ key: 'Tab', run: insertTab },
|
||||||
{ key: 'Shift-Tab', run: indentLess },
|
{ key: 'Shift-Tab', run: indentLess },
|
||||||
{ key: 'Mod-z', run: undo }, //it may be unnecessary
|
{ key: 'Mod-z', run: undo }, //it may be unnecessary
|
||||||
{ key: 'Mod-Shift-z', run: redo },
|
{ key: 'Mod-Shift-z', run: redo },
|
||||||
@@ -273,7 +273,6 @@ export const cssKeymap = Prec.highest(keymap.of([
|
|||||||
]));
|
]));
|
||||||
|
|
||||||
export const markdownKeymap = Prec.highest(keymap.of([
|
export const markdownKeymap = Prec.highest(keymap.of([
|
||||||
|
|
||||||
{ key: 'Mod-b', run: wrapSelection('**', '**') }, // makeBold
|
{ key: 'Mod-b', run: wrapSelection('**', '**') }, // makeBold
|
||||||
{ key: 'Mod-i', run: wrapSelection('*', '*') }, // makeItalic
|
{ key: 'Mod-i', run: wrapSelection('*', '*') }, // makeItalic
|
||||||
{ key: 'Mod-u', run: wrapSelection('<u>', '</u>') }, // makeUnderline
|
{ key: 'Mod-u', run: wrapSelection('<u>', '</u>') }, // makeUnderline
|
||||||
@@ -285,7 +284,7 @@ export const markdownKeymap = Prec.highest(keymap.of([
|
|||||||
{ key: 'Mod-m', run: wrapSelection('{{', '}}') },
|
{ key: 'Mod-m', run: wrapSelection('{{', '}}') },
|
||||||
{ key: 'Shift-Mod-m', run: wrapSelection('{{\n', '\n}}') },
|
{ key: 'Shift-Mod-m', run: wrapSelection('{{\n', '\n}}') },
|
||||||
{ key: 'Mod-/', run: wrapSelection('<!-- ', ' -->') },
|
{ key: 'Mod-/', run: wrapSelection('<!-- ', ' -->') },
|
||||||
{ key: 'Mod-Shift-k', run: makeLink },
|
{ key: 'Mod-Shift-k', run: makeLink },
|
||||||
{ key: 'Mod-Shift-u', run: makeList('- ') },
|
{ key: 'Mod-Shift-u', run: makeList('- ') },
|
||||||
{ key: 'Mod-Shift-o', run: makeList('1. ') },
|
{ key: 'Mod-Shift-o', run: makeList('1. ') },
|
||||||
{ key: 'Shift-Mod-1', run: makeHeader(1) },
|
{ key: 'Shift-Mod-1', run: makeHeader(1) },
|
||||||
|
|||||||
Reference in New Issue
Block a user