Comments (15)
try vdiff-temp-files
on master
from emacs-vdiff.
You want a function for vdiff that creates two buffers to paste text into?
from emacs-vdiff.
Yes, Exactly.
something like this ready to receive texts from lets say, clipboard
from emacs-vdiff.
A wrapper like vim's linediff might make sense https://github.com/AndrewRadev/linediff.vim
Sorry for tailgating another feature request I would like to discuss - would it be simple to support diff-ing narrowed buffers? I could do a PR, as long as there isn't a conceptual issue with this approach.
from emacs-vdiff.
Yes, something like that exactly 😀.
diff-ing narrowed buffers
Sorry I don't understand what you mean here.
from emacs-vdiff.
However, The two texts (to compare) don't necessarily need to come from Emacs or an open file itself. It may just come from code I copied from let's Chrome web browser.
from emacs-vdiff.
Would the buffers be deleted by default or kept by default? Would you want to name the buffers or give them a temporary name?
from emacs-vdiff.
I think a temporary name would be OK, left right, text 1 - text 2, or just whatever you may think fit better. by default of course. Maybe add options to rename them.
Would the buffers be deleted by default or kept by default?
Not sure what you mean here.
from emacs-vdiff.
from emacs-vdiff.
Yeah, why not. at least, by default yeah. Maybe not. I don't know... Chose the best, am fine with both 🙂.
from emacs-vdiff.
@justbur
Hello, Sorry for the delay,
Thank you very much for implementing this feature
I just test it and here is my thoughts:
When it comes to layout It works perfectly.
the auto scroll on both buffer is nice too, I didn't expect that one.
Now about the colors, Am little confused.
Like It's easy to see line that doesn't exist on the other side with the red dashes -----------
howerver on line with different text, only the color change.
An ideal solution would be to use different background to highlight the differences like in this example:
instead of just changing the color like in the current implementation:
from emacs-vdiff.
The colors used are not set by this package. Their set by the theme you are using.
from emacs-vdiff.
Hello,
vdiff-temp-files
isn't available on Melpa yet.
from emacs-vdiff.
It's been there since February. I just downloaded it again. Maybe you pinned it?
from emacs-vdiff.
That's weird, I just try again but M-x vdiff-temp-files
doesn't show nothing...
I remember it was working back in february.
from emacs-vdiff.
Related Issues (20)
- Vim-like keybindings - how to bind `] c` and `[ c` in evil normal state HOT 5
- 2-way vdiff-magit-stage HOT 10
- Evil fold integration HOT 3
- Not getting "addition" overlay color for added lines preceded by a line with change HOT 1
- alternative diff programs (e.g. patience diff) HOT 6
- Error after start vdiff-mode HOT 5
- Truncate lines HOT 3
- Toggle fold command HOT 1
- Send/receive parts of changes HOT 3
- Release new version on GNU ELPA HOT 2
- Swaps visual position of buffers HOT 1
- Lock scrolling is not working when the cursor is not on the scrolled buffer HOT 2
- Why ediff not show different on files? HOT 2
- Region diff
- Fold string too long when using display-line-numbers-mode
- Beginning of window can't be in middle of subtraction in some circumstances
- Toggling case / whitespace doesn't work? HOT 2
- How to start folding? HOT 5
- git diff tool usage requires explicit call to vdiff-mode 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 emacs-vdiff.