Skip to content

Migrate ex-commands from deprecated ‎api.command?.register to ‎api.keymap.registerLayer#34

Merged
oribarilan merged 1 commit into
oribarilan:mainfrom
S-andres0694:migrate-deprecated-api
Jun 12, 2026
Merged

Migrate ex-commands from deprecated ‎api.command?.register to ‎api.keymap.registerLayer#34
oribarilan merged 1 commit into
oribarilan:mainfrom
S-andres0694:migrate-deprecated-api

Conversation

@S-andres0694

Copy link
Copy Markdown
Contributor

Moves ‎:q, ‎:quit, and ‎:wq to the ‎registerLayer API, consolidating them with the existing ‎/vim toggle command into a single ‎registerLayer call. This was decoupled from #29 during review to keep that PR focused on the toggle feature.

Changes:

  • Replaced ‎api.command?.register with ‎api.keymap.registerLayer for all three quit commands

  • Added ‎slashName so they’re accessible as slash commands

  • Removed the now-unused ‎api.command?.register call

Closes #33

@S-andres0694

Copy link
Copy Markdown
Contributor Author

@oribarilan Made the API changes in a separate PR just as agreed on #29

@oribarilan

Copy link
Copy Markdown
Owner

This is great, thank you @S-andres0694

@oribarilan oribarilan merged commit 53f7008 into oribarilan:main Jun 12, 2026
1 check passed
@S-andres0694 S-andres0694 deleted the migrate-deprecated-api branch June 12, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate existing ex-commands from ‎api.command?.register to ‎api.keymap.registerLayer

2 participants