Skip to content

Commit

Permalink
Allow toggling Paredit function independently of mode
Browse files Browse the repository at this point in the history
Closes #784

We introduce a `calva.paredit.keybindingsEnabled` config option and a
`paredit.toggleKeybindingsEnabled` command which allows toggling Paredit
keybindings on and off while preserving the current mode. The Paredit
keybindings are updated to only activate when the
`paredit:keybindingsEnabled` context key is true, in addition to the
existing conditions on the keymap. Finally, the Paredit StatusBar
component is updated to receive a `KeyMapConfig` object containing
`keyMap` and the new `keybindingsEnabled` boolean, and a new path is
added in the UI state management to handle this case as distinct from the
'none' keyMap case.
  • Loading branch information
John Preston committed Sep 20, 2020
1 parent 076540c commit edc4412
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 105 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changes to Calva.
## [Unreleased]
- [Fix: evals should be ignored during parsing](https://github.com/BetterThanTomorrow/calva/issues/763)
- Fix: [Test runner can't find tests under cursor when using a custom test macro](https://github.com/BetterThanTomorrow/calva/issues/786)
- [Allow toggling Paredit function independently of mode](https://github.com/BetterThanTomorrow/calva/issues/784)

## [2.0.124] - 2020-08-31
- Re-fix: [Can't jack-in when no project file is open](https://github.com/BetterThanTomorrow/calva/issues/734)
Expand Down
Loading

0 comments on commit edc4412

Please sign in to comment.