Is there any way to have automatic hard wrapping?
I usually write LaTeX (or other text based files) and keep the source under version control with subversion (and exchange files with colleagues). So often I use diff tools to check the differences between version (mostly with FileMerge, which highlights the differences), but with soft wrap I end up with very long lines and one has to scroll to see the real differences in a line (or better paragraph).
The wrap paragraph comand (^Q) does not work well with LaTeX (it will marge) and the reformat commnd of the LaTeX bundle does not work for me.
All the best
Guido -- Dr Guido Governatori School of Information Technology and Electrical Engineering The University of Queensland Brisbane, Queensland, 4072, Australia Phone: +61-(0)7-336 52907 Fax: +61-(0)7-336 54999 http://www.governatori.net/TextMate http://www.defeasible.org
On 25/10/2007, at 02:59, Guido Governatori wrote:
Is there any way to have automatic hard wrapping?
No
I usually write LaTeX (or other text based files) and keep the source under version control with subversion (and exchange files with colleagues). So often I use diff tools to check the differences between version [...]
Hard wrapping here is IMO not a solution to this problem. Say you add a word to the first line that causes the following lines to be wrapped differently, or somebody rewraps a paragraph to another column width -- now you actually did cause multiple lines to be changed.
I know though that the present diff “support” for prose sucks since it is line based. There are however sub-line diff visualizers and I have long wanted for us to include such one in TextMate, maybe default to use sub-line diff for the text.* scope.
If anyone got recommendations for nice sub-line diff visualizers [1] let me know.
[1]: I.e. producing some nice HTML to display the differences.
On 10/25/07, Allan Odgaard throw-away-2@macromates.com wrote:
If anyone got recommendations for nice sub-line diff visualizers [1] let me know.
[1]: I.e. producing some nice HTML to display the differences.
Including commercial stuff?
I.e: are you looking for code, or just inspiration?
If it's the latter, I'd suggest you to take a look at Araxis Merge. It is a damn nice (and damn expensive :) tool. I'm not sure the Mac version (currently in beta) is up to par with its Windows version, but you can download a demo of both from their site: http://www.araxis.com/merge/index.html
Hope it helps...
On 25/10/2007, at 1:34 PM, Allan Odgaard wrote:
On 25/10/2007, at 02:59, Guido Governatori wrote:
Is there any way to have automatic hard wrapping?
No
Can I put this as a feature request for TextMate2? I think it should be user decision to have hard or soft wrapping, and to have a switch for this could be a useful feature for people (like me) who prefer hard wrap to soft wrap.
I usually write LaTeX (or other text based files) and keep the source under version control with subversion (and exchange files with colleagues). So often I use diff tools to check the differences between version [...]
Hard wrapping here is IMO not a solution to this problem. Say you add a word to the first line that causes the following lines to be wrapped differently, or somebody rewraps a paragraph to another column width -- now you actually did cause multiple lines to be changed.
I know though that the present diff “support” for prose sucks since it is line based. There are however sub-line diff visualizers and I have long wanted for us to include such one in TextMate, maybe default to use sub-line diff for the text.* scope.
If anyone got recommendations for nice sub-line diff visualizers [1] let me know.
GNU wdiff (http://www.gnu.org/software/wdiff/wdiff.html) has command line switches for text to be inserted before/after changed words.
All the best
Guido -- Dr Guido Governatori School of Information Technology and Electrical Engineering The University of Queensland Brisbane, Queensland, 4072, Australia Phone: +61-(0)7-336 52907 Fax: +61-(0)7-336 54999 http://www.governatori.net/TextMate http://www.defeasible.org
Guido Governatori wrote:
On 25/10/2007, at 1:34 PM, Allan Odgaard wrote:
On 25/10/2007, at 02:59, Guido Governatori wrote:
Is there any way to have automatic hard wrapping?
No
Can I put this as a feature request for TextMate2? I think it should be user decision to have hard or soft wrapping, and to have a switch for this could be a useful feature for people (like me) who prefer hard wrap to soft wrap.
I'd guess this is extremely unlikely to be built in. But you could probably hack something together that accomplishes roughly what you want, using the current command architecture.
You might also have a look at latex diff:
http://www.jpaisley.com/software/ruby/rb-latex-diff/
It won't help you out much with your other text documents though. I was able to get it to work, but needed to change the shebang in the main file. Despite what the website says, I was able to use pdflatex.
HTH
Peter
On 10/26/07, Jacob Rus jacobolus@gmail.com wrote:
Guido Governatori wrote:
On 25/10/2007, at 1:34 PM, Allan Odgaard wrote:
On 25/10/2007, at 02:59, Guido Governatori wrote:
Is there any way to have automatic hard wrapping?
No
Can I put this as a feature request for TextMate2? I think it should be user decision to have hard or soft wrapping, and to have a switch for this could be a useful feature for people (like me) who prefer hard wrap to soft wrap.
I'd guess this is extremely unlikely to be built in. But you could probably hack something together that accomplishes roughly what you want, using the current command architecture.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Thu, 25 Oct 2007, Ale Muñoz wrote:
On 10/25/07, Allan Odgaard throw-away-2@macromates.com wrote:
If anyone got recommendations for nice sub-line diff visualizers [1] let me know.
[1]: I.e. producing some nice HTML to display the differences.
Including commercial stuff?
I.e: are you looking for code, or just inspiration?
If it's the latter, I'd suggest you to take a look at Araxis Merge. It is a damn nice (and damn expensive :) tool.
I highly recommend Beyond Compare. No Mac version, unfortunately, but it's good enough for me to keep a Windows install in Parallels primarily to run it. And at $30/seat, I wouldn't even call it damn expensive. (Though if you count the cost of Parallels and a Windows license, then I suppose it qualifies. :-)
Steve King:
Ale Muñoz:
Allan Odgaard:
If anyone got recommendations for nice sub-line diff visualizers (i.e. producing some nice HTML to display the differences) let me know.
Including commercial stuff?
i.e: are you looking for code, or just inspiration?
If it's the latter, I'd suggest you to take a look at Araxis Merge. It is a damn nice (and damn expensive :) tool.
I highly recommend Beyond Compare. No Mac version, unfortunately, but it's good enough for me to keep a Windows install in Parallels primarily to run it. And at $30/seat, I wouldn't even call it damn expensive. (Though if you count the cost of Parallels and a Windows license, then I suppose it qualifies. :-)
No, he (Allan) is talking about some open-source thing we can drop into TextMate diff/version control bundles.