summaryrefslogtreecommitdiff
path: root/rc/filetype/javascript.kak
AgeCommit message (Collapse)Author
2022-11-17switch from using '&' to '<a-&>' when indenting javascript comments to allow theSam Larkin
type of indentation to be preserved
2022-10-16Treat .cts and .mts as typescriptltdk
2022-07-05Move user mappings to <space> and keep/remove selection to ,Maxime Coste
2022-07-05Make `x` just select the full linesMaxime Coste
`x` is often criticized as hard to predict due to its slightly complex behaviour of selecting next line if the current one is fully selected. Change `x` to use the previous `<a-x>` behaviour, and change `<a-x>` to trim to fully selected lines as `<a-X>` did. Adapt existing indentation script to the new behaviour
2022-05-10Merge branch 'cjs' of http://github.com/clarfonthey/kakouneMaxime Coste
2022-05-09Mark .cjs as javascriptltdk
2022-05-03fix single line comment behavior on insert, remove unnecessary commented blocksAndrés González
2022-03-16Improved support for commenting, mainly pulled from c-family.kakAndrés González
2021-04-17rc: use a separate *-insert hook to auto-insert commentsJohannes Altmanninger
This should cover all filetypes that already auto-insert comments, except for rust.kak, which is left for a follow-up. Most of these are straightforward, some explanation for special cases: rc/filetype/zig.kak rc/filetype/cue.kak These indent hooks used their own logic to indent after "{" only if no comment was inserted. Replace this logic by checking if a comment was inserted. This works because these "*-insert" hooks are run before their respective "*-indent" hooks. rc/filetype/php.kak This also has some logic to insert "*" after "/*" lines. Basic usage seems to work still. In future this should borrow from the c-family one, which works a bit better.
2021-04-17rc javascript: fix line comment prefixJohannes Altmanninger
2021-03-17js: Highlight special variables at start of fileSeerLite
2021-01-11rc js: Correctly highlight multiline division.SeerLite
2020-11-04Check for division before we check for regexesCarson Riker
2020-07-29Fix already-existing bug in javascript.kakJohn Isom
2020-07-29Update deindenting in dart.kak and javascript.kakJohn Isom
2020-07-29Fix already-existing error in javascript.kakJohn Isom
2020-07-29Update deindenting in javascript.kakJohn Isom
2020-07-28Update deindenting in javascript.kakJohn Isom
2020-07-28Fix my closer tokens issues in javascript.kakJohn Isom
2020-07-27Fix indentation rule for javascript.kakJohn Isom
2020-01-11Allow empty elements in jsxNunzioCicone
2019-12-03Recognize .mjs files as javascript filesLas
.mjs is the extension for javascript modules
2019-10-22src: Create a <semicolon> named keyFrank LENORMAND
This commit allows using the <semicolon> expansion in commands, instead of `\;`. It makes commands look more elegant, and prevents new-comers from falling into the trap of using <a-;> without escaping the semicolon.
2019-10-16Replace ModeChange hooks by ModePush and ModePopMaxime Coste
Remove deprecated InsertBegin, InsertEnd, NormalBegin, NormalEnd hooks. Closes #2545
2019-07-22Move module aliases to after main module definitionJustin Frank
2019-07-22Use module alias pattern for markdown dynamic loadingJustin Frank
2019-04-25Merge remote-tracking branch 'laelath/provides-requires'Maxime Coste
2019-04-24Use complete URLAlex Leferry 2
2019-04-19Highlight JavaScript accessorsAlex Leferry 2
2019-04-13Changed '🦀' to '§' for complex module quotingJustin Frank
2019-04-10Clean up javascript file a bitJustin Frank
2019-04-10Fixed several more support files.Justin Frank
2019-04-09Fixed many of the filetype support modules to not use `BufSetOption` to loadJustin Frank
2019-04-08Modified a bunch of language support files to use modulesJustin Frank
2019-03-21Add categories in rc/Alex Leferry 2
Closes #2783