<commit_before>; This is the default slap configuration, which you can override in ~/.slaprc.

;;;;;;;;;;;;
; Settings ;
;;;;;;;;;;;;
[editor]
pageLines = 10
doubleClickDuration = 600
defaultEncoding = "UTF-8"
highlight = true

[editor.buffer]
useSpaces = true
tabSize = 2
visibleWhiteSpace = false
visibleLineEndings = false

[editor.gutter]
width = 6
lineNumberWidth = 4

[header]
messageDuration = 5000
blinkRate = 500
headerPosition = "top"

[fileBrowser]
width = 12

[editor.buffer.cursorPadding]
top = 2
left = 2
right = 2
bottom = 2

[field.buffer.cursorPadding]
left = 2
right = 2
top = 0
bottom = 0

[logger]
level = "info"

[perf]
profile = false

;;;;;;;;;;;;
; Bindings ;
;;;;;;;;;;;;
[bindings]
new = "C-n"
open = "C-o"
nextPane = "C-M-pagedown"
prevPane = "C-M-pageup"
toggleFileBrowser = "f10"
toggleInsertMode = "insert"
quit = "C-q"
help = "f2"

[pane.bindings]
saveAs = "C-s"
close = "C-w"
find = "C-f"
goLine = "C-g"

[editor.bindings]
goLeft = "left"
goLeftWord[] = "C-left"
goLeftWord[] = "M-left"
goLeftWord[] = "M-b"
goLeftWord[] = "M-S-b"
goLeftInfinity[] = "home"
goLeftInfinity[] = "C-a"
goRight = "right"
goRightWord[] = "C-right"
goRightWord[] = "M-right"
goRightWord[] = "M-f"
goRightWord[] = "M-S-f"
goRightInfinity[] = "end"
goRightInfinity[] = "C-e"

; must be above any "up"
goUpParagraph[] = "\u001b\u001b[A"

goUp = "up"
goUpParagraph[] = "C-up"
goUpParagraph[] = "M-up"
goUpParagraph[] = "M-{"
goUpPage = "pageup"
goUpInfinity[] = "C-home"
goUpInfinity[] = "M-home"
goUpInfinity[] = "M-<"

; must be above any "down"
goDownParagraph[] = "\u001b\u001b[B"

goDown = "down"
goDownParagraph[] = "C-down"
goDownParagraph[] = "M-down"
goDownParagraph[] = "M-}"
goDownPage = "pagedown"
goDownInfinity[] = "C-end"
goDownInfinity[] = "M-end"
goDownInfinity[] = "M->"
goMatchingBracket[] = "C-m"
goMatchingBracket[] = "C-]"
goMatchingBracket[] = "\u001d"
; selectAll = "C-a" ; "C-a" used for goLeftInfinity
selectLeft = "S-left"
selectLeftWord[] = "C-S-left"
selectLeftWord[] = "M-S-left"
selectLeftInfinity = "S-home"
selectRight = "S-right"
selectRightWord[] = "C-S-right"
selectRightWord[] = "M-S-right"
selectRightInfinity = "S-end"
selectUp = "S-up"
selectUpParagraph[] = "C-S-up"
selectUpParagraph[] = "M-S-up"
selectUpPage = "S-pageup"
selectUpInfinity[] = "C-S-home"
selectUpInfinity[] = "M-S-home"
selectDown = "S-down"
selectDownParagraph[] = "C-S-down"
selectDownParagraph[] = "M-S-down"
selectDownPage = "S-pagedown"
selectDownInfinity[] = "C-S-end"
selectDownInfinity[] = "M-S-end"
selectMatchingBracket = "C-S-m"
deleteLeft = "backspace"
deleteRight = "delete"
deleteLeftWord[] = "C-backspace"
deleteLeftWord[] = "C-d"
deleteLeftWord[] = "M-delete"
deleteRightWord[] = "C-delete"
deleteRightWord[] = "M-d"
deleteLeftInfinity[] = "C-S-backspace"
deleteLeftInfinity[] = "M-S-backspace"
deleteRightInfinity[] = "C-S-delete"
deleteRightInfinity[] = "M-S-delete"
deleteLine = "C-k"
copy = "C-c"
cut = "C-x"
paste = "C-v"
indent[] = "tab"
indent[] = "C-tab"
dedent = "S-tab"
undo = "C-z"
redo = "C-y"
focusNext = false
focusPrev = false

[field.bindings]
submit = "enter"

[form.bindings]
cancel = "escape"

[form.baseFind.bindings]
next = "enter"
prev[] = "C-enter"
prev[] = "linefeed"

[dialog.bindings]
hide = "escape"

[element.bindings]
focusNext[] = "tab"
focusNext[] = "right"
focusPrev[] = "S-tab"
focusPrev[] = "left"

;;;;;;;;;;
; Styles ;
;;;;;;;;;;
[header.style]
bg = "magenta"
changed = "{yellow-fg}{bold}"
info = "{blue-bg}{white-fg}"
success = "{green-bg}{white-fg}"
warning = "{yellow-bg}{black-fg}"
error = "{red-bg}{white-fg}"
blinkStyle = "{inverse}"
overwrite = "{red-bg}{white-fg}"

[form.style]
bg = "magenta"
bold = true

[dialog.style]
bg = "magenta"

[editor.style]
selection = "{cyan-bg}"
match = "{yellow-bg}"
matchingBracket = "{green-bg}{bold}"
mismatchedBracket = "{red-bg}{bold}"
whiteSpace = "{magenta-fg}"
keyword = "{red-fg}"
built_in = "{yellow-fg}"
preprocessor = "{red-fg}"
title = "{underline}"
params = "{bold}"<commit_msg>Adds slap.ini comment describing available styles<commit_after>; This is the default slap configuration, which you can override in ~/.slaprc.

;;;;;;;;;;;;
; Settings ;
;;;;;;;;;;;;
[editor]
pageLines = 10
doubleClickDuration = 600
defaultEncoding = "UTF-8"
highlight = true

[editor.buffer]
useSpaces = true
tabSize = 2
visibleWhiteSpace = false
visibleLineEndings = false

[editor.gutter]
width = 6
lineNumberWidth = 4

[header]
messageDuration = 5000
blinkRate = 500
headerPosition = "top"

[fileBrowser]
width = 12

[editor.buffer.cursorPadding]
top = 2
left = 2
right = 2
bottom = 2

[field.buffer.cursorPadding]
left = 2
right = 2
top = 0
bottom = 0

[logger]
level = "info"

[perf]
profile = false

;;;;;;;;;;;;
; Bindings ;
;;;;;;;;;;;;
[bindings]
new = "C-n"
open = "C-o"
nextPane = "C-M-pagedown"
prevPane = "C-M-pageup"
toggleFileBrowser = "f10"
toggleInsertMode = "insert"
quit = "C-q"
help = "f2"

[pane.bindings]
saveAs = "C-s"
close = "C-w"
find = "C-f"
goLine = "C-g"

[editor.bindings]
goLeft = "left"
goLeftWord[] = "C-left"
goLeftWord[] = "M-left"
goLeftWord[] = "M-b"
goLeftWord[] = "M-S-b"
goLeftInfinity[] = "home"
goLeftInfinity[] = "C-a"
goRight = "right"
goRightWord[] = "C-right"
goRightWord[] = "M-right"
goRightWord[] = "M-f"
goRightWord[] = "M-S-f"
goRightInfinity[] = "end"
goRightInfinity[] = "C-e"

; must be above any "up"
goUpParagraph[] = "\u001b\u001b[A"

goUp = "up"
goUpParagraph[] = "C-up"
goUpParagraph[] = "M-up"
goUpParagraph[] = "M-{"
goUpPage = "pageup"
goUpInfinity[] = "C-home"
goUpInfinity[] = "M-home"
goUpInfinity[] = "M-<"

; must be above any "down"
goDownParagraph[] = "\u001b\u001b[B"

goDown = "down"
goDownParagraph[] = "C-down"
goDownParagraph[] = "M-down"
goDownParagraph[] = "M-}"
goDownPage = "pagedown"
goDownInfinity[] = "C-end"
goDownInfinity[] = "M-end"
goDownInfinity[] = "M->"
goMatchingBracket[] = "C-m"
goMatchingBracket[] = "C-]"
goMatchingBracket[] = "\u001d"
; selectAll = "C-a" ; "C-a" used for goLeftInfinity
selectLeft = "S-left"
selectLeftWord[] = "C-S-left"
selectLeftWord[] = "M-S-left"
selectLeftInfinity = "S-home"
selectRight = "S-right"
selectRightWord[] = "C-S-right"
selectRightWord[] = "M-S-right"
selectRightInfinity = "S-end"
selectUp = "S-up"
selectUpParagraph[] = "C-S-up"
selectUpParagraph[] = "M-S-up"
selectUpPage = "S-pageup"
selectUpInfinity[] = "C-S-home"
selectUpInfinity[] = "M-S-home"
selectDown = "S-down"
selectDownParagraph[] = "C-S-down"
selectDownParagraph[] = "M-S-down"
selectDownPage = "S-pagedown"
selectDownInfinity[] = "C-S-end"
selectDownInfinity[] = "M-S-end"
selectMatchingBracket = "C-S-m"
deleteLeft = "backspace"
deleteRight = "delete"
deleteLeftWord[] = "C-backspace"
deleteLeftWord[] = "C-d"
deleteLeftWord[] = "M-delete"
deleteRightWord[] = "C-delete"
deleteRightWord[] = "M-d"
deleteLeftInfinity[] = "C-S-backspace"
deleteLeftInfinity[] = "M-S-backspace"
deleteRightInfinity[] = "C-S-delete"
deleteRightInfinity[] = "M-S-delete"
deleteLine = "C-k"
copy = "C-c"
cut = "C-x"
paste = "C-v"
indent[] = "tab"
indent[] = "C-tab"
dedent = "S-tab"
undo = "C-z"
redo = "C-y"
focusNext = false
focusPrev = false

[field.bindings]
submit = "enter"

[form.bindings]
cancel = "escape"

[form.baseFind.bindings]
next = "enter"
prev[] = "C-enter"
prev[] = "linefeed"

[dialog.bindings]
hide = "escape"

[element.bindings]
focusNext[] = "tab"
focusNext[] = "right"
focusPrev[] = "S-tab"
focusPrev[] = "left"

;;;;;;;;;;
; Styles ;
;;;;;;;;;;

; Available styles:
; bold, underline, blink, inverse, invisible, (light)black, (light)red,
; (light)green, (light)yellow, (light)blue, (light)magenta, (light)cyan,
; (light)white

[header.style]
bg = "magenta"
changed = "{yellow-fg}{bold}"
info = "{blue-bg}{white-fg}"
success = "{green-bg}{white-fg}"
warning = "{yellow-bg}{black-fg}"
error = "{red-bg}{white-fg}"
blinkStyle = "{inverse}"
overwrite = "{red-bg}{white-fg}"

[form.style]
bg = "magenta"
bold = true

[dialog.style]
bg = "magenta"

[editor.style]
selection = "{cyan-bg}"
match = "{yellow-bg}"
matchingBracket = "{green-bg}{bold}"
mismatchedBracket = "{red-bg}{bold}"
whiteSpace = "{magenta-fg}"
keyword = "{red-fg}"
built_in = "{yellow-fg}"
preprocessor = "{red-fg}"
title = "{underline}"
params = "{bold}"
{'fraction_non_alphanumeric': 0.2079883097905504, 'fraction_numerical': 0.01071602532878714, 'mean_word_length': 4.994890510948905, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5536374', 'n_tokens_mistral': 3472, 'n_tokens_neox': 3352, 'n_words': 705}