pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/sindrets/diffview.nvim/pull/482

-requests-be6017ec12798e73.css" /> Add close keymaps to commit log panel by kevintraver · Pull Request #482 · sindrets/diffview.nvim · GitHub
Skip to content

Add close keymaps to commit log panel - #482

Draft
kevintraver wants to merge 2 commits into
sindrets:mainfrom
kevintraver:feature/close-keymaps-for-commit-log-panel
Draft

Add close keymaps to commit log panel#482
kevintraver wants to merge 2 commits into
sindrets:mainfrom
kevintraver:feature/close-keymaps-for-commit-log-panel

Conversation

@kevintraver

Copy link
Copy Markdown

Work in progress for #481

@kevintraver
kevintraver force-pushed the feature/close-keymaps-for-commit-log-panel branch from 32e7f98 to d2659c4 Compare April 4, 2024 18:01
@pksunkara

Copy link
Copy Markdown

What's needed to get this done? I can make a PR if needed.

@emmanueltouzery

Copy link
Copy Markdown
Contributor

i think the author addressed that in #167 (comment)

dlyongemallo pushed a commit to dlyongemallo/diffview-plus.nvim that referenced this pull request Feb 4, 2026
Add q and <esc> keymaps to close the commit log panel, matching the
behaviour of other panels like the help panel. The keymaps are
configurable via keymaps.commit_log_panel.

Fixes sindrets#481

for _, mapping in ipairs(conf.commit_log_panel) do
local map_opt = vim.tbl_extend("force", default_opt, mapping[4] or {}, { buffer = self.bufid })
vim.keymap.set(mapping[1], mapping[2], mapping[3], map_opt)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is incorrect. It sets a global keymap which means pressing Escape will now close any diffview window.

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.

4 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy