In TextMate 2 I'd like to exclude the contents of a number of folders from my project-wide searches. I'm using the following in my project's ".tm_properties" file:
excludeDirectories = "{$excludeDirectories,log,vendor,tmp}"
However, it doesn't seem to be excluding files from those directories in my project-wide searches. What am I missing?
-Tyson
In the Find results window, after e.g. a Find in Project search, I really miss (in TM 1.5 too) not having a panel within the same results window that shows the relevant section of code when any results line is selected.
In normal use, I have one or more other windows open, and for a reason--I'm looking at them or soon will be. I find it a nuisance that clicking on a Find results hijacks the project window just to show me the relevant code. Frequently, I need to have both that window and the search result visible at once. I can see that this could be a personal preference, so it would be wonderful to have this as a user pref.
Also, I don't find it useful to display a results line twice when the search process has found two matches in the same line. It is adequate (even less confusing, less clutter) to display the results line once, but bold-facing the multiple matches in that single line.
Jerry
I've not looked at TM2 yet, however there is a ton of Q & As hitting the list currently and I suspect lots of wheels are going to be re-invented, tips re-discovered etc...
Any chance of starting a wiki or similar for TM2 so that this stuff can be recorded there and found without needing to sift through the archives of a suddenly very high volume list...
[One way to start one up quickly is to make a blank github project and add a wiki to that...]
Nigel.
--
[ Nigel Metheringham ------------------------------ nigel(a)dotdot.it ]
[ Ellipsis Intangible Technologies ]
I have a question re Citation (Ref-TeX Style) completion or BibDesk. The completion doesn't occur in TM2, while it continues to work fine in TM1, without having to open BibDesk, via the BibDeskTMCompletions script which I put in a ~/bin folder.
Any suggestion as to why it doesn't work in TM 2 alpha? Is it because tooltips might not be working yet, or do I need to point the LaTeX bundle towards my bib files (and how?)? Any hint greatly appreciated by this non-coder.
N.B. Two "likes". I very much appreciate TM2's highly configurable browser window from which I can start TeXShop on whatever file I want to work on, with latexmk giving me automated processing. And the input of Greek, Hebrew, etc. is working beautifully. No need for other editors for that purpose now.
--Gildas
>
> Not in the Bundles directory, but I do sync my TexMate directory with
> Dropbox. ~/Library/Application Support/TextMate is a symlink to
> ~/Dropbox/Library/Application Support/TextMate
Well, that explains why Avain never picked up any of my TM bundles
(although I didn't symlink TextMate, only the subdirs, to avoid syncing the
.pid file). I actually prefer it though since I've collected quite a few
useless and outdated bundles over the years and this gives me a fresh start.
This might be something to mention somewhere since it's probably a pretty
common practice and not something I had considered might be causing an
issue.
Brandon
Hi,
In followup to this posting:
TextMate Blog » Locating Bundles
http://blog.macromates.com/2011/locating-bundles/
Please consider changing (or removing) the "Copy" part in the folder name component of this pathname so it's not confused with Finder's Duplicate suffix:
~/Library/Application Support/Avian/Pristine Copy/Bundles/
Something like "Pristine Versions" or "Pristine Copies" or simply "Pristine" (my choice) would be preferable.
Thanks,
-sjk
I have been testing the TextMate 2 Alpha the past couple of days and have had
issues with bundles being loaded. I can install the bundles via the app
preferences, but the bundles are not loaded. As per Michael's recent blog
post (http://blog.macromates.com/2011/locating-bundles/), all bundles should
be installed to ~/Library/Application Support/Avian/Bundles. Instead, they
are installed to ~/Library/Application Support/TextMate/Managed/Bundles and
are not loaded. Moving bundles to the ~/Library/Application
Support/Avian/Bundles alleviates the problem with the bundles being loaded,
but I don't believe updates will work correctly at this point. Is this
intended behavior for alpha or is there something else going on? I am
running 10.7.2.
--
View this message in context: http://old.nabble.com/TM2%3A-Bundles-Not-Loading-tp32982201p32982201.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
it is great that finally Japanese is shown correctly in TextMate but the input has some problems and differs from the rest of the system.
When I enter only one character like 私 (watashi), I type "watashi", hit space, select the character and hit enter. The final result is 私 and the cursor is set after the character.
In TM2 the enter will delete the character, as if it is selected and do a line break.
When I enter a whole sentence, I press space when I am ready and the system will do some auto-conversion. Then I will get to to the first sentence-element and can press space to change the conversion to something different (loads of homonymes in Japanese). With cursor left and right I can go through the text elements and narrow the selection what a certain text element is with shift+left or widen it with shift+right. I end conversion-mode with pressing enter, when everything is in the state as I want it.
When I press left or right in TM2 the conversion-mode ends and the cursor goes to the right but conversion-mode should only end after pressing enter (and only an extra enter should create the line-break).
Niels
Hi, I'm going to give a whack at transforming a .tm_proj file into
'Favorites' and .tm_project files upon opening them (or if they exist
navigate there). Couple of questions:
This seems like an event thing. However, in the Avian bundle, all the
similar commands define themselves as a callback in the semantic class
field, rather than specifying an event. I'm not understanding the
reasoning behind this, since it seems to blur the distinction between
'events' and 'classes'. Is there any way to determine whether we should be
targeting an event or adding a class of 'callback'?
Which semantic class (or other options) do I need to use to target only
opening tm_proj files by extension?
Thanks!
Brandon
Hello all,
we encountered two main issues using TM2 alpha:
- First of all, I'm unable to globally set TM2 to use soft tabs, "Edit -> Mode -> Soft Tabs (Use spaces instead of tabs)" menu is not selectable, I also tried exporting TM_SOFT_TABS = yes as in TM1 but it doesn't work.
- Trying to select text going down out of page to select more than one page text, produce a strange behavior, sometimes it goes at crazy speed (happened with python code), other times I see some video corruption: blue selection band persist after deselection, blue selection band seems interrupted inside selection (happened with C source code).
Moreover, Ctags bundle really need some improvements, for example I can't go backward as in vim, multiple tags selection window is uncomfortable, Help menu command doesn't work, there is no way to specify more than one tags file, and so on...
Another thing, is that there is no way to know who use some function, I can go to the function definition but if I want to know who use that I can't.
Thanks you very much for this alpha, rmate command make me very happy.
Giordano
>Clearly, its a mistake to delete TM1.
In my Console app, I can see Avain pulling bundles and other things from
App Support/TextMate as well as App Support/Avain, so I'd say it isn't
quite ready to stand on it's own yet. In my opinion this makes debugging
things way more difficult right now, but I'm guessing unless it is an
outright bug there is a good reason for it.
I think ideally TextMate and Avian shouldn't touch each other's files, but
I can't really judge considering I write primarily dynamic scripting
languages, the slow pitch softball of programming.
Hi,
I work with a lot of tab-separated files.
Now most of the times when I open a tab-separated file, the lines are unfortunately not properly aligned.
I get something like:
xx xxxxx
xxxx xxxxx
Is there a way to align this in textmate, so that I get a clean "table-like" view (without adding tabs of course)?
thanks for any help!
>
> to let you know that some TextMate users rely on projects and don't want
> to see it be cut
I believe that's been established a few times.
Something I just thought of: maybe a quick workaround would be to cause
opening a .tm_proj in TextMate to take the file browser to the Project
Directory (or the first one at least). Since a lot of my projects ARE just
one directory, that would definitely alleviate my current problem of all my
project data being contained in a lot of proprietary tm_proj files that
only work with one program. ;)
Maybe a good way for someone to test out the open file event handlers?
Seems doable within the current system depending on the scriptability of
the file browser.
Brandon
On 15 Dec 2011, at 12:25, Allan Odgaard wrote:
> As for the philosophy, which you questioned, you work with Git, LaTeX, and Dropbox which share the same philosophy: LaTeX use plain text files that all text editors understand and have done for 20+ years, Git works on a folder that all file browsers understand, Dropbox is just a folder that all applications understand.
That doesn't mean I have to use a workflow that is dictated by technologies from 20 years ago. I also no longer manage photos in folders by hand, even though I technically could. But managing and editing photos in Aperture is a lot faster and allows me to do things that were previously impossible.
In my alternate reality, instead of juggling with TextMate, GitX and FileMerge to recover the paragraph I've deleted, it'd be much easier to do all that efficiently in TextMate 2.
> I don’t want you to spend time managing your project in TextMate and [...]
Please don't worry about me or other users »wasting our time«. We know enough to take it upon ourselves to decide how to collaborate with others. I for one haven't run into trouble stemming from me using projects. (I did run into problems, because I wasn't adding hard line breaks by hand in my code, though ;-)
And as long as using projects is *optional* as it is now, I don't see a problem for anyone. Why not let us have the cake and eat it, too?
> As for precluding myself from future enhancements such as Versions: You are (technically) wrong here.
The point is not to have a feature, but to have a feature that people can find and use. (Apple's current implementation of how to browse versions is IMHO horrible since most people will not discover how to use them.)
> whether you think my philopsophy is narrow-minded or less modern than Apple’s is not worth spending time discussing.
I am not interested in a philosophical discussion. The only reason I see it worth my time is to let you know that some TextMate users rely on projects and don't want to see it be cut. And that there is a case to be made to for keeping them. Or to at least make sure that you design TextMate 2 so that someone else can add a Project add-on later. That's all.
Max
I've been trying TM2-alpha while continuing to work (mostly XeLaTeX-ing) with TM1. I have encountered two TM2/LaTeX issues relating to biblatex and latexmk which I've been using without problem with TM 1.x for at least a year now.
1. in my preferences/Variables, I set PATH as in TM1 and set BIBINPUTS (to) /Users/myname/Library/texmf/bibtex/bib where I keep my bib files. But when I try to complete a citation with Citation (Ref-TeX Style) by using ^{ , the completion doesn't occur in TM2, while it does in TM1. I tried to put BIBINPUTS = "/Users/gweltaz/Library/texmf/bibtex/bib" and that didn't help either. Is some other language needed?
2. this is regarding the LaTeX bundle: I loaded the latest latexmk.pl (Dec 2011) and slightly edited texMate.py in LaTeX.tmbundle/Support/bin bibtex to biber in a few places. This works fine with TM1, i.e., the biber engine is found, and latexmk does its thing, but nothing happens in TM2/LaTeX.tmbundle. Suggestions? [note: I normally use TM1 + TeXShop for automatic typesetting via (xe)latexmk, will gladly continue, but wonder how this can be accomplished in TM without having to set up and use TeXShop]
With much appreciation for TM1 + TM2.
--Gildas Hamel
Here's a solution:
. "${TM_SUPPORT_PATH}/lib/bash_init.sh"
"$TM_LILYPOND" "$TM_FILENAME" 2>&1 | pre
1) In TM2, bash_init.sh needs to be loaded?
2) In TM2, stdout and stderr are differentiated? (Lilypond writes to
stderr, so combining it before the pipe to pre works. Wasn't needed,
apparently, on TM1.5)
If anyone has better information or fix, please share.
Thanks! Charles
On 15 Dec 2011, at 11:00, Allan Odgaard wrote:
>> […] not gluing yourself to the file system layout also give you the opportunity to do things that go beyond what you can think of when relying on the filesystem alone.
> Given TextMate’s philosophy it’s the opposite.
I don't understand that comment: I reckon you mean to say that TextMate's philosophy is to rely solely on the filesystem?
> When you use the file system for your project then SCM works fine because it is told that “this folder is a project”, TextMate commands work fine with the project, because they have a single root project folder, backing up the project works fine because tar can be told about a single project folder, etc.
Still, me and many others prefer to use a different method to organizing work. And not every workflow can be like yours. After all, I do use the »filesystem view« for some things because that is easier when you add a lot of files on a regular basis.
Furthermore, as said before, many apps are moving away from merely »viewing files« (and this is encouraged by Apple!), including professional apps (such as Aperture) and apps aimed at developers. Gitbox, for instance, is a nice example: there you browse repositories and commits. Integrating some of that into TextMate would make a lot of sense to me. (Or at least keep the TextMate flexible enough so that someone else can program something like that as a bundle.)
Lastly, the focus on the file system would also make it harder for you to implement access to some of Apple's future technologies (e. g. Versions; while I use git professionally, I wouldn't mind having versions when writing letters and such, stuff where git is overkill).
So I think you exclude TextMate from a lot of innovation if you don't allow a project view that is independent from the file system.
> Anyway, I think enough have been said about projects. My initial letter may have come off too strong: I was listing what can be used now in the “project context”, I was not saying everything is frozen and nothing will change:
I'm not so sure whether you got it across the wrong way, everything you have written reinforces my impression that Projects (the way we have them in TextMate 1.5) will be axed as a feature and that you dislike working with them. (I remember posts of yours to this effect on this mailing in the past.)
It's quite natural that people who like Projects would object.
> But definitely I am of the opinion that one should work with the file system because that is the “portable” way to represent a project.
I think this view of this aspect is a bit outdated and narrow-minded: Portability can mean a lot of things, but in my experience the problems rarely lie with transferring files. Quite the contrary, that's typically the easiest part (I use Dropbox to collaborate with others). In my case it's mostly making sure LaTeX code compiles on my coworker's machines. Which usually means they have to install additional packages or alter the code a little.
Max
It seems that many many people have jumped on the TM2 alpha. The
consequence of this is that there has been a rush of TM2 questions,
some of which ignore Allan's request not to post general feedback,
some of which would be answered if the poster would read the message
on textmate-dev Allan linked in a post yesterday, some of which would
be answered in the blog or release notes.
I don't think I've seen a question yet that, bearing in mind this is
*alpha* software, is sensible to post or meets the criteria of being
what the devs want to know about.
Would the powers that be consider a new mailing list? "TM2
testers" (or similar) so that the "TM users" list can concentrate on
issues, or queries users have with only the current release of TM.
This would naturally migrate once TM2 is released to the world.
I'm not going to upgrade to alpha software, I'll also avoid early beta
releases too, as I'm sure many others, like myself, who do not have
time to deal with the inevitable problems of using such 'new',
software will do. Allan and the dev team have my full support, and
I'll be glad to test release candidates when they say it's almost
ready for public consumption. But in the mean time, this list is going
to become, at best distracting, at worst very difficult to use for
those trying to get help with TM1 issues if so many posts are related
to an unreleased version.
--
Justin C, by the sea.
Wow, just wow. Lots of awesome stuff going on. Every corner is packed
with new, exciting features. A couple of ideas:
I agree with keeping the file browser window (or formerly-known-as-project
window) open after the last tab is closed. I keep frustrating myself
by accidentally closing it, then I have to hit command+n, then rebrowse to
my folder.
Here's my suggestions for improving this behavior:
- Allow command+t to work without a window open. The list could be
populated with the files under File->Open Recent.
- Open the file browser to the last folder I was using, rather than home.
If anyone knows how to navigate the file browser / favorites using only the
keyboard, I would be eternally grateful for that information.
###
I'm also having some issues with the .tm_properties files. They only seem
to be working intermittently for excluding files/directories from my
project. Sometimes the files will disappear as soon as I save my edits,
somes times not. Sometimes they will come back later. I am not under my
home directory (I'm in /Library/WebServer/Documents/...) which I have a
hunch might be causing the problems. Anyone experienced anything similar
or have any info on that?
###
About Projects: I can understand not reintroducing projects if a few other
features are stepped up. One small feature I find improves the experience
quite a bit is when you open a project, it restores the tab state and puts
you in the file you left off in. If that could be replicated with the
existing features (on a per folder or per favorite basis) I think it would
go a long way towards reducing the desire to return to .tm_proj files.
Is it possible to only keep the file browser open when closing files?
If I close the last open file it automatic close the window with the file browser.
Also I would love to see an option to keep the Tab-bar visible even if I only have one file open in file browser view.
I just downloaded TM2 build 8930, but it seems that the projects are gone?
I can open old projects (.tmproject files), but it's just showing an XML and
also it's not possible anymore to create new projects..
Are they gone in TM2? If so, that would be a real bummer...
--
View this message in context: http://old.nabble.com/Projects-are-gone-in-TM2--tp32970824p32970824.html
Sent from the textmate users mailing list archive at Nabble.com.
For several of the bundles in TextMate 2, I am getting duplicate items
in the select dialog. For example, in the following screenshot, you
can see the Git bundle with double entries:
http://cl.ly/2B0E2i3E0D0e2g1L1T2N
Any idea as to the cause of this?
I've never much cared for the way TM populates the tab bar by creating a tab for every open folder. After only a few windows are open (over any interval of time, even days or weeks), the available space is used up and one must click on the "overflow" menu to see more tabs which partially reduces the effectiveness of the tab concept. It's even worse when a tab that you want has disappeared into the the menu. I am constantly closing many tabs at once just to clean up.
Also, the Command-1, Command-2 is really great, but once a window appears in another-numbered tab, suddenly you have to re-learn the new key combination.
Maybe a better organizer is a kind of favorites bar that can be populated manually (but keeping the Command-N concept) while keeping a file history list as a separate entity. In my view, merging the tab concept with a file history, which is pretty much the present situation, is awkward.
Lastly, it would be cool to be able to drag a window's proxy icon (I think that's the right name) to the project window's tab bar to cause that window to close but to then be accessible by a tab. (Merge All Windows is usually too aggressive.) OK too would be just a menu command, Merge Front Window, but this would assume that the program knows where in the tab bar to make the new tab, but it won't know, necessitating a separate drag operation within the tab bar.
Jerry
I am a new user (purchased yesterday) of TextMate. In the past, I used
a great program on Windows called Advanced Find and Replace. It
allowed me to search through multiple files within a folder (I see
that I can do that by a project in TextMate too). But, what I cannot
figure out is if it will allow me to replace things like:
1. Ignoring white space in HTML so that it will find all text to
replace even if it is on a separate line and with tabs.
Example:
<p>This is a paragraph</p>
vs.
<p>
This is a paragraph
</p>
If it cannot search and find both of these then it is not quite as
powerful as I had hoped.
2. Advanced Find and Replace also could find text *between* two
strings and either replace it or delete it. For instance, if I wanted
to search through this:
I want to replace the word that is between these question marks in
multiple documents. ?Delete Me? and ?Delete Me Too?
You would end up with:
I want to replace the word that is between these question marks in
multiple documents. ?? and ??
Sorry, not a great example :-( but it gets the point across.
This function though could allow you to delete all tables in an HTML
document without actually knowing what was in the table....or many
other uses. It can delete text before a string or after a string too.
Can TextMate perform these more complicated Search/Replace functions?
If not, I still love the app but does anyone know of a comparable app
that is similar to Advanced Find and Replace on the Mac since this
program is not available for the Mac OSX?
Thank you,
Linda