Commit Graph

6 Commits (9fa22b04538750357ae7bbfd8567e02e9ef68d79)

Author SHA1 Message Date
Iron-E 9fa22b0453
fix(Mode): textchanged events (#34)
* ref(Mode): arbitrary number of per-instance autocmds

* ref(Mode): check cursor events using loop

* fix(Mode): handle textchanged events

* docs(examples): test CursorMoved, TextChanged events
3 months ago
Iron-E 8366119447
fix: virtual cursor edge cases (#32)
* perf(Mode): use dedicated virtual cursor namespace

* fix(Mode): virtual cursor stays in inactive buffers when exiting

* fix(Mode): `CursorMoved` not fired as expected
3 months ago
Iron-E 485b77bf14
fix(mode): incompatible with vim.v.count (#26)
* fix(mode): incompatible with vim.v.count

* ref(Vars): track local copy of global value

* ref(Mode): use new `Vars`

* ref(Mode): handle exit during `enter`

* ref: swap `Var.new` param order

Mode name should come before var name

* docs(examples): Vars

* ref: rename `Vars` -> `Var`

* fix(Mode): check if `exit == 1` for vim compat

* fix(Prompt): use new `Var` impl

* ref: remove `count1`

It seems like `math.max` is enough for this purpose

* doc: use h3 headers
3 months ago
Iron-E 1ecc4add3b
feat: `Mode:exit` (#30)
* fix(Mode): adapt to changes in `timeoutlen`

* feat(libmodal): do `self:exit()` inside callback

* docs: `Mode:exit`

* style: .editorconfig

* docs(libmodal): fix broken example

* feat(Mode): `self:switch`

* docs: `Mode:switch`

* feat(libmodal): `mode.switch`

Wraps `Mode:switch` for convenience

* docs: `libmodal.mode.switch`

* docs(examples): `*.switch`
3 months ago
Iron-E 55a0bcca00
docs: make comments conform in case 2 years ago
Iron-E 49a02ad692
merge!: cleanup the plugin
This was my first plugin. Looking back on it, it was full of bad
design decisions (and I have elected to keep most of the user-facing
ones for backwards-compatability). This merge tries to uncrustify the
plugin by standardizing the documentation, removing much unecessary
code, reorganizing the internal structures, and removing references to
my own made-up terminology.
2 years ago