Hi,
what is the best form, to change/adapt the highlighting of ons own
often-used functions?
E.g. if I have a Perl sub called `i` (printing some debug-info to
stdout) and to be used e.g.
i 'Starting ifgrp store ...';
And if would like to have these lines formatted like a comment (grey,
italics) so that it survives changes in the Perl-Bundle including
reinstallations of TM2. Where and how would someone define that?
My guess is, to place it in my own Bundle and to use something like
begin = '^\s*';
end = ';\s*$'; # trailing white space may occure
But I can't figure out the details.
Thanks and kind regards, Ingo
--
Ingo Lantschner
Hi,
The “Commit” command in the git bundle no longer works for me.
If I run “Show Uncommitted Changes”, the git bundle properly displays the
diff. However, if I run the “Commit” command, it instead displays: "Working
directory is clean (nothing to commit)”.
So the repro steps are:
1. Make a change to a file
2. Run `git diff` or “Show Uncommitted Changes” to verify that a change has
been made
3. Run the “Commit” command
Is anyone else experiencing this issue?
Thanks,
Charles
On 01.01.2014, at 22:50 , "T. Zha" <zmail(a)tzha.net> wrote:
> Thanks for the information. I?ll try what you suggested. Any suggestion of the best source to download the epstopdf package?
If you have downloaded MacTeX, the package is included in the standard installation. All you need to do is use \usepackage{epstopdf} in the preamble and that's it.
I'm not using Matlab, just gnuplot, xfig and other simple graphing tools, but with the exception of gnuplot, they all feature pdf+latex output (meaning that the software creates a .tex file which you need to include and a pdf file, this way you can use latex commands in labels and such).
Max
Hi all and a very great / happy new year to all of you.
My name is Gabriel and I’m a very beginner both as a programmer and with TextMate.
TM is one of the few editor I have found which is accessible to the VoiceOver technologies
I have to use as I’m totally blind.
My problem has to do with using TM to write and test Python scripts.
I have this simple one:
# begin
a =input(“name? ")
print a
# end
I press Bundle… python… run script and getting this error message:
***
Running “untitled”…
Python 2.7.6
Theme:
nome
EOFError: 'EOF when reading a line'
module body in untitled at line 1
a =input("nome")
copy output
Program exited with code #1 after 0.41 seconds.
***
That’s sounds strange as the script has no mistakes.
Could you please help me to found how to solve this issue?
Thanks.
Gabriel.
All my source code is on a centos virtual machine, which I access over an
AFP share.
When I have a file open in TM2, TM is not able to detect that its been
changed.
This happens often when I switch git branch.
If I open a terminal and run 'ls' on the file, at this point suddenly TM
realises its changed and reloads it.
Can anyone offer an explanation for this?
I figured maybe its some form of fstat cache kicking in, either in OSX or
due to the way the AFP share has been configured, but I cannot find any
other apps behave the same way (ie, Sublime Text detects it has changed
immediately)
Pardon me for being a bit sentimental, but as a recent TextMate 2 adopter, I find that, quite aside from the technical improvements and the ability to run happily on Mavericks, I'm loving the new interface. When working on a small screen especially, I really appreciate the ability to maintain an all-in-one layout. With multiple documents opening as tabs, and the results window as a right pane, I'm so much more agile than in the past. This is a marvelous transformation. Thanks and a happy new year - m.
--
matt neuburg, phd = matt(a)tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
Hi,
currently i don’t know why building text mate from source did not work for me.
My Setup is :
- source checked out from git with all submodules
- latest os x Maveriks 10.9.1
- neded dependencies are installed via brew
- my ninja target is TextMate/run
after clean and build from text mate i get the following error
https://gist.github.com/tfcoding/8195924
so it would be great if somebody could say why this error appears..
thx
Tim
In one of the recent updates (I think), the default behaviour when hitting
return inside a new set of braces seems to have changed.
Previously opening a pair of braces and hitting return would result in the
following:
{
// caret here
}
Now I get:
{
// caret here}
This is affecting all the grammars I commonly use - PHP, CSS, JS but
presumably is global.
Did I inadvertently change a setting somewhere or is this a change of the
default TextMate behaviour that I missed?
Either way, is there a way to return to the old behaviour? I have done a
few searches and seen some mentions in certain languages that you may be
able to build a snippet to fire on enter if the syntax supports specific
enough scoping but I'm failing to get it to work for me.
Dom
On 01.01.2014, at 07:00 , textmate-request(a)lists.macromates.com wrote:
> Actually I would recommend you and everyone to use the ?latex? engine instead of pdflatex.
I'm very well-versed in LaTeX, and I started with the non-pdf latex many moons ago. If it were up to me, I'd use xelatex because of its superior handling of fonts, but the arxiv doesn't support it and most collaborators don't know about it or care to use it. (The arxiv still on TeX Live 2011, too.) pdflatex is the de-facto standard for good reason.
> With latex, you can typeset eps figures directly without converting it to pdf figures and the resulting pdf file has a much sharper resolution than those produced by pdflatex applied to pdf figures, especially when you use the beamer for presentation.
Actually, eps is a format of the past, most programs (e. g. xfig) can output either directly to pdf or a pdf/LaTeX combo. Even if you get eps output (e. g. from gnuplot's using the eps+latex output), loading a single package (epstopdf) takes care of the on-the-fly conversion (which does *not* reduce the resolution, I think it just encapsulates the eps file into a pdf wrapper). This reduction in quality only happens if someone manually converts the eps file to pdf with the wrong tool in the wrong way.
During typesetting, you lose pdfsync which is a very handy feature (clicking in a location in the pdf file sends you to the corresponding line in your latex code). Moreover, pdf files which are generated from the intermediate dvi files often have lower quality (e. g. font rendering is worse, text no longer is searchable and hyperlinks may stop working).
I've only dealt with one journal that used latex instead of pdflatex (and another one which strangely enough doesn't seem to use latex at all on its backend).
If latex works for you, fine, but I don't understand why you force others to cling to the old. (I would not force my students to use TeX in any particular way.) Especially when it seems to be due to just not knowing about well-known solutions to old problems.
Max
On 31.12.2013, at 07:00 , "T. Zha" <zmail(a)tzha.net>
> I need latex as engine because it can typeset .eps graph files. The eps graphs have much better resolution than pdf graphs.
All you need to do is load the package epstopdf and use pdflatex. I seriously caution against using anything but pdflatex these days, most journals have moved to pdflatex (for very good reason), so that's what you should use as well to minimize friction.
Also, if you use the proper tools to convert the eps file to pdf, then the resolution is the same as both are capable of including vector graphics. However, if you convert an eps file the wrong way, the output will be a bitmapped file encapsulated in a pdf file.
Max
Dear List,
Apologies if this question has an obvious solution. In TextMate 2, is
there any way to make the project window stay open even if the last
file tab has been closed?
Nicholas
Hi:
I use MacBook Pro with OS X 10.9.1. I have encountered a typesetting problem with the latest TextMate version 2.0.alpha. I set Bundles → Latex → Preferences as follows:
Default Engine: latex
View in: Preview
Checked on “Show pdf automatically”
Checked on “Keep log window open”
The message I got is
error number 256 opening viewer
When I set “Default Engine: pdflatex”, TextMate works, but it gives me the above error message when I set “Default Engine: latex.”
I have deleted the files you as suggested by the following link
https://github.com/textmate/textmate/wiki/Reverting-To-Defaults
but it still gives me the same error message.
Note that it can generate a valid .ps file, but fails to generate a .pdf file. Any help would be much appreciated.
Is it possible to define headers that appear in the Go to Symbol list (shift
+ command + T).
For example, can I define this as a header:
% This is a header -----------
Thanks
Ross
In R.app on Mac OSX, pressing tab after an object name and dollar sign will list all variables contained within that object. For example:
Pressing mtcars$ + TAB will list all variables contained in the mtcars dataset.
Pressing iris$ + TAB will list all variables contained in the iris dataset.
Is it possible to mimic this behaviour in a .R file in TextMate?
Ross
Well, I have two issues I am hoping for help on.
(1) The built-in git bundle has partly stopped working on 10.9 Mavericks (on the nightly build). The bug is that the log command creates a window which shows the log messages, but the + which expands into a line by line diff no longer expands.
I think that began exactly when I installed Mavericks, so I imagined that this was a simple config issue with the ruby scripts in the bundle. So I downloaded the latest git bundle from https://github.com/jcf/git-tmbundle which of course didn’t work on my computer, so… anyway to get to the point, of course….
(2) I screwed up my config somehow and I can’t get back to the default git bundle. I am trying to do a clean reinstall of TM2 and I’m failing. I deleted
~/Library/Application\ Support/Avian
~/Library/Application\ Support/TextMate
~/Library/Preferences/com.macromates.*
and I rebooted and I emptied the trash. I copied a fresh nightly 2.0 into /Applications. My bundles are still screwed up and the Git bundle won’t work.
Is there some location I am forgetting to delete?
best wishes, Eric
--
Eric Hsu, Professor of Mathematics
Director, Center for Science and Mathematics Education
San Francisco State University
http://math.sfsu.edu/hsu
Well, I have two issues I am hoping for help on.
(1) The built-in git bundle has partly stopped working on 10.9 Mavericks (on the nightly build). The bug is that the log command creates a window which shows the log messages, but the + which expands into a line by line diff no longer expands.
I think that began exactly when I installed Mavericks, so I imagined that this was a simple config issue with the ruby scripts in the bundle. So I downloaded the latest git bundle from https://github.com/jcf/git-tmbundle which of course didn’t work on my computer, so… anyway to get to the point, of course….
(2) I screwed up my config somehow and I can’t get back to the default git bundle. I am trying to do a clean reinstall of TM2 and I’m failing. I deleted
~/Library/Application\ Support/Avian
~/Library/Application\ Support/TextMate
~/Library/Preferences/com.macromates.*
and I rebooted and I emptied the trash. I copied a fresh nightly 2.0 into /Applications. My bundles are still screwed up and the Git bundle won’t work.
Is there some location I am forgetting to delete?
best wishes, Eric
--
Eric Hsu, Professor of Mathematics
Director, Center for Science and Mathematics Education
San Francisco State University
http://math.sfsu.edu/hsu
Yes, maybe there is a problem with samba and Maverick since I changed to
Maverick almost at the same time I change to TextMate v2. I try opening
with another editor and I get a non updated version of the file.
Then I try to open with TextMate and I get the message "TODO Reselect
previously open document". I cannot open the file with TxtMt until I close
my session on the OS and I log on the OS again. However, after a while, I
can correctly open the file with other editors.
Is there a way to do a "clean reopening" of the file without having to
restart my user session in the Mac OS?
Another issue I have notice is that TxtMate does not detect automatically
changes in files of samba file system.
2013/12/19 Allan Odgaard <mailinglist(a)textmate.org>
> On 18 Dec 2013, at 21:54, Jesús Baquedano wrote:
>
> […] I occurs only when using subversion […] file is in a linux machine
>> and I use
>> samba to access it from TextMate […] I see the file in TexMate. The file
>> is incomplete. The last lines are
>> lost […]
>>
>
> Sounds like it could be a problem with the network file system, especially
> since you re-open the file in TextMate and still see the last part missing,
> i.e. the network file system locally cached the file prior to it having
> been fully written by subversion.
>
> Did you try to open the file with another application?
>
> You mention the file being open in TextMate while updating it on the linux
> server. What if you close the file before updating it (TextMate keeps the
> file open for “events only” to be notified about changes, perhaps this
> plays a role in the network file system’s behaviour)?
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
--
--
Juan Jesús Baquedano Bruna
Centro Tecnológico qInnova
UNED Tudela
Tlf: 948 821535 (ext 8)
www.unedtudela.es
Hello,
When I invoke the "Documentation for Package" command of the Latex
Bundle, I get the Packages Browser and My Packages, but clicking on the
links in the packages browser does not open the linked pdf documents.
The path to the help documents seems to be ok: Inspecting the elements
(eg the mhchem package yields the correct path to the document
(/usr/local/texlive/2013/texmf-dist/doc/latex/mhchem/mhchem.pdf).
Could the path to the Document viewer (DocView.sh) be broken ?
Greetings, Christof
Occasionally I will get TM2 into a state where "find in folder” and "CMD+T"
will be missing files in their search scope.
Unfortunately, I don’t yet have a series of reproducible steps that cause
this condition. However, for CMD+T at least, I’ve found that repeatedly
hitting CMD+T will “recover” the ability to locate all files in the folder
that’s open.
Some other points of interest… From reading the docs it seems like this
could be related to
http://manual.textmate.org/projects.html#effective-folder and it’s
interaction with the fact that I have “single click to open file” enabled.
Have any other users experienced this? What sort of debugging information
would be useful?
Thanks
Am I the only one who can't get .tm_properties files to *do* anything?
For example, as a test I created this:
[ *.asciidoc ]
spellChecking = false
tabSize = 4
fontName = "Georgia"
fontSize = 18
softTabs = true
I figured if I open an asciidoc file I should be able to tell if it's suddenly Georgia 18. I don't actually *want* that setting, I just want to see that .tm_properties is functioning! But it isn't. I've put this file in my home folder, in the project containing folder, all over the place. But nothing is changing. m.
--
matt neuburg, phd = matt(a)tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
OS Version ist OS X Version 10.9. (maveriks). The file was php
Hi,
I have tried to reproduce using simple actions, like modifying the file
using vi, but the problem does not happen. I occurs only when using
subversion.
To reproduce I perform this steps:
· I edit a file with textmate. This file is in a linux machine and I use
samba to access it from TextMate.
· I update the file using subversion (svn up <file name>. Subversion merge
this file with changes of my coworkers.
· I close TextMate and I reopen it. We do this because with former versions
of textmate we had problems, we lost changes of other coworkers when we
undo our changes in texmate.
· I see the file in TexMate. The file is incomplete. The last lines are
lost. If my coworkers deleted lines, then I have extra binary 0 characters
at the end of the file instead.
subversion version 1.6.17
TextMate version 2.0-alpha.9497 (downloaded few days ago)
OS Version ist OS X Version 10.9. (maveriks). The file was php
Regards,
2013/12/13 Allan Odgaard <mailinglist(a)textmate.org>
>
>> On 13 Dec 2013, at 18:15, Jesús Baquedano wrote:
>>
>> > if I open a file with text mate 2, I modify the file from outside and I
>> > reopen the file with text mate, text mate does not load the entire file.
>>
>> That shouldn’t happen. Can you provide more detailed steps to reproduce?
>>
>> See e.g. https://github.com/textmate/textmate/wiki/Writing-Bug-Reports
>>
>> _______________________________________________
>> textmate mailing list
>> textmate(a)lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
>
>
>
> --
> --
> Juan Jesús Baquedano Bruna
>
> Centro Tecnológico qInnova
>
> UNED Tudela
>
> Tlf: 948 821535 (ext 8)
> www.unedtudela.es
>
--
--
Juan Jesús Baquedano Bruna
Centro Tecnológico qInnova
UNED Tudela
Tlf: 948 821535 (ext 8)
www.unedtudela.es
On 12.12.2013, at 00:46, Allan Odgaard wrote:
> This is because TM2 is more flexible in how words are defined so it
> needs to lookup scope settings for each character when collecting the
> list of words.
Autocompletion (e. g. of labels or of references) has become so slow for me that I now insert labels and references by hand again. And autocompletion was one of the killer TextMate features for me. That's not a good sign, and I hope that optimizing the new autocompletion implementation will get priority.
Because if people tend to rely on the feature less, it doesn't matter that in principle, the reimplementation of autocompletion is more powerful than the TextMate 1 incarnation. I'd rather have a less powerful, but faster and more reliably feature than one that is aggravatingly slow.
Max
I’m trying to save a latex template. I a .tex file, I pressed temp+TAB which
gave the following message:
"You need to create the directory /Users/rossahmed/Library/Application
Support/LaTeX/Temp|ate/ first and
populate it with your favorite LaTeX template files before using this
command”.
I followed the instructions in the message, but if I press temp+TAB again, I
just get the same message.
How can I get templates to load?
Thanks
Ross
When editing a C file, when I type `{` Textmate will add a matching `}`. If
I then press RETURN I get two new lines where the `}` is on the second and
the cursor is correctly indented on the line in between.
I have been working on a Scala bundle, and when I do the same in Scala, I
only get one inserted line with the cursor sitting just before the `}`.
Is there some setting that I am missing to get this behavior?
I have two examples where TM2 is slower compared to TM1.
1.
I think this has been mentioned before but TM2 takes significant longer
time to syntax highlight large files compared to TM1. An example is this
file from the D standard library:
https://raw.github.com/D-Programming-Language/phobos/master/std/datetime.d
It might be a bit extreme, it's around 34 000 lines of code. If I open
that file and then jump to the end of the file. It takes TM1 around 5
seconds until the code has syntax highlighting. In TM2 it takes around
15 seconds.
2.
TM2 is also slower on auto completion for some files. Here is one example:
https://github.com/d-widget-toolkit/dwt-mac/blob/master/dwt/widgets/Display…
If I put the cursor at line 2111 at, type "o" and press escape to do
auto completion. In TM1 I immediately get a result. In TM2 I get a
result after around 3 seconds.
Is there anything that can be done to increase the performance in these
two areas?
--
/Jacob Carlborg
Just getting my feet wet with TextMate 2 and already I've got a
question. What's the purpose of the checkboxes next to the names of
bundles if they don't actually disable the bundle?
For example, I still see Apache and AppleScript in the Bundles and Gear
menus even though I have unchecked Apache and AppleScript in the
preferences.
Similarly, I've tried unchecking in the Bundle editor and that doesn't
help either.
Is there a correct way to eliminate unused bundles? Thx - m.
--
matt neuburg, phd = matt(a)tidbits.com, http://www.apeth.net/matt/
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
I am running a rakefile directly from Ruby, in order to run some tests.
The tests work fine when run individually from inside TextMate 2, but
some of them break when run thru the rakefile directly from Ruby. The
reason is that those tests use the TM_SUPPORT_PATH environment variable.
That variable doesn't exist when we are running the rakefile directly
from Ruby.
Is there a way my rakefile script can ask TextMate for the value of its
TM_SUPPORT_PATH even though it is not running inside TextMate? I can
solve the problem by just hard-coding the answer into my rakefile, but
that is not a portable solution.
(Indeed, the issue arose in the first place because I *was* hard-coding
the answer into my rakefile, using TextMate 1; but in TextMate 2, the
value of TM_SUPPORT_PATH has changed. That's why I'd like a way to ask
TextMate directly "what's your TM_SUPPORT_PATH?")
Thx - m.
--
matt neuburg, phd = matt(a)tidbits.com, http://www.apeth.net/matt/
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
Using TM2 release 9497
When I attempt to save a file (demo.php) TM2 reports that it is Unable
to save file. Check console for details.
When I look in Console, I didn't find an entry from this date from
Textmate. Where, specifically, should I look for what is happening? The
file itself can be replaced, but it would be nice to understand what's
happening. Can anyone explain?
--Lewy
Dave Baldwin wrote (a long time ago, Mon Aug 19 08:17:37 UTC 2013 to be exact):
> Has anyone had any experience with the asciidoc bundle
> https://github.com/zuckschwerdt/asciidoc.tmbundle with Textmate 2 or has a
> better one they are prepared to share?
>
> This bundle has had little work done on it in the last 3 years so was
> written with Textmate 1 in mind. Also since then a nicer toolchain for
> processing asciidoc files called asciidoctor has been written and is being
> actively developed.
I've been writing more or less continuously using the asciidoc TextMate bundle since May 2010, so that's 3-and-a-half years, during which I've produced and edited thousands of pages:
http://oreilly.com/catalog/9781449397296http://shop.oreilly.com/product/0636920023562.dohttp://shop.oreilly.com/product/0636920029717.dohttp://shop.oreilly.com/product/0636920032465.dohttp://shop.oreilly.com/product/0636920031017.do
Here's one of those books in HTML form:
http://www.apeth.com/iOSBook/
Behind the scenes, all of that is TextMate and the AsciiDoc bundle, as I explain here:
http://www.apeth.net/matt/iosbooktoolchain.html
I also gave a talk on this workflow at OSCON 2012 in Portland, OR.
One of the nice things about TextMate is that you can modify a bundle easily. I've changed some regexes and added some snippets and keyboard shortcuts to the original AsciiDoc bundle, and I've added a couple of commands (I like to render into my browser, plus it makes a difference whether we're rendering a chapter or a book as a whole). But in general I would have to say that I have been far, far, *far* more nimble and productive with these tools than I would have been in any other way. Indeed, this experience has made me a firm believer in pure text and light markup; I never want to go back to a WYSIWYG editor, not even Frame.
I do not understand the part of your question that draws a distinction between TextMate 1 and TextMate 2. The bundle was written for TextMate 1, obviously, but TextMate 2 doesn't break it or anything. I don't see how the bundle would be made to differ significantly for TextMate 2, or what difference TextMate 2 would have to its features. Yes, this bundle is crusty and not terribly well written, but the point is to use TextMate as a nimble writing tool for producing DocBook output, and this bundle lets me do that just fine, as my experience proves beyond the slightest doubt.
Feel free to contact me directly via email if you want to talk about my modifications to the bundle, but I assure you they are very minor. I am not a sophisticated bundle writer, and I have no time to play with the bundle if I don't have to; I'm too busy using it to get real work done. m.
--
matt neuburg, phd = matt(a)tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
If I highlight ³test test one² , then go to Bundles > Text > Sorting > Sort
Selection & Remove Duplicates, all that happens is entire lines becomes
highlighted and a new line inserted beneath. Is this an error?
Thanks
Ross
For my work I often diff dumps of databases, and sometimes those files have
super long lines without newline character; for example, an insert
statement for millions of record all on a single line. When I open such a
file, TextMate generally freezes. It would be nice if TM can handle working
with such file efficiently, or at least warn me before trying to open such
a file.
hi,
i wonder if it's possible to "exclude" scopes using the "scope
selector" setting for a snippet. for example:
the PHP bundle defines a tab-trigger for "array" that expands to $...
= array ... thats fine as long as i am really in the scope
"source.php". but when i am writing documentation (phpdoc -- which is
in fact "source.php", too) it's really annoying when the 'array'
keyword and such get's expanded.
i wonder what's the best solution to solve this ... would i have to
define a scope "phpdoc" and overwrite the tab-triggers in there or is
there any other solution?
thanks in advance,
harald
In a .R file, I have a bunch of headers like this:
# this is a header
-----------------------------------------------------------
How can I get these headers to show in symbol list and fold? I¹ve tried
changing the foldingStartMarker/foldingStopMarker line without success, and
I cannot find the showInSymbolList line in the R language grammar.
Thanks
Ross
Hi all
I recently posted asking how to align code at <- . For example, I would want these two lines of code
foo <- test
fooFooFoo <- test
To look like
foo <- test
fooFooFoo <- test
Somebody suggestted installing the align bundle and using the keyboard shortcut CMD + CONTROL + 9. I've trice this but unfortunately it doesn't run and throws a message box saying 'Failure running Align Source'.
Can anyone come up with a hacky way of aligning code at <- ?
Ross
suppose i want to report a variable state in NodeJS and/or JavaScript, for
example:
console.log("myvar['"+property+"'] = "+myvar[property]);
because I'm a lazy guy, i want only to enter "myvar[property]", apart from
console.log.
at start, i would enter :
console.log(myvar[property]);
then copy/paste "myvar[property]" :
console.log(myvar[property]myvar[property]);
adding " = +":
console.log(myvar[property] = myvar[property]);
then surrounding "myvar[property] = " by '"':
console.log("myvar[property] = "+myvar[property]);
i want to see the property value in the "left" hand side, then i sourround
"property" by '"':
console.log("myvar["property"] = "+myvar[property]);
here is my suggestion, could it be possible by selecting "property" to add
two "+" signs on each side of "property" in order to make it :
console.log("myvar["+property+"] = "+myvar[property]);
could that last step be implemanted in TextMate ?
--
Yvon(a)48.871651804,2.384858688
Just found this exciting tip in the November archive:
> or install the bundle from
> https://github.com/tbates/align.tmbundle
Works great at least with Perl-code - thanks!!
Hi all,
When trying to search a folder of .nib-files, I ran into a few problems.
The files are nicely displayed in TextMate, but I cannot search the
contents of the files. Whilst trying to work around it, I ran into two
problems:
1. *Find > In > Open Files not available*
I opened the lot to use Find > In > Open Files, but this option is
unavailable. Screenshot below. I tried opening .txt-files, and I
tried creating new files, but it remains unavailable.
Is this function available to anybody?
2. *Add file-type to TextMate*
To facilitate the opening of said files in Finder's context menu
(open with), and to encourage TextMate to search their contents, I
tried to associate them with TextMate. I failed.
First I tried to add them via TextMate.app\Contents\Info.plist. This
invalidated TextMate's code signing, and thus broke its connection
with /Keychain Access/. Nor did it have the desired effect.
Thus I reverted my actions, and tried to associate the file type via
the bundle editor. I added "nib" to the Property List bundle, old
style language grammar file types, reset the launch services
database regarding TextMate and killed Finder.
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister
-f /Applications/TextMate.app/;killall Finder;
No luck. TextMate still does not appear in "open with", and TextMate
still refuses to search their contents.
Does anyone have a tip on how to achieve this?
By the way, to search the .nib-files, I renamed them to .txt, and chose
Find in Folder. That worked. But it's a long way round.
Thanks,
Rasmus Malver
TextMate Find in Open Files not available
Recently, I've added the Dart.tmbundle to TextMate 2.
It works OK however I'd like adding a "Dart_file.icns" in order to get the
right icon.
I've added some lines in the Info.plist of TextMate 2, the Icon file into
the Resources directory but nothing change.
Then, what is the correct way to add a file icon into TextMate 2 ?
Also, using applescript, i've found the identifier for *.dart files, it is
part of archive file one terminating by -dart, strange...
Before any trick the file icon was of a dmg one...
--
Yvon(a)48.871651804,2.384858688
Hi,
I am experimenting with embedding properties in Objective-C implementations that will be parsed out and placed into a header file, and that also include documentation. They are supposed to look like this:
/*@property BOOL testProperty;
Sample Property
# Discussion
This is documentation in Markdown syntax
*/
My custom Objective-C language definition includes this pattern:
{ name = 'meta.property.objc.embedded';
begin = '^(/\*)(?=\@property)';
end = '\*/';
beginCaptures = { 0 = { name = 'meta.comment.embedded-property.start'; }; };
endCaptures = { 0 = { name = 'meta.comment.embedded-property.end'; }; };
contentName = 'meta.scope.property.objc.embedded';
patterns = (
{ name = 'meta.scope.property.def.objc.embedded';
begin = '(?=\@property)';
end = ';\s*\n?';
patterns = ( { include = 'source.objc#interface_innards'; } );
},
{ name = 'meta.scope.property.doc.objc.embedded';
begin = '^';
end = '$\n';
// patterns = ( { include = 'text.html.markdown'; } );
},
);
},
That works fine, the /* and */ have the proper start/end scope, the documentation part has the doc scope etc. But as soon as I enabled the uncommented line that is supposed to highlight the embedded documentation with markdown, markdown gobbles up the end markers.
Shouldn't the outer pattern prevent this? And if not, how can I make this work?
Thanks
Gerd
There’s pretty annoying bug in TM2 regarding remembering default window frame.
(1) Launch TM2
(2) Open new document & maximize window via (+)
(3) Quit TM2
(4) Open it again
(5) Open new document, it should be zoomed/maximized
(6) Restore it via (+)
Poof… where did it go? It is here in lower left corner of the screen with 0 content height :~(
Can we have make TM2 remember regular window frame (not zoomed) and if window was zoomed?
Cheers,
--
Adam
On 27.11.2013, at 06:11 , Owen Densmore wrote:
> My home folder has many folders, many of which I'd like to have be in
> multi-folder projects. So ~/bin and ~/notes are a pair, while a second
> pair are ~/bank (receipts) and ~/config (a collection of configuration
> files used elsewhere)
>
> If I understand correctly, I'd have to have a .tm_properties file for each
> pair, not possible given the file hierarchy style of projects
You'd want to have a .tm_properties file in you user directory which sets the defaults. Then in many cases, you don't need to create a per-»project« .tm_properties file.
The .tm_properties files in nested directories apply in addition to defaults. For instance, you probably want to use different include/exclude rules in the directory where you're writing code for a numerical simulation than in the directory where you write the article in LaTeX with the associated findings.
Allen made a conscious design decision to abandon project files and base the idea of projects just on filesystem hierarchy. In some ways, that makes TextMate 2 more powerful than TextMate 1.x, but other things (especially working with scattered files) has become more complicated because a folder is a »single project«.
Personally, I haven't found a good way to recreate my TextMate 1.x workflow in TextMate 2 (symlinks don't mesh well with my LaTeX code and my git repositories). You probably have to adapt the way you organize your work.
I have created a sensible master .tm_properties file and since I essentially only work with TeX-related files, shell scripts and markdown files, I don't really need to change them. Instead of symlinking, I just copy files and keep them in sync by hand if need be.
Max
Thanks for the help!
> On Mon, Nov 25, 2013 at 2:52 AM, backspaces wrote:
> > First, each folder would need their own .tm_properties files. This
> means if
> > the same folder is in multiple projects, you have no exclude/include
> files
> > capabilities for the multiple projects. Each project would have to have
> the
> > same contents, according to their folders' .tm_properties file.
> The folder being included in multiple projects does not require its
> own .tm_properties file.
> Each project folder can have its own .tm_properties file with its
> own configuration, but note that, as Allan said, symbolic links to
> folders are currently not expanded.
>
Is "project folder" different from any other, other than the .tm_properties
and the fact that it is a folder rather than a file?
Not sure if this makes sense in your context but maybe you can try
> changing your workflow and treating your shared folder as a project on
> its own (having its own window open along other projects, etc). I
> have a couple projects that depend on other projects and I work this
> way in order to have Go To File and searching capabilities in the
> subprojects.
OK, sounds reasonable.
> > Second, lets presume my project starts in my home directory. Then I can
> > have only one project there, specified by the .tm_properties file, which
> > would have to include my multiple folders. Thus my home directory can be
> a
> > project folder for only a single project. (Yikes!)
> Just curious: why would you want your home folder to be a project
> folder? One usually wants the home folder to have one or more project
> folders inside. I have a folder for each project and all of them are
> in a Developer folder in my home folder.
My home folder has many folders, many of which I'd like to have be in
multi-folder projects. So ~/bin and ~/notes are a pair, while a second
pair are ~/bank (receipts) and ~/config (a collection of configuration
files used elsewhere)
If I understand correctly, I'd have to have a .tm_properties file for each
pair, not possible given the file hierarchy style of projects
> Third, a work around would be to simply have a separate folder per
> project,
> > containing symbolic links (ln -s) to the folders I want in my project.
> This is not a workaround, this is the expected way to handle projects.
A-ha! OK, so I can make a TM folder that contains a folder for each of my
TM projects, each of which in turn have symlinks to my actual folders?
That fixes everything.
> Sorry: one last question: I'd like my projects to be double-clickable to
> open
> > them. Can I do that?
Interesting, I'll look into that. Thanks!
> I know this can be done by using the Favorites feature. From Mate's
> drawer, you can navigate then right click a folder and add it to
> favorites, and all your favorites are available from the heart icon in
> the bottom right, or from File, Open Favorites... .
> Hope that helps,
> --
> :: dip
> --
Thanks for the help, I appreciate the time & effort.
-- Owen