Comments (3)
Have you tried https://github.com/mgalgs/diffview-mode? Essentially the review is a .diff
file and this should work out of the box.
from github-review.
Nice! Thank you for that suggestion.
For those looking for the same thing, i've been able to configure it with scroll-all-mode
as such:
(use-package diffview
:config
;; scroll-all-mode doesn't work with mouse.
;; WORKAROUND: https://www.emacswiki.org/emacs/ScrollAllMode
(defun mwheel-scroll-all-function-all (func &optional arg)
(if (and scroll-all-mode arg)
(save-selected-window
(walk-windows
(lambda (win)
(select-window win)
(condition-case nil
(funcall func arg)
(error nil)))))
(funcall func arg)))
(defun mwheel-scroll-all-scroll-up-all (&optional arg)
(mwheel-scroll-all-function-all 'scroll-up arg))
(defun mwheel-scroll-all-scroll-down-all (&optional arg)
(mwheel-scroll-all-function-all 'scroll-down arg))
(setq mwheel-scroll-up-function 'mwheel-scroll-all-scroll-up-all)
(setq mwheel-scroll-down-function 'mwheel-scroll-all-scroll-down-all)
;; Activate scoll-all-mode when in diffview mode
(add-hook 'diffview-mode (lambda() (scroll-all-mode)))
)
So triggering M-x diffview-current
in the diff-file should activate diffview mode with scroll-all & mouse support.
from github-review.
what about ediff? Is there a similar trick to make it work with ediff? Afaik magit when pressed e
on a diff, opens ediff buffer at that hunk location, maybe something similar would be possible here as well?
from github-review.
Related Issues (20)
- Edit comments i gfm-mode HOT 2
- Code review is inconsistent if new codes gets pushed while reviewing
- Filter ^M characters in diffs
- Using graphql instead of api v3 for reducing number of network calls
- Document the token scope HOT 1
- Got an error from the GitHub API (wrong-type-argument listp error)! when i try to pull request using forge
- Add syntax highligh for review HOT 1
- docs need clarification (or code needs changing?) HOT 4
- Can only see topmost comment HOT 1
- Should start at the beginning of the buffer HOT 2
- Outline mode doesn't work with github-review-mode HOT 1
- Got an error from the GitHub API (wrong-type-argument stringp nil)! HOT 19
- improve diffs with delta
- Applying github-review-approve with no comments fails
- What's the Auth section of the README about? HOT 6
- Feature request - Magit Delta support HOT 1
- graphql seems to require _api.github.com/graphql_ in authinfo
- Readme info about doom-emacs appears to be outdated
- conflicts with `(setq diff-default-read-only t)` HOT 1
- Elisp errors are reported as coming from the GH API, and debug-on-error doesn't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-review.