Allan Odgaard wrote:
> I forgot that in Preferences ? Projects there is a setting for ?include files matching?? which is _added_ to whatever include patterns you set.
This is not what one would expect! Should I write a ticket?
>
> In retrospect that sort of undermines the concept a little.
>
> You can do two things, either:
>
> 1. Set includePattern instead of includeFilesInBrowser ? that?ll then override the global pattern.
> 2. Set excludeFilesInBrowser and set it to !*.{bib,tex} ? that?ll match all non-bib/tex files and mark them for being excluded (hidden) before the latter include pattern marks them for inclusion.
That works great. Thanks!
Christian
Allan Odgaard wrote:
> On Feb 18, 2013, at 3:38 PM, Christian Jacobs <JCD.Jacobs(a)t-online.de> wrote:
>
>> [?] to see only *.bib and *.tex files.
>> It used to work. Now all files are ignored. includeFilesInBrowser seems to be ignored.
>
> Simply remove your ?excludeFilesInBrowser? setting (which exclude everything).
>
> Generally if files are not explicitly included, they are not shown. If they are included but _also_ excluded, they are not shown.
Then my ?includeFilesInBrowser? seems to be ignored. (includeFilesInBrowser = "{thesis.bib,*.tex}")
I see all files in the directory. Not the dot files except my .™_properties.
Christian
Allan Odgaard wrote:
> On Feb 18, 2013, at 3:31 PM, Christian Jacobs <JCD.Jacobs(a)t-online.de> wrote:
>
>> I am using TextMate version 2.0.0-alpha.9377 and the "spellingLanguage" settings in my .tm_properties files are ignored.
>
> Try delete ~/Library/Application Support/TextMate/Global.tmProperties
>
> Or alternatively remove every line from that file which sets the spelling language.
>
> The issue is likely that settings (from .tm_properties) with a scope (e.g. ?[ text.plain ]?) have higher priority than non-scoped settings _even when in a more local file_ ? previous versions of TM would record your spelling language choice based on scope, so you?d get ?bad? setting recorded in this global properties file.
Thank you. This worked well.
Christian
What are the best practices for managing bundles and preferences when running
TextMate 1.5 and 2 together?
Where should bundles used by both version go?
Bundles specific to one or the other?
Preferences?
Other watch-outs?
Bob
--
View this message in context: http://textmate.1073791.n5.nabble.com/Best-Practices-Running-TextMate-v1-5-…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I am using TextMate version 2.0.0-alpha.9377. I used to write:
excludeFilesInBrowser = "*"
includeFilesInBrowser = "{*.bib,*.tex}"
in my .tm_properties files for latex projects to see only *.bib and *.tex files.
It used to work. Now all files are ignored. includeFilesInBrowser seems to be ignored.
What has changed?
Christian
Hi,
I am using TextMate version 2.0.0-alpha.9377 and the "spellingLanguage" settings in my .tm_properties files are ignored.
My system language is german. Although I wrote "spellingLanguage = 'en'" in the .tm_properties file, the files in the same folder are checked in german. This worked in the past. Other settings still work.
Christian
Dear all,
I have suddenly experienced wholesale failure of commands in recent builds
of TextMate 2. I initially thought it was a bug in a nightly build, so I
switched to normal releases and downgraded, but the latest normal release
is also showing the problem. I believe I first saw it with r9367, but I
can't be sure.
As far as I can tell, no menu actions (at least) are working. For example,
in a LaTeX document, both pressing ⌘R or selecting "Typeset and View" from
the menu does nothing. It's not just the LaTeX bundle either: selecting
"View Scope" from the Bundle Development bundle also does nothing. My
snippets seem OK though.
I don't really know where to start with figuring this out, so some help
would be appreciated!
All the best,
Jon
With r9377 (or was it r9375?), I lost incremental search on OS 10.7.
It works on 10.8. But when I press crl+S in a textmate file running on
10.7.5, it freezes that document. This remains true on r9381.
Anyone else experiencing this behavior?
-Kyle
I have both git and subversion configured to use TextMate for editing
commit messages. (mate -w -l 1).
In build 9379
, after I run git commit or svn commit, edit a message, and close the
file, the command line is still waiting. I must quit the Textmate
application in order for the command line operation to continue.
I'm writing some Java code, and whenever I try and run it, I get the error
attached. This persists despite refreshing the Textmate bundles and doing
full un/reinstalls. This is a new development - it had previously run code
just fine, so I'm not certain what has changed.
Mountain Lion, MBP 15" Retina
The dark on dark is to... well... dark for my tired little eyes. I keep
putting Textmate out of focus so I can read them without squinting and
leaning in towards the screen.
Is there somewhere I can adjust them to something lighter? Maybe even just
switch the colours for focus and not in focus?
--
View this message in context: http://textmate.1073791.n5.nabble.com/Adjust-tab-bar-tab-colours-tp26233.ht…
Sent from the textmate users mailing list archive at Nabble.com.
I get the following dialog when I try to run git commands from the editor
and yet git is installed in /usr/bin. Any idea on how to solve this?
[image: Inline images 1]
Hi Allan,
I spoke too soon. In the process of trying to install my personal bundle I somehow managed to corrupt it in both TM 1 and TM 2. Oddly, the desired macro now works as it should, but many other commands, snippets, and macros have disappeared. I tried copying over a clean copy from a backup but the problem persists. I must be doing something very wrong.
Any help will be gratefully appreciated.
Jenny
>>
>> [?] Here it is:
>>
>> \\( $0$TM_SELECTED_TEXT \\)
>>
>> Scope Selector: text.tex.latex
>>
>> Key equivalent: $
>>
>> In TM 1, the $ key outputs \( $0$TM_SELECTED_TEXT \). The curser is inside the math formula brackets \( \). It stays inside, regardless of what I write, until I type $ again. Then the cursor moves outside. That is just what I want it to do.
>
> The ?step two? of having ?$? inside the math brackets jump outside is likely done by a macro bound to ?$? and scoped to ?string.other.math.latex? because the snippet alone would not be able to do two different things depending on context.
>
> You can however change it to something like:
>
> \\( ${1:$TM_SELECTED_TEXT} \\)
>
> This will allow you to use tab to ?jump out?. Additionally it will keep the selected text selected (don?t know if you would consider that a feature or not).
>
> You can also improve the scope selector to: text.tex.latex - string.other.math
>
> That way its key equivalent will not fire when already inside a math string (you can also try this scope selector change alone, at least then you won?t get the snippet inserted again).
>
>> If I erase the snippet, then in both TM 1 and TM 2, the same thing happens. Inputting $ the first time yields $ $0$TM_SELECTED_TEXT $. The second time, the cursor moves outside. This would be fine, except that many of us have moved away from using $ signs to set off equations in Latex.
>
> It does sound like you have a custom ?jump out? function bound to ?$?. You can use Bundles ? Select Bundle Item? then switch to ?All Scopes? and ?Key Equivalent?. Now press ?$? to see a list of everything bound to that key. Although it?s really 1.x where you want to perform this search (which doesn?t have the ?All Scopes? option, but you can open up the window while the caret is inside math brackets, and it should search that scope).
Thanks for the helpful tips. This information helped me sort out the problem. When I exported my personal bundle to TM 2 last year, some of the macros must not have carried over. I tried to reinstall and ran into the "delta version" problem. I found instructions from you about how to fix this and now everything works as it should.
I am now officially moving over to TM 2!
Jenny
Hi,
I am using TextMate version 2.0.0 alpha 9359 and Python on OS X 10.8.2 with python bundle installed and updated 4 weeks ago. I can successfully run the script with Cmd-R (TM_PYTHON correctly set up). However, I would love to use Python interactively, sending lines independently to a known (and possibly started via Textmate) session of python on Terminal. What I am doing at the time is copying-and-pasting the commands from TextMate and python (picture). I have tried the build in command ctrl-sft-E (see picture), but it does not work.
I am not familiar with the scripts in TextMate and I am sure that somebody has working scripts to start a session of python on Terminal and be able to interactively send commands from the editor to it? Many thanks in advance for any help.
Best regards,
Ivan
Greetings,
it seem that my TM_PYTHON variable is being ignored.
I have it set to
/Library/Frameworks/Python.framework/Versions/Current/bin/python
which executes like so:
============
()[maye@alpha1 ~]$
/Library/Frameworks/Python.framework/Versions/Current/bin/python
Enthought Python Distribution -- www.enthought.com
Version: 7.3-2 (32-bit)
Python 2.7.3 |EPD 7.3-2 (32-bit)| (default, Apr 12 2012, 11:28:34)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "credits", "demo" or "enthought" for more information.
>>>
============
and then I wrote this little test script:
======
#!/usr/bin/env python
import sys
print sys.version
======
which, when executed via Cmd-R, returns:
====
2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]
====
I also cross-checked what happens when I use env in the Terminal:
=====
()[maye@alpha1 ~]$ env python -c "import sys;print sys.version"
2.7.3 |EPD 7.3-2 (32-bit)| (default, Apr 12 2012, 11:28:34)
[GCC 4.0.1 (Apple Inc. build 5493)]
()[maye@alpha1 ~]$
====
So, it works in the Terminal fine, what do I have to do so that
Textmate's Cmd-R picks up the right interpreter, WITHOUT changing the
shebang (because the env-shebang is so common for online sources, it
would be a major pain to always have to remove or change it) ?
Best regards,
Michael
PS.: Running TM2 9373 on Mac OSX 10.8.2
Hi Allan,
It is truly wonderful to see so much activity again! I see so many improvements and am optimistic TM 2 will soon set the stage once again.
Here is my problem: I have continued to use TM 1, primarily the Latex bundle, because of one old snippet which does not work as it should in TM 2. I use it many times a day and would not like to give it up.
Here it is:
\\( $0$TM_SELECTED_TEXT \\)
Scope Selector: text.tex.latex
Key equivalent: $
In TM 1, the $ key outputs \( $0$TM_SELECTED_TEXT \). The curser is inside the math formula brackets \( \). It stays inside, regardless of what I write, until I type $ again. Then the cursor moves outside. That is just what I want it to do.
In TM 2, the $ key outputs \( $0$TM_SELECTED_TEXT \). The curser is inside the math formula brackets \( \). It stays inside, regardless of what I write, until I type $ again. Then I see \( \($0$TM_SELECTED_TEXT \) \) and the cursor is still inside. Not good!
If I erase the snippet, then in both TM 1 and TM 2, the same thing happens. Inputting $ the first time yields $ $0$TM_SELECTED_TEXT $. The second time, the cursor moves outside. This would be fine, except that many of us have moved away from using $ signs to set off equations in Latex.
Best regards,
Jenny
This topic resurges periodically. Allan (the main developer of TextMate) has stated the projects feature has not been implemented in TextMate 2 on purpose in favor of a completely filesystem-based approach. From his comments, it is clear that putting projects back into TextMate 2 is, if it is on his todo list at all, on the very bottom. After all, TextMate 2 is still an alpha, and there are other things that need to be fixed first. So I wouldn't hold my breath and wait for projects to return any time soon. Perhaps they'll be back in TextMate 3, who knows ;-)
Even though TextMate 2 is open source now, no one has volunteered (yet?) to add projects support. Right now, your best chance is to adapt your workflow or to continue using TextMate 1.5.
If you search this mailing list, you'll notice that I'm in the same boat as you, to me projects was what made TextMate 1 so appealing to me. There are a few things I've done to adapt:
(1) I've given up on symlinks, I open several editor windows instead.
The reason is that while symlinks work for single files, they don't work well for folders: if you create a symlink to another folder, you will not have a small triangle next to it which you can use to expand it. Double-clicking it works fine, but navigation is more cumbersome and there is a difference in how to work with symlinked and non-symlinked folders. Allen has explained why it is not easy to make this work properly (you have to account for all sorts of eventualities), and I don't think fixing this is very high on his list of priorities. If it is fixed at some point, perhaps I'll revisit it.
What I've done instead, I keep open the linked folder in a separate editor window. Definitely less elegant, but it works.
(2) Use good .tm_properties presets
The .tm_properties file allows you to set presets for a specific folder. There is one »master« .tm_properties file and it is worth spending a little time to customize it. However, I rarely edit the .tm_properties file of a specific folder (e. g. to hide certain auxiliary files). I often resort to the Terminal to open files instead of using the file browser.
.tm_properties is definitely more powerful than project presets in some respects, and perhaps if bundles make use if it (by editing the file or something), it could replace some of the functionality of projects.
(3) Use »mate .« to open folders.
Instead of »open project.tmproj«, I now type »mate .« to open a folder after navigating to it. I use git from the Terminal anyway, so I have become accustomed to opening folders like that. I keep several Terminal tabs open, one for each location in the filesystem I need (e. g. auxiliary files or documentation).
If you have more specific needs, just let us know. Perhaps there is a work-around.
Hope that helps.
Max
On 07.02.2013, at 21:00, textmate-request(a)lists.macromates.com wrote:
>> (1) I've given up on symlinks, I open several editor windows instead.
>
> Have you considered using symlinks the other way round? I.e having a folder containing all the files you want in your "project" which would be opened in Textmate, and then setup symlinks to point back to it from other locations on the disk.
>
> In theory this would provide many benefits (i.e. grouping all the files in one place, allowing for one version control repo for them all, one .tm_properties file, etc...).
In my case I want to point to files which I want to re-use and those files are kept in a separate git repository. And in some cases, it's just to keep »read-only« files handy (e. g. papers, documentation, old files which I use to take snippets from).
Unfortunately, the new features of TextMate 2 haven't really made an impact in my daily routines. Perhaps I'm just being ignorant, after all I didn't get the real power of TextMate 1 either until I watched the screen casts.
So how have you adjusted your workflow?
Max
I'm new to the TextMate community, starting in with TextMate 2 when it was
released as a public alpha. I don't own TextMate 1.5.
What are the key features, from the users viewpoint, added to TextMate in
version 2 (besides opening the source)?
Bob
--
View this message in context: http://textmate.1073791.n5.nabble.com/TextMate-2-features-not-in-TextMate-1…
Sent from the textmate users mailing list archive at Nabble.com.
So I'm a bit late to the TextMate wonderfulness.. I've been using the
30-day trial version for the last week, and got it pretty customized to
my liking. Project+, MissingDrawer, SVNMate, bundles, a few custom
Templates for my C++ projects, etc. Loving it.
Today I went out and got the latest TextMate2 compile from about 2 days
ago, I believe, and wow. That's a huge step backward IMO. No
"Projects" that I can see, just look at a Directory (which doesn't work
for me, my Directory Structure != Project structure). No support for
Templates either, it seems, which I just recently figured out and
_really_ love (great to just pull in a template of my base C++ class and
"fillin the blanks"). Plus lots of things I customized don't see to be
there anymore, or are buried in the new "tm_properties" file.
Basically, I'm trying to figure out what to do next. I was getting
ready to buy TextMate1, but if this is what TextMate2 is going to look
like maybe I should evaluate some other tools. Is TM1 still "alive"?
Or are users urged to start using TM2? Am I just really missing
something in TextMate2? I'm a C/C++ developer that also uses Arduino,
CMake, Python, and other stuff, so things like CTags, project-specific
environment variables, and true "Projects" are important to me.
--
Randall Hand
http://www.yeraze.com