Commit Graph

144 Commits (master)

Author SHA1 Message Date
Iron-E 49246bac2e
fix(Layer): `buffer = 0` in mapping 2 years ago
Iron-E 31a79a8f54
ref(Layer): use `vim.notify` 2 years ago
Iron-E 944eb0c262
fix(Layer): correctly prevent error from printing 2 years ago
Iron-E 84eaaae9ab
chore(Layer): remove unused function 2 years ago
Iron-E 117e31eccd
ref(Layer): use `:map` for `:enter`
`:map` can now handle buffer-locals, so we should just use that.
2 years ago
Iron-E ff804a3e34
fix(Layer): handle mapping to new `mode` 2 years ago
Iron-E 0d009b0fcc
fix(Layer): normalize `buffer = true|false` 2 years ago
Iron-E 4cf98788a0
style(Layer): alphabetize functions 2 years ago
Iron-E 21aee625f3
fix(Layer): un/mapping from buffer 2 years ago
Iron-E 70c3585da3
docs(libmodal): add missing `@class` annotations
This should help the LSP reason about what is being imported
2 years ago
Iron-E a81c06464b
ref(libmodal): make api func names more obvious 2 years ago
Iron-E cf1bca1f8f
ref(libmodal): use `vim.notify` for errors
This allows for integration with `nvim-notify` and others.
2 years 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
Iron-E 0af6b6d168
chore(libmodal): remove checks for nvim 0.5
Since the plugin now requires Neovim 0.7, there's no reason to check
for Neovim 0.7
2 years ago
Iron-E dfcc57dd49
chore(Prompt): remove unused function 2 years ago
Iron-E 1933c1d6dc
perf: use `vim.ui` instead of `vim.fn` 2 years ago
Iron-E b4419002a2
perf: don't make local copies of global `vim` module 3 years ago
Iron-E afdfadf365
ref: use Neovim 0.5
BREAKING CHANGE: now requires Neovim 0.5
3 years ago
Iron-E a389bc6d4e
feat(Prompt): allow exit supression
Previously, we could set a `:h libmodal-exit-supression` flag in order
to stop the modes from automatically exiting upon an <Esc> press. This
commit adds this functionality to `Prompt`s so that the same may be done
for them.
3 years ago
Iron-E afe38ffc20
fix(Popup): don't override open() options
The window options were overriding the passed in options. We shouldn't
do that.
3 years ago
Iron-E 81abfff50c
feat(Popup): allow override of default config
Before we did not allow the default config to be overridden, but now we
do.
3 years ago
Iron-E 932eb5cd78
ref(Popup): set Popup.window to nil after :close()
Before this commit, Popup.window would only be set to `nil` if there was
a valid window found. It is proposed that `nil` shuold be set especially
if there is no valid window found, as an invalid window value shouldn't
be kept around.
4 years ago
Iron-E 97f0ac7922
Document changes 4 years ago
Iron-E d4e25db4c3
Address Popup errors when switching tabs 4 years ago
Iron-E d00feb0ad3
Fix bug where empty string causes empty libmodal name 4 years ago
Iron-E c9dd739eb0
Don't use buffer variable 4 years ago
Iron-E f335c7c142
Statusline support 4 years ago
Iron-E c570e3886c
Fix bad reference to vim.api 4 years ago
Iron-E 84797013b4
Begin doc updates; add API exit function 4 years ago
Iron-E 2844351594
Add tests; fix bugs with Help and ParseTable 4 years ago
Iron-E 57fcf4b1c1
Add ability to specify lua functions as instructions; TODO docs 4 years ago
Iron-E 0c3b58540e
Add checks for string arguments 4 years ago
Iron-E d3e601a520
Replace broken references to utils.api 4 years ago
Iron-E 66483babc9
Fix pasting into command line 4 years ago
Iron-E f190a91d81
Cleanup using sumneko_lua 4 years ago
Iron-E 94ed9463bf
Fix modes entering after errors 4 years ago
Iron-E 6980811a21
Fix names with multiple spaces 4 years ago
Iron-E a8a7f0917e
Correct reference to 'stringSplit' 4 years ago
Iron-E a794a1497e
Fix bug with modes that have multiple words 4 years ago
Iron-E 85214c7487
Remove `name` 4 years ago
Iron-E b4eef027f5
Document changes to ParseTable 4 years ago
Iron-E 5d0a8be10e
Cleanup for release candidate 4 years ago
Iron-E 8a1486d517
Add todo for popup 4 years ago
Iron-E d8da47fa71
Optimize module loading, update docs 4 years ago
Iron-E eb6f39b43a
Save implementation of other layers 4 years ago
Iron-E dc16475788
Rework imports 4 years ago
Iron-E 380295c94d
Initial PromptLayer implementation 4 years ago
Iron-E 95d2c02d45
Initial implementation of `ModeLayer` 4 years ago
Iron-E 861e3008b1
Refactor `classes` 4 years ago
Iron-E a02aba6097
Complete docs 4 years ago
Iron-E c4721119d0
Update documentation 4 years ago
Iron-E f84b0288e7
Add initial Layer implementation 4 years ago
Iron-E 1501358320
Adjust spacing 4 years ago
Iron-E 425a3477d9
Fix bad references in `Prompt` 4 years ago
Iron-E b1a7207358
Fix bad reference to _window 4 years ago
Iron-E e3a6b651a1
Fix bad _input assignemtn 4 years ago
Iron-E ab45ca248b
Update docs 4 years ago
Iron-E 596b7e8859
Fix parsetable bugs 4 years ago
Iron-E ca0180c0d7
Fix bad reference to 'ParseTable:get()' 4 years ago
Iron-E a25aea8135
Fix bad '_stringSplit' reference 4 years ago
Iron-E eee6a01778
Consistency improvements 4 years ago
Iron-E d804576419
Update docs 4 years ago
Iron-E 53b58d930f
Remove redundant file 4 years ago
Iron-E 20fa75aa54
All tests pass 4 years ago
Iron-E 481ce853ca
Bug fixes 4 years ago
Iron-E 1e72ac4c00
Fix bad self reference 4 years ago
Iron-E 45aa9af26e
Various fixes 4 years ago
Iron-E 523261dcbc
Initial conversion of prompt 4 years ago
Iron-E 7c2f9694d8
Finish initial attempt to rewrite Mode 4 years ago
Iron-E 41564fa9f3
Begin conversion to OO-centered programming 4 years ago
Iron-E f9869d6a37
Remove unnecessary print statements 4 years ago
Iron-E c36520de46
Add vim-libmodal compatability 4 years ago
Iron-E a9acffeb3c
Fix bug where nvim_lecho causes tables to grow infinitely 4 years ago
Iron-E 1946b0927f
Finish libmodal-lua docs 4 years ago
Iron-E 55629e77a0
Begin work on dev documentation 4 years ago
Iron-E 68e4537f15
Begin documentation 4 years ago
Iron-E e48b8fc9fb
Always complete 'help` command where appropriate. 4 years ago
Iron-E e7f1899c21
Remove unused class 4 years ago
Iron-E 148d925866
Add more features to prompt 4 years ago
Iron-E da236baab7
Finish intial implemention of prompts 4 years ago
Iron-E 1e121622f8
Refine prompts; completions can't exist until 0.5 4 years ago
Iron-E 651f207d09
Begin prompt implementation 4 years ago
Iron-E 88371b5ff0
Finish translating examples and fix all mode bugs 4 years ago
Iron-E d6056571d2
Begin translating examples to test implementation; fix many bugs 4 years ago
Iron-E a11e1f1fbb
libmodal.mode.enter ver 1 4 years ago
Iron-E 742be23d1b
Fix loading bugs & add parseTable:get() 4 years ago
Iron-E 7df77f13fc
Continue translating 4 years ago
Iron-E f70704ea6a
Improve ParseTable; continue mode.enter 4 years ago
Iron-E af118200d3
Begin key combo parser 4 years ago
Iron-E b35e436abc
Structural improvements; begin to implement mode.enter 4 years ago
Iron-E 15d1320720
Begin work on translation 4 years ago
Iron-E 8e0ca12c1f
Update imports 4 years ago
Iron_E b21c5c20a6
Initial commit 4 years ago