Closed yngwi closed 2 months ago
Open the branch in Web Editor • VS Code • Insiders
Open Preview
Latest commit: 8d6a369c9bef3f9576c2f5474b41159d8a898349
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Your free trial has expired. To keep using Ellipsis, sign up at https://app.ellipsis.dev for $20/seat/month or reach us at help@ellipsis.dev
This update enhances the Neovim configuration for the hurl.nvim
plugin by introducing a centralized mappings
table. This new feature defines intuitive keyboard shortcuts for managing response popups and split views, improving user interaction. Key actions like closing popups or navigating between panels are now customizable, streamlining the overall user experience and making the plugin more adaptable.
Files | Change Summary |
---|---|
README.md , doc/hurl.nvim.txt |
Added a new mappings section for defining default key bindings for closing and navigating response popups. Updated documentation for customization. |
lua/hurl/init.lua |
Introduced a mappings table in default_config for keyboard shortcuts. Changed configuration merging from vim.tbl_extend to vim.tbl_deep_extend . |
lua/hurl/popup.lua , lua/hurl/split.lua |
Refactored key mappings to use _HURL_GLOBAL_CONFIG for flexibility and configurability, enhancing maintainability of popup controls. |
sequenceDiagram
participant User
participant HurlPopup
participant GlobalConfig
User->>HurlPopup: Press 'q'
HurlPopup->>GlobalConfig: Check mapping for close
GlobalConfig-->>HurlPopup: Return close mapping
HurlPopup->>User: Close the popup
🐰 In a world of keys, so bright and fine,
The rabbit hops, with joy in line.
Mappings now dance, a customizable spree,
Closing and navigating, oh what glee!
With each little press, a wish comes true,
Hurl's magic unfolds, just for you! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@all-contributors add @yngwi for code,doc.
@jellydn
I've put up a pull request to add @yngwi! :tada:
Closes issue #184 by adding a
mappings
section to the_HURL_GLOBAL_CONFIG
table and using the individual mappings when registering mappings for thesplit
andpopup
response views.Note:
vim.tbl_extend
has been replaced withvim.tbl_deep_extend
when merging the default and user provided config tables to ensure also partial custom user mappings are possible. This also affects other settings. I hope this is OK.Summary by CodeRabbit
New Features
Documentation
hurl.nvim
plugin.Refactor