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