Is there any easy way to sync bundles/settings (like keyboard shortcuts for
commands) across computers with Dropbox?
If not, this would be a great feature to add.
Henry
So, just finished the first draft of my novel. TextMate was the editor
of choice this time, and things went wonderfully. I liked the
find/replace in project, which allowed me to use variables until I
could think of the name for something. :-) (I used a Ruby gem I
modified to convert Markdown to LaTeX and then compiled into PDF. Also
can independently convert the Markdown to epub. :-) I love geekness.
You may not remember that a while back I needed some rather odd text
competions (" => ``TM_SELECTED_TEXT$0"). The only problem is now it
appears everywhere! That is, when I use TM to edit anything, the
single double quote expands out. I don't need it except for Markdown
(.md) files.
Anybody know how? Or, at least point me in the right direction?
TIA.
--
Ben Wilson
"We cannot determine the character or nature of a system within
itself. Efforts to do so will only generate confusion and disorder."
Boyd
Along with my recent experience with the "jumping gutter", I now am getting the left side of my document getting cut off from time to time.
http://cl.ly/2J2b1h1n2Y3x0G121u3P
Manual resizing takes care of it, but its not clear why this is cropping up all of a sudden. I did not notice any of these UI issues before the last update. Was a bug introduced?
cf
Hi,
I am working on the language grammar of my bundle and I am running into
problems for the following case:
Given:
=====
Heading
=====
I want to be able to assign a style to the over and underlines and another
style to the Heading part.
- "Heading" can be any character (but is always on one line).
- The over line is not required and is usually used to indicate the highest
level of a heading (but it can be left out completely).
Characters for the over/under lines can be any non alphabet letter but
usually one of the following is used:
.,-=+~*"'´|
The goal is to at least be able to style the "Heading" text and to include
the "Heading" in the symbol list.
Also this is used at the top scope definition level so that I can chop up
the text into heading sections and text body sections.
I would therefore include repository rules for heading sections and other
repository rules for the text body sections.
Because TextMate can't handle multiline regexes I found this problem to be
unusually hard.
I am also unclear on questions of order within the top level scope
definition.
If two grammar patterns apply to one text section equally which one is used?
e.g. if I have a patterns array in the top level:
patterns = (
rule1 = { name = 'scope1', match = ... };
rule2 = { name = 'scope2', match = ... };
)
and both apply equally to some text is rule1 used and then overwritten by
rule2 so that the text is under scope 'scope2' ?
The help seems to discuss ambiguities like this for theme scope selectors
but not for language grammars.
I am also unclear how you can make a regex backreference from an end pattern
to a capture group in begin pattern or vice versa. (below I assume it is
backslash-1 but I'm not sure).
Also is it possible to define rules for one scope, rules for another and
then say everything else is some third scope without needing to define match
rules?
Here's what I have so far:
{ scopeName = 'source.sphinx.doc';
fileTypes = ( 'rst', 'rest', 'txt' );
patterns = (
{ contentName = 'meta.doctitle.sphinx';
begin = '^((?:=|\-|_|~|`|#|"|\^|\+|\*){3,})$';
end = '^(\1)$';
beginCaptures = { 0 = { name = 'markup.doctitle.overline.sphinx'; }; };
endCaptures = { 0 = { name = 'markup.doctitle.underline.sphinx'; }; };
},
{ name = 'meta.heading.sphinx';
begin = '^([A-Za-z][^\n]+)$';
end = '^(=|\-|_|~|`|#|"|\^|\+|\*{3,})$';
beginCaptures = { 0 = { name = 'markup.heading.sphinx'; }; };
endCaptures = { 0 = { name = 'markup.heading.underline.sphinx'; }; };
},
{ contentName = 'meta.paragraph.restructuredtext';
begin = '^(?!=|-|~|`|#|"|\^|\+|\*)([ \t]*)(?=\S)';
end = '^(?!\1(?=\S))';
},
);
};
meta.heading.sphinx is used for
Heading
---------
and meta.doctitle.sphinx should be used for the over/under line Heading
case.
A meta.paragraph should then capture everything that isn't meta.heading or
meta.doctitle but this has proved problematic to say the least.
I would appreciate it if anyone could share a trick to make this possible or
an answer if this is even possible at the moment or not.
Thank you very much for reading!
Andre
--
View this message in context: http://old.nabble.com/Language-Grammar-Problem-tp30491202p30491202.html
Sent from the textmate users mailing list archive at Nabble.com.
I'm partially blind, and constantly find myself squinting and
straining to see what I'm selecting in the project window (Which is
one of TM's strengths IMO).
I've tried using
http://headfirstproductions.ca/modifying-textmate-drawer-font-size/ ,
but my lack of familiarity with IB and XCode has left me unable to
actually make this work reliably.
I would pay another $20-30 for this one feature alone.
-Chris
--
Christopher Patti - Geek At Large | GTalk: cpatti(a)gmail.com | AIM:
chrisfeohpatti | P: (260) 54PATTI
"Technology challenges art, art inspires technology." - John Lasseter, Pixar
Hello,
I have looked at the TextMate wiki page and in the GitHub project page
and haven't been able to found this.
Is it there any bundle to provide, at least, syntax highlighting for
the wiki format used by Google Code? In particular, the format
described here:
http://code.google.com/p/support/wiki/WikiSyntax
Thanks!
--
Julio Merino
what is the format to view the archives.
I did download a archive, thinking i could "just open it" in Textmate.
The default of txt was appended and when it did open it was gibberish
encoding.
thank you
while debugging some javascript i have come to see that TexMate has an issue
with the CSS selector, border-width written in Javascript as
style.borderWidth
If i write style.backgroundColor, it will show in color green in Textmate.
I have retained the TextMate default color scheme in preferences/fonts
colors/Mac classic.
when i write style.borderWidth it stays black as if it were a variable.
I would assume the Browser compiler or interpreter engine ? would accept the
Javascript script as is, and that TextMate would not be adding any encoding
to its interpretation of the script while showing style.borderWidth as
invalid.
i am learning javascript from a book and the author is not ordained by thy
holy one and this script works to some degree, yet is off balance, this is
what i am working on.
<!--
/*
<code>
var d1 = document.getElementById("div1");
var d2 = document.getElementById("div2");
d1.onmouseover = function()
{
d1.style.backgroundColor = "00ff00";
d2.style.borderWidth = "7px";
};
d1.onmouseout = function()
{
d1.style.backgroundColor = "#ffffff";
d2.style.borderWidth = "1px";
};
</code>
*/
-->
I have composed this message offline going over the message many times to
see that it is concise and to the point, forgive me if it is long winded and
confusing.
Thank you
A rather annoying behavior has cropped up recently for me in TextMate. Periodically, the gutter will "jump", getting wider and narrower over and over again. Its probably easiest to just show a video:
https://www.me.com/gallery/#100103/iShowU-Capture2
Why is this happening, and how can I stop it?
Thanks,
cf
Hi everyone -
I'm having a weird problem with LaTeX/BibTeX cite key autocompletion.
My bib file is in the appropriate place in the user texmf tree, and
BibTeX finds it when I compile the document... but cite key
autocompletion does not work ("bib file not found" or something like
that). Cite key autocompletion DOES work if I put the same bib file
in the same directory as the TeX file itself.
Thoughts? Any help would be greatly appreciated.
Thanks!
Best, Chris MacMinn
Made a disappointing discovery today.
Wrote documentation with markdown and created a custom preview theme especially for this documentation.
Then tried to print it (to a PDF ofc ^^) and the default theme was used, even though the preview was currently
showing my text with my own theme.
Is this an easy fix? Would be a cool feature!
/ Simon
Hi there!
I have a simple, surely often asked question. Please don´t "RTFM!" me, I really did search and google for that.
So here is my problem: We develop in Perl with textmate. We have two functions in our framework, called "breakpoint" and "debug". Those are marked with yellow background and black font. Unfortunately, the developers who know how to adjust textmate correctly, are all gone (they´re not dead, just quit!). I got a new machine and am trying desperately to set the highlighting of those two words eversince.
During my crusade I also discovered that we have a customized language declaration for Perl under "Bundles/Bundle Editor/Edit Languages/Perl". I put that one on my new machine, but it doesn´t do the trick.
Here are two screenshots which show how it looks on the old machine and the setting ("perl.control") that I suspect being responsible for that:
http://www.dreamway.com/screen1.pnghttp://www.dreamway.com/screen2.png
Thanks for your help!
Hey all,
I am using TextMate to tex a lot of stuff and I love the pdfsync feature with Skim.
Since this afternoon, the sync stopped working :(I reinstalled Skim and TextMate after deleting them (including Lib/App Support stuff and Caches), but I still get an error at the end of the typesetting run:
sh: /var/folders/My/My9skQrnFpON8oDbZaiRXk+++TI/-Tmp-/Skim: No such file or directory
That should be related to the problem, but I can't figure it out. So, any hints or suggestions?
Thanks a lot!
Best regards,
Andreas
Have you tried using enter in prefference to return?
I think this depends on the bundle you're useing but using enter (⌅), which
is fn-return(⏎) on my Macbook Pro will insert a new line with same indenting
as the current line. In the ruby bundle this will also continue comments
and other things.
Cheers,
Sean.
kartik.thapar wrote:
>
> I am new to textmate. I absolutely don't require indentation rules when
> using if/switch/case, etc.
>
> I want a very simple indentation rule which makes the next lines's indent
> same as previous line's indent.
>
> for eg.
>
> sub foo
> { <- 0 indent
> my $str = "string"; <- manual indent
> # <- auto indent (*)
> } <- manual indent
>
> I am looking for auto indent as described above. Any one know how to do
> this?
>
--
View this message in context: http://old.nabble.com/Next-line-indentation-tp30308903p30366710.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
Is it normal behaviour that the Web Preview window closes when you switch to
another file in the project? Or is this a known bug?
The preview window can hardly be useful if this behaviour is the expected
behaviour?
I am working on some Sphinx doc files and whenever I switch to a .rst file
to run my build pipeline the preview of the HTML file I am interested in
closes. It would be really awesome if it could stay open somehow so that I
would be able to take advantage of the auto-refresh behaviour. Is there a
setting I can switch on or maybe some other workaround?
Thanks for reading!
André
PS: when searching I found numerous posts mentioning two web previews - I
can only assume that one is meant to be the Show as HTML output Command
option and the other the Show Web Preview Window menu action. Just to be
clear I am talking about the latter.
--
View this message in context: http://old.nabble.com/Show-Web-Preview-window-closes-on-file-change-tp30366…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I did update the Subversion bundle from http://svn.textmate.org/trunk/Bundles/Subversion.tmbundle . The last commit was to remove TM_RUBY. I didn't follow the list about that issue but it seems that inside the command "Update to Newest" ruby code the variable #{ruby} isn't set correctly.
...
ruby -r "$TM_SUPPORT_PATH/lib/shelltokenize.rb" <<END
svn = ENV['TM_SVN'] || "svn"
support = ENV['TM_BUNDLE_SUPPORT']
paths = TextMate.selected_paths_array
# TODO: Ideally, we'd like to use a tooltip for one and not others, but we can't switch from a tooltip
# to dynamic HTML output (or maybe we could double-fork a process?)
# if ((paths.size == 1) and not (File.directory? paths[0]))
# puts %x{#{svn} update #{TextMate.selected_paths_for_shell}}
# else
update = IO.popen("'#{svn}' update #{TextMate.selected_paths_for_shell}", 'r')
format = IO.popen("'#{ruby}' -- '#{support}/format_status.rb'", 'w')
update.each_line { |line| format.puts(line) }
# end
END
...
look at line :
format = IO.popen("'#{ruby}' -- '#{support}/format_status.rb'", 'w')
If I change it to:
format = IO.popen("ruby -- '#{support}/format_status.rb'", 'w')
everything works fine.
Did I miss something?
Thanks a lot in advance,
--Hans
Hi all,
A quick search of both Google and this lists' archive didn't solve this for me so I am wondering if anyone here has an idea.
I use RVM and Textmate. I followed the instructions at:
http://rvm.beginrescueend.com/integration/textmate/
(including moving the builder.rb in /Applications/TextMate.app/Contents/SharedSupport/Support/lib/)
However, I still get "env: ruby: No such file or directory" from Textmate. Using env from the command line works fine:
mbpatrick:~ patrick$ /usr/bin/env ruby -v
ruby 1.8.6 (2010-02-05 patchlevel 399) [i686-darwin10.4.0]
mbpatrick:~ patrick$ sudo ln -s /usr/bin/env /usr/local/bin/env
Password:
mbpatrick:~ patrick$ /usr/local/bin/env ruby -v
ruby 1.8.6 (2010-02-05 patchlevel 399) [i686-darwin10.4.0]
And my textmate_ruby script works fine:
mbpatrick:~ patrick$ /Users/patrick/.rvm/bin/textmate_ruby -v
ruby 1.8.6 (2010-02-05 patchlevel 399) [i686-darwin10.4.0]
mbpatrick:~ patrick$
My shell variables in Textmate:
TM_RUBY /Users/patrick/.rvm/bin/textmate_ruby
PATH /usr/bin:/bin:/usr/sbin:/sbin
I've quit Textmate and restarted, quit shells and restarted, I've tried putting /Users/patrick/.rvm/bin in my PATH (in TextMate), I've tried putting /Users/patrick/.rvm/rubies/ruby-1.8.6-p399/bin/ in my PATH (in Textmate), I updated Textmate and all it's bundles to the newest versions, nothing seems to work.
I am curious why TextMate is using env at all given that TM_RUBY is set...
Anyone have any ideas? Would appreciate any help.
Patrick
Dear all,
I've just updated the GetBundles Bundle and the script which runs once a day to cache and provide all information. The problem was that github did change its URLs and API again. Maybe for the future to avoid such instances we could maintain a list of all github hosted bundles in a github repository ( only an idea :) .
@Shawn Parker
I was able to install your WordPress bundle by using GetBundles version 1.4 :)
All the best,
--Hans
Hello:
Is there a way for me to configure my computer so that using "Quick Look" with a TextMate-associated file actually does a "quick look"?
I have some of my source files types associated with TextMate, say "*.asm", and they show up with the TextMate icon, but when I try "Quick Look," all I get is the file information.
Thank you,
dZ.
So, one shortcut I use frequently in HTML is 'ctrl+shift+w'. However,
recently it has started giving me the expected p tag, as well as a large
body of css that I once copied to the clipboard and, i assume, then hit some
other crazy combination of keys to copy it to the 'ctrl+shift+w command'.
Any ideas how to fix this??
Thanks!
--
Zac Parker
zac(a)zacparker.com
http://www.zacparker.com
Hi,
After upgrading to Snow Leoperd, the shortcut Shift-Cmd- Left (or
Right) Arrow, that would select a part of the line, stopped working.
How can I fix this?
I want to be able to execute a multi-line SQL statement by placing the cursor anywhere in the statement OR immediately following the ending statement semi-colon. With the grammar fragment below everything seems to work fine except for the case where two statements are on consecutive lines:
select 1;
select 2;
In this case, both statements are executed because it looks like a single consecutive scope. I have tried various things, but I can't seem to find the right regular expression magic to only execute the statement to the left of the semi-colon.
{ name = 'meta.statement.pgsql';
begin = '(?i)^(abort|alter|analyze|begin....)';
end = ';\s*';
beginCaptures = { 0 = { name = 'keyword.other.pgsql'; }; };
patterns = (
{ include = '#dollar_quotes'; },
{ include = '#comments'; },
{ include = '#strings'; },
{ include = '#keywords'; },
{ include = '#misc'; },
);
},
Thanks for any help or suggestions.
John DeSoi, Ph.D.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello
I recently discover that in the latest build of textmate when I have my latex project and insert TODO element
after invokikng control shift T it presents mi a TODO window with nothing shown.
on single file with latex everything is working.
I am using in my project one main document file and several others tex files included in main.
Anyone can confirm this strange behaviour?
Regards
Sebastian Szwarc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
iEYEARECAAYFAkz0FQkACgkQrcTqu+KxYfeKeQCgxqhB9n3zwtSqpfd+lrlr97po
SPgAoJ51yu6Hb37PzUMelfxthZ6qZ1Mp
=0F6H
-----END PGP SIGNATURE-----