I'm writing a command to open tmproj files and I've narrowed it to opening
a folder from the project, and opening the files that were open when the
project was saved. Anything else is too messy to transform into the Avian
equivalent. I do have a couple questions before I will be able to complete
it:
*How to manipulate the file browser from a (Ruby) command?*
*How to open a file from a (Ruby) command?*
Also, a couple general purpose questions:
*How to run a bundle from another bundle (if possible)?*
*How to output to both document and web preview with a command (if
possible)?*
Bugs:
Found a bug in the File Browser: Renaming a favorite to the same filename
with a changed case (e.g. myfavorite -> MyFavoRite) causes "Failed to
rename the file at “MyFavoRite. Error: File exists"
---
The new Ruby support scripts look fantastic. I see some cool bundles in
TextMate's future.
Brandon
Hello,
Have been trying out Textmate 2 alpha since it's public release. First off,
well done!
I've been trying it out on a project I work on and so far haven't had any
crashes. The stability is excellent!
Also, the right hand sidebar and Git SCM integration in the file browser
was a much needed feature that works well!
The only relatively minor (but annoying) issue I've run into so far has
been with the speed of source code highlighting.
When I open several files in quick succession, most of them big (100+
lines), the source code highlighter takes a fare while to process them all.
It seems like it parses the files in the order I opened them? In any case,
a file could take up to 10s-20s before it finally gets colouring.
I never noticed this issue in Textmate 1, so it seems like a regression.
Also, it would be nice to close the last tab without the window closing as
well.
Other than that, going well so far. Keep it up!
Regards
Kieran Pilkington
----------------------------------------------------------------
http://twitter.com/k776 - http://k776.tumblr.com
In the new version files that are open are highlighted by a small cross (x) to the right in the file browser. Occasionally I close all the windows just to get back to everything closed and a blank editing window. This was the behaviour in version 1.5. If I now close the last one it closes the whole window. Please can you consider reverting the functionality back to that of 1.5 i.e. that closing the last open file leaves the file browser open and also a blank editing area
Thanks
David M Walker
Data Management & Warehousing
0118 321 5930
davidw(a)datamgmt.com
http://www.datamgmt.com
Probably not a surprise.
I was playing with TM2 to see if the integration with RVM for switching
ruby versions for different 'projects/directories' would work with TM2
using the rvm-auto-ruby approach documented here:
http://beginrescueend.com/integration/textmate/
It took me a while to get around TM not finding rvm-auto-ruby until I
finally figured out that the spaces around the = are crucial in this line I
added to .tm_properties
TM_RUBY = "/Users/rick/.rvm/bin/rvm-auto-ruby"
However, TM isn't using the .rvmrc file in the 'project' directory so it's
always using the default ruby 1.8.7.
It looks like a partial workaround would be to have a local .tm_properties
file which sets TM_RUBY for each 'project' directory, but I don't think
that this will handle other rvm aspects such as gemsets.
--
Rick DeNatale
Google+: +Rick DeNatale <https://plus.google.com/102541178931067955550>
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
I'm confident this is a stupid question but I'm stymied, as someone would say.
I would like to experiment with using the feature
'pipe through command' of the html preview in TM1
in combination with pdflatex.
1) I created a folder /Users/piero/Desktop/prova
2) in the folder there's a trivial latex file prova.tex, which
compiles just fine producing a pdf of one page
3) I added a file script.sh which contains the following:
if /usr/texbin/pdflatex -output-directory /User/piero/Desktop/prova
-interaction=nonstopmode
/dev/stdin; then
echo '<meta http-equiv="refresh" content="0; tm-file:///tmp/stdin.pdf">'
fi
(this approach is suggested in Allan's blog. The script file
has been suitably chmodded)
4) in the html preview window of TM I checked the button
'Pipe text through' and added the path to
/Users/piero/Desktop/prova/script.sh
5) But, when I invoke web preview, the html window shows only
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
restricted \write18 enabled.
entering extended mode ! I can't write on file `stdin.log'. (Press
Enter to retry, or Control-D
to exit; default file extension is `.log') Please type another
transcript file
name ! Emergency stop ! ==> Fatal error occurred, no output PDF file
produced!
What am I doing wrong? is this some permission issue in Lion
10.7.2 which I'm using?
Bonus question: in view of TM2 (thanks Allan - never lost the
faith), am I just wasting time since the feature will not work
in the future?
Thanks for help
Piero
>
> Also, would you please answer my second question from the original email
> which was to refer me to resources that are simple to learn as I am just
> learning how to code and I don't understand most of the emails people are
> talking about, including your blogs.
>
These are good resources to learn programming for a beginner. However this
really isn't the place for that, it is a support list for a text editor.
http://norvig.com/21-days.htmlhttp://www.reddit.com/r/programminghttp://stackoverflow.com/
I'm sure Allan is busy having just launched a product that took years to
develop, especially considering it is a week from Christmas. There seems
to be a lot of people saying "I need this feature now, otherwise TextMate 2
is unusable." Maybe he should have just kept it for another year to
satisfy everyone's desires?
Anyway if you are having an issue (especially .tm_properties problems,
performance/slow rendering problems, bundle problems, and folder problems),
before posting here I recommend backing up all your custom
bundles/settings/themes, deleting both TM and Avian and all related support
docs (App Support/plists), and install a fresh copy of Avain, then
selectively put back the stuff you actually use. I had several of the
issues intermittently and that fixed several of them.
Brandon
Hi,
I'm on 10.6.8, 2.93Ghz Core2Duo, 4Go ram
All the file i open take time to be parse for syntax coloration, and if i
open like 10 file it take more than 2sec to open or switch to a previous
open file.
Also to close a file.
Like this TM2 is just not usable.
All working fine with TM1 with the same project.
Also the bundle PHP Cake doesn't work when i check the scope
text.html.php.cake as not present.
Thanks,
Mickael
TM2 performs some automatic actions on save, for example making new scripts with a shebang executable after save.
Is this configurable somewhere? Two reasons:
a) for hysterical reasons a lot of my sources start with a shebang but I do NOT want them to be made executable
b) I'd like to add some automatic testing/verification for certain file types upon save. in TM1 I'd overwrite the "Save" shortcut for this, I wonder if above is more appropriate.
Thanks
Gerd
Trying to get to grips with TM2...
Using any command from the git bundle I get this alert panel:
Failure running “Show Uncommitted Changes”.
[31mFail whale detected![0m
TM_SUPPORT_PATH is not set. This is probably because you are running
specs from outside of TextMate.
You can set TM_SUPPORT_PATH using something like...
export TM_SUPPORT_PATH='/Applications/TextMate.app/Contents/SharedSupport/Support'
I checked the recent posts but can't find a solution. Amy suggestions?
Also while the file browser sidebar does show the SCM status (eg the circle for files with changes), the "purple folder" icon does not do anything for me. Did that break in 8949?
Thanks
Gerd
HI,
I'm new to TM2 and am trying to save a simple font change in .tm_properties, but each time I do, I get a popup menu stating that it couldn't save and to look at the 'Console output'. When I looked at the console, there was nothing about TM2.
Any ideas?
Also, as I am new to the coding world, what is a good resource to learn about what stuff means, especially in relation to TM2?
Thanks,
Paul