Hello,
I am super new to posting to lists in general, so please excuse any
breach of etiquette.
I love TextMate, and have been a faithful user since way back. It
lacks for nothing, as far as I'm concerned, but I do have one
question.
Currently, I am using the Text bundle to trim trailing spaces on save.
The settings are like this:
Semantic Class: callback.document.will-save
Save: Nothing
Input: Document
Format: Text
Output: Replace Document
Format: Text
Caret Placement: Heuristic
This works beautifully. The only issue I have is that no matter where
I am in the document, after save my cursor (caret) is placed at the
very end of the document, and the document is scrolled to that point.
In a longer file, with frequent saves, I have to scroll back and find
my place every time.
I tried different options for Caret Placement and for Output (in the
bundle), but the result remains the same.
My question is twofold: is there something else I could be doing, and
also I'm curious if there are any plans to change this behavior (or
make trimming a built-in option, so to speak), to where the view
doesn't scroll? Seems like this is a common option to want to have.
Thank you!
- g
Hi,
I've noticed that selecting enclosing typing pairs is broken for HTML when
an open tag spans several lines. ie:
<div>*
<p id="paragraph"
class="content">
</p>
</div>
If you place the caret at * and select the enclosing typing pairs, the
selection closes at </p> rather than </div>. It doesn't happen however for
self closing tags:
<div>
<input id="field"
class="form-field"/>
</div>
I've looked into the HTML bundle but I'm not sure the typing pairs
references there are the culprit for this.
Could someone point me in the right direction to fix this issue? I'd be
glad to open a PR once I get it working.
Thanks!
Hi,
I bumped into a problem while checking the R bundle.
There's a command which outputs HTML source to display the result within TM's HTML output window.
If I start TM and execute this command everything will be displayed correctly. Then I close the HTML window, I modify some code, and invoke the same command again to come up with an HTML output window I only see the spinning wheel and a blank window. After ~30s the HTML window displays the correct picture.
I was able to narrow down the problem and attached is a test environment (as a tmCommand). The problem is a non-existing CSS resource. If you invoke this command for the very first time, the HTML output window machinery simply ignores the non-existing CSS file and displays the content correctly. Fine. If you re-invoke the same command the HTML output keeps blank for half a minute. If you then delete the 4th "echo"-line containing R.css everything works perfectly.
Here the test code
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"
echo "<html><head><title>R: Phonetic algorithms</title>"
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">"
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"R.css\">"
echo "</head><body>"
echo "TEST"
echo "</body><html>"
******************************************************
Hans-Joerg Bibiko
Max Planck Institute for Evolutionary Anthropology
Department of Linguistics
Deutscher Platz 6 phone: +49 (0) 341 3550 341
D-04103 Leipzig fax: +49 (0) 341 3550 333
Germany e-mail: bibiko [at] eva.mpg.de
******************************************************
I noticed something strange while trying to record a simple macro. When replaying the macro, it skips some steps, especially when there is text selected in between.
Steps to reproduce:
- Open a buffer with the following content:
tm foo
tm bar
- Move to the beginning and hit "Start Recording"
- Select the first word with ^w
- Type "textmate" (or anything else, doesn't matter)
- Hit "Stop Recording"
- Move to the beginning of the line
- Hit "Replay Macro"
Result:
On the second line, "tm" is selected, but the text has not changed. If you try to save the macro you see the content of it and will notice that the macro was at least recorded correctly.
Workaround:
Rolling back to the last normal release (2.0-beta.6) fixes it and replaying works again.
When I try to run run these two commands:
LaTeX > Insert > Citation based on current word
TODO > Insert TODO List
I¹m getting a dialogue box with this message:
Failure running ³Citation Based on Current Selection². interpreter failed:
No such file or directory.
Anyone know what the problem is?
Ross Ahmed
Ecologist
07875533906
Twitter: @RossAhmed <https://twitter.com/RossAhmed>
LinkedIn: Ross Ahmed <https://www.linkedin.com/pub/ross-ahmed/2a/775/590>
I occasionally get log output such as that I've posted below. The pdf is
not updated, but both the dvi and ps file are correctly compiled. TeXShop
correctly compiles using pdflatex. Occasionally latexmk will decide to use
pdflatex and everything will work correctly. I don't really know what's
happening with ps2pdf and what it means by "stable files" and I'm not sure
if this error is caused by a bug in latexmk or maybe some error in the
configuration info given to latexmk by textmate.
Does the latex bundle have any control over whether latexmk uses pdflatex
or regular latex?
-Jim
p.s. Here is that log file, with the latexmk messages:
Latexmk: This is Latexmk, John Collins, 11 Nov. 2012, version: 4.35.
Latexmk: applying rule 'latex'...
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013
Processing: Practice Midterm 1 copy.tex
Document Class: exam 2011/05/22 Version 2.4 by Philip Hirschhorn
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
Output written on "Practice Midterm 1 copy.dvi" (6 pages, 17724 bytes).
Complete transcript is in Practice Midterm 1 copy.log
0 Errors 0 Warnings in this run.
Latexmk: applying rule 'dvips'...
0 Errors 0 Warnings in this run.
Latexmk: applying rule 'ps2pdf'...
0 Errors 0 Warnings in this run.
Latexmk: applying rule 'ps2pdf'...
0 Errors 0 Warnings in this run.
Latexmk: applying rule 'ps2pdf'...
0 Errors 0 Warnings in this run.
Latexmk: applying rule 'ps2pdf'...
0 Errors 0 Warnings in this run.
Latexmk: applying rule 'ps2pdf'...
Latexmk: Maximum runs of ps2pdf reached without getting stable files
Latexmk: Did not finish processing file 'Practice Midterm 1 copy.tex':
Latexmk: applying rule 'ps2pdf'...
Latexmk: Errors, in force_mode: so I tried finishing targets
Tell Skim to refresh '/Users/Starx/Dropbox/Mathematics/LaTeX
Projects/Math307Win15/Practice Midterm 1 copy.pdf'
Command latexmk -pdfps -f -r /tmp/latexmkrc -r
'/Users/Starx/Library/Application
Support/Avian/Bundles/latex.tmbundle/Support/config/latexmkrc' 'Practice
Midterm 1 copy.tex' exited with status 12
Thanks Allan, the error message when I try to “Show Todo list” is:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- /Users/rramcharan/Library/Application Support/TextMate/Managed/Bundles/TODO.tmbundle/Support/todo.rb (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require’
> On Jan 23, 2015, at 7:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
>
>
> Today's Topics:
>
> 1. todo bundle (Rodney Ramcharan)
> 2. Re: todo bundle (Allan Odgaard)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 22 Jan 2015 19:19:43 -0500
> From: Rodney Ramcharan <rodney.ramcharan(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] todo bundle
> Message-ID: <BA4D8BF9-C9DA-4FB8-8FAA-DE8466AB6E27(a)gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Sorry to trouble you with this since I know it?s been addressed but I can?t to figure out the answer. My todo bundle no longer works with the upgrade to yosemite,
> and my path variable is defined as "$PATH:/usr/local/bin:/usr/local/bin? in the preferences tab. Is there something else I need to do. Again, many apologies for the silly question.
> Best,
> Rodney
>
Sorry to trouble you with this since I know it’s been addressed but I can’t to figure out the answer. My todo bundle no longer works with the upgrade to yosemite,
and my path variable is defined as "$PATH:/usr/local/bin:/usr/local/bin” in the preferences tab. Is there something else I need to do. Again, many apologies for the silly question.
Best,
Rodney
There is a nice little Show Web Preview function. Problem is as sweet as it is when doing actual development you have to keep re-executing the shortcut to invoke it. This make seance for something like the external browsers refresh feature, but the internal preview should really be synchronized. Ie as changes are make they show in the preview immediately(or ofter a few seconds of inactivity or a save operation maybe for performance reasons.)
Would it be possible to some how combine the diff highlighting with the
highlighting of a source code? I know that it's possible to insert other
grammars in a grammar but I was thinking of a general solution that
doesn't require changing every existing grammar to add diff support.
It would be really cool if it would be possible to recognize each file
(if multiple files in a diff) and highlight it according to the file
extension.
--
/Jacob Carlborg