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
Since updating this morning to r9361, I've had its CPU use spiking up into
the 180% range continually. It seems to be looking for regexp searches on
path names.
The source I am editing is shared across the network via SMB from a compute
cluster. I noted the release note item this morning about network share
code being touched.
Happy to send an Activity Monitor sample, etc, etc.
Is there a setting or preference I've missed that would allow symlinks shown
in the File Browser to act like a "normal" folder? That is, to have a
disclosure triangle button and unfold to expose its content?
Bob
--
View this message in context: http://textmate.1073791.n5.nabble.com/Symlinks-as-Expandable-Directories-tp…
Sent from the textmate users mailing list archive at Nabble.com.
If this is a duplicate message please excuse me.
In TM2{9359} I often open projects by dragging a folder into TM2. This puts
the folder and subordinate files into the file browser (sidebar), from
which I can open files for editing.
Recently the file browser shows only folders. It shows no files with a
single exception. If there is an ".htaccess" file, that file shows in the
sidebar. To open a file for editing, I have to open it one file at a time.
I can't open any files from the file browser because they don't show.
I can open files by dragging in one at a time or using open on a single
file.This started about the time the browser-on-the-right change happened.
I can switch the sidebar from left to right and back with no problem.
I tried downloading 9359 again. Same results. I tried some earlier versions
and got told "corrupted dowload".
I could sure use some help.
Lewy
Hi,
When I pull a git repository, Textmate update automatically the
corresponding opened files (which is cool) but it does it silently.
Is there a way to get notified when a opened file is updated?
I found this old ticket about the same issue :
http://ticket.macromates.com/show?ticket_id=FFEB806B
Is it already implemented or still planned?
Thank you.
I'm sure this has been extensively discussed, and there's probably a place
for entering and commenting on feature requests, but I can't find it and
Google didn't help me. So...
I'd like to be able to style the File Browser area so as to match the color
theme in use.
It could be as simple as a light vs. dark mode preference. Or a dialog box
in preferences to pick the color of the background and the text. Or even as
elaborate as giving text color themes access to File Browser color
variables.
And, yes, this is a visual enhancement rather than a "feature," but this is
a Mac program, after all, and style does count. :)
Bob
--
View this message in context: http://textmate.1073791.n5.nabble.com/Feature-Request-Styling-the-File-Brow…
Sent from the textmate users mailing list archive at Nabble.com.
I've set up my Avian and TextMate folders in Application Support as symlinks
to those folders on my Dropbox account. That seems to be working.
But is it safe? Can that setup handle TextMate 2 open on my Mac Pro and
MacBook Pro at the same time?
--
View this message in context: http://textmate.1073791.n5.nabble.com/Sync-TextMate-2-Prefs-via-Dropbox-tp2…
Sent from the textmate users mailing list archive at Nabble.com.
Just asking for a file to print crashes TextMate 2 (9359) so thoroughly that
its session folder has to be deleted before it will restart.
Has anyone else seen this or is it a problem with my machine?
--
View this message in context: http://textmate.1073791.n5.nabble.com/TextMate-2-9359-Crashes-on-Print-tp26…
Sent from the textmate users mailing list archive at Nabble.com.
In the file browser different file types have different icons. My .scss files
have their own icons, as do my .php files, for example.
But my .less files have a generic icon.
Where are those icons defined? How do I go about adding an icon for my .less
files?
Bob
--
View this message in context: http://textmate.1073791.n5.nabble.com/File-Icons-in-File-Browser-tp26135.ht…
Sent from the textmate users mailing list archive at Nabble.com.
I know it is works in progress, but how about moving tabs right of file browser 1st (something that many ppl have requested so far)?
I really find new bar and tabs above awkward, also against HIG since switching tab has absolutely no impact on file browser:
Btw it doesn't look like on: https://github.com/textmate/textmate/wiki/Main-Window The bar is much darker and higher in the build.
How about making the bar same size as tabs bar too:
Cheers,
--
Adam
OK, tested and this can be reproduced. If a bundle is disabled (in TM2), then
deleted from inside the bundle editor (cmd delete) it no longer shows up in
the lists anywhere (that I can find) to re-enable it even after it's
reinstalled.
So, how to get it back?
--
View this message in context: http://textmate.1073791.n5.nabble.com/Deleted-CSS-Bundle-Can-t-get-it-back-…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
After downloading (and re-downloading -- http://wiki.macromates.com/Troubleshooting/FailsToLaunchAfterUpdate) the current binary from Github (r9351), TextMate is failing to launch on OS X 10.8.2. I get the Cancel/Move to Trash dialogue window.
Has anyone else experience this issue?
Regards,
Adam
I was prompted to update TextMate from 9351 to 9353, but I got an error:
> Failed: Currupt archive.
Not sure if it's happening to other people. When I try again, it seems it
doesn't actually re-download the file (maybe just my download is corrupt),
but I couldn't find where TextMate stores those downloads to delete my
copy. Does anyone know where they're stored, so I can try again?
Thanks
At some point recently, TextMate stopped opening files passed to it from my
FTP client. The client downloads the file, then hangs and stops responding.
TextMate will launch (or become active if already launched) but no file
opens.
While the FTP client is Cyberduck, I've confirmed the issue happens in
Transmit as well. Issue does not affect other editors such as TextEdit or
TextWrangler.
Removing TextMate's preferences, caches, or ~/Application Support/TextMate
do no good. In an alternate user account, no issue at all.
TextMate is version 1.5.11, OS is 10.8.2.
I'm hoping someone's run into a similar issue. It's just a matter of time
before I start gutting ~/Library, and I'd like to avoid that.
--
View this message in context: http://textmate.1073791.n5.nabble.com/TextMate-no-longer-accepts-files-from…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
the recent updates (I'm on the nightly builds track) keep being
registered as different apps in whereever MacOSX tracks if an app can
deal with a certain kind of file.
So, when I do right-click->Open With, there are 4 entries for TextMate now.
How can I clean this up?
Thx,
Michael
Hi all,
in https://github.com/textmate/textmate/issues/699 it is currently discussed
whether or not the file browser should default to left or right position.
I appreciate that the position can easily be changed via preferences, so I
don't care too much for the preset default position -- but I would like to
point out one factor that led me to changing it back to 'left' after short
testing time.
It is argued that, with the file browser on the right hand side, the left
border of the text view will not move when the file browser is shown or
hidden (which I fully understand). However, when switching to full screen
mode, the text view will be stuck at the leftmost corner of the screen. With
a large widescreen display, I personally prefer to have the text editor (at
least approximately) centered on the screen, and with the file browser to
left, one could easily use the file browser width to achieve centering of
the main text view in full screen mode. So far, I have not found an option
to get the text away from the left border of the screen if the file browser
is on the right hand side.
Maybe I'm missing something, so please tell me should such an option exist.
I may well give the new default setting another try when it is actually
possible to have the text view centered on the screen also in full screen
mode.
Thanks,
dAlembert
--
View this message in context: http://textmate.1073791.n5.nabble.com/Comment-on-Issue-699-File-Browser-def…
Sent from the textmate users mailing list archive at Nabble.com.
I just did a git commit and it failed with some permission error, but the error was displayed in a narrow sheet that extended off the bottom of the window and screen so there was no obvious way to dismiss it and that project was effectively locked. Other projects open at the same time still seemed to work. It had me scratching my head for a while but the solution was to hit return . It would have been better if the sheet was wider, but in any case having a scrollable text area with a button might be a better interface.
Dave.
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
Greetings,
I installed the Standard ML bundle to support an on-line class. I am able to use the RUN command within the environment. However, when I attempt the BUILD command the following error is displayed: No such folder: /base/system. Configuration is:
OS: OS X 10.8.2
Textmate: /HDD/Applications
SML Bundle: ~/Library/Application\ Support/TextMate
SML: /HDD/usr/Local/smlnj-110.75
Screenshot from the Bundle Editor
Thanks in advance for any help!
--john simpson
John Simpson
Cell: 925.577.4831
Land: 925.705.7493
www.linkedin.com/in/jsimp42
Skype: je.simpson
AIM: jsimp42
je.simpson(a)me.com
je.simpson(a)comcast.net
On Thu, Jan 17, 2013 at 5:00 AM, <textmate-request(a)lists.macromates.com>wrote:
> From: Allan Odgaard <mailinglist(a)textmate.org>
>
> > I've got a shell script that I tried to make a little more readable with
> ANSI color. It works when I run it from the command line, but when I have
> it open in TM2 (and 1) and press Cmd-R, the script executes but I get no
> color.
>
> Escape codes for colors is a “terminal” feature, meaning that only scripts
> running in a terminal should use such escape codes. TextMate does not offer
> a terminal environment when running scripts.
>
> Ah, that makes perfect sense. Thanks. I guess I got stuck on thinking
that since STDERR comes out as red (in TM), then it must be possible to do
other colors.
Dear all,
the Matlab bundle does not correctly deal with the ' character as a
mathematical operation.
I have this line in a matlab file:
time = (-L_TEMPLATE/2+1/2:L_TEMPLATE/2-1/2)'; % time vector [samples]
and everything after this line is marked as being a string, because '
is recognized as string-open, I guess?
Does anybody know how to make this work better?
Thx,
Michael
I've got a shell script that I tried to make a little more readable with
ANSI color. It works when I run it from the command line, but when I have
it open in TM2 (and 1) and press Cmd-R, the script executes but I get no
color.
For simplicity, I tried it with a very simple script:
#!/bin/bash
printf "\e[31mhello\e[m\n"
In Terminal, I get a red "hello". In TM, I get
[31mhello[m
Seems like some kind of escaping thing going on; can anyone point me in the
right direction? I've tried a number of variations, including using print
and echo (with -e and w/o), but I get essentially the same results.
Thanks,
+dru
Does any one know how to disable the display of <CR> in a grey box when opening a file with different line endings. I don't want to resave the file with 'correct' line endings.
Maybe it should be tied into Show Invisibles menu command?
Thanks,
Dave.
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
I wrote a very simple bundle to run Python, PHP, Ruby, Bash scripts in Terminal.app without stealing focus from the TextMate window. I.e. you press Cmd + Shift + R, Terminal gets updated in background and you can keep writing code in TextMate.
More information and download:
https://github.com/Cyberic/Run-in-Terminal-Bundle
It's very easy to add support for more languages.
Hope someone will find it useful.
Eugene / Dae
I'm working on a Ruby script in TextMate 2 and all of a sudden I'm seeing the end of my files disappear and inserted midline is ">>>>>>> External Changes" and from there on everything is deleted. The only thing that I've knowingly changed is I've started to use Bookmarks. Therefore Cmd-F2 and shift-F2.
Any ideas?
Greg
I use TextMate mostly with LaTeX projects.
I've noticed that since at least the last two builds of TextMate, using command + ], the command which raises the indentation level (i. e. the keyboard shortcut for »Shift Right« from the Text menu) actually lowers it (it Shifts Left). If I select the Shift Right item from the Text menu, it works just fine.
Is the LaTeX package to blame here? Or is it a weird bug in TextMate 2? How can I trace the problem?
Thanks a lot!
Max
I've been using TM2 for a year now, mostly for Haskell, C, and Go development.
Recently, I've transitioned my LaTeX workflow to TM2 (from TeXShop; I never used TM1 for LaTeX) and am noticing a problem.
In a LaTeX document in TM2, if I invoke my hotkey for Mekentosj Papers' citation feature, and try to insert a citekey, it instead inserts the _previous_ contents of my clipboard (whatever I'd previously copied).
In any other application I have tested this in (Terminal, Mail, Sublime 2, TextEdit... I no longer have TM1 on my system) this works as expected.
Ideas?
thanks,
Noah
Ladies and Gentlemen:
I have solved the problem.
I had a backslash in the password.
For some reasons that confused the system.
I removed the backslash and now the password is stored ini the keychain.
---
Kind regards
Dr. Dieter Zakel MA
hotline: +43 (800) MEDIZIN
private: +43 (699) 1010 1070
Ladies and Gentlemen:
I have the blogging bundle and I have setup my blog:
http://cloud.zakel.at/image/3A173t0r2C43
When I try to fetch my posts and to blog my posts
http://cloud.zakel.at/image/1h2N461A2L2j
I am always asked to enter my password although it is in the keychain:
http://cloud.zakel.at/image/0A1m2Q171T1u
This is new since Snow Leopard.
Has anyone an idea why this is happening?
Thank you very much.
---
Kind regards
Dr. Dieter Zakel MA
hotline: +43 (800) MEDIZIN
private: +43 (699) 1010 1070
Hello,
I am working on a language grammar for HCS12 assembly language. I have read
the portion of the manual on language grammars (chapter 12) and
unfortunately for me it has led to more questions than answers. I have read
the re.txt file and have tried many things with no apparent effect,
certainly not the one I am looking for.
I have the following code that matches a label definition perfectly:
{ name = 'string.label.def';
comment = 'case insensitive - label definition';
match = '^(\S)+:';
captures = { 1 = { name = 'string.label'; }; };
},
Now what I want to do is use the capture in another match statement to find
all references to the same labels when they are being called. They will no
longer be the first word of line and they will no longer have a ":" suffix.
It seems to me that capture group above should have just the labels. If I
could use that capture group to then find all matches of the label then my
problem to match unknown labels and not get false matches to other strings
that are not being matched.
An example code snippet my language grammar is intended for is:
staa PORTB ; light the segments
ldaa PTP ; only alter port p bits we are using
anda #$f0
oraa dspmap,x ; light up correct char
staa PTP
bra TA3
TA2: bset PTP #$0f ; turn off seven segment LEDs
movb displ PORTB ; set value of LED row
bclr PTJ #2 ; turn on LED row
TA3:
In the above snippet TA2: and TA3: are matched by my regex. I want to use
capture group if possible to match the labels when in the third column, in
the above snippet only TA3 is shown. I don't want to match anything in the
third column that is not a label. A label will never appear in the first
column which is already matched by other regex. The forth column are
obviously comments and they are matched by other regex.
So, how do I do what I want to do?
Thank you kindly in advance,
~Chris
--
View this message in context: http://textmate.1073791.n5.nabble.com/is-it-possible-to-use-a-capture-in-an…
Sent from the textmate users mailing list archive at Nabble.com.
Is there a way to get the current directory displayed by the file
browser from within a script (eg. bundle command).
I didn't see any TM_ environment variables containing this value.
Thanks.
I'm trying to understand how the single line comment rule works (found on this line https://github.com/textmate/javascript.tmbundle/blob/master/Syntaxes/JavaSc…)
begin = '(^[ \t]+)?(?=//)';
end = '(?!\G)';
beginCaptures = { 1 = { name = 'punctuation.whitespace.comment.leading.js'; }; };
patterns = (
{ name = 'comment.line.double-slash.js';
begin = '//';
end = '\n';
beginCaptures = { 0 = { name = 'punctuation.definition.comment.js'; }; };
},
);
Since TextMate grammars are line based, I'm not sure how it's possible for the '\n' pattern and the '(?!\G)' pattern to work together. For example, take these two lines:
// a comment
var foo
The 'single line comment' rule is entered by matching it's begin pattern '(^[ \t]+)?(?=//)'. The 'comment.line.double-slash.js'' rule is then entered upon matching '//', the rule is ended when '\n' is matched. Because we have matched the end of the first line, we continue to the second line. The second line will end the 'single line comment' rule because the end pattern '(?!\G)' will match the 'a' in 'var'. Because of this, var cannot be scooped correctly because the 'v' is considered to be part of the 'single line comment' rule.
This fails as I described in TextMate 1 but works in TextMate 2. Is there something fundamentally different about using the \G anchor in TextMate 2.
Thanks,
Corey
Can someone reproduce this behaviour?
Summary: The command option "caret placement": "select output" does not
work, but behaves as "caret placement": "place after output".
Steps to reproduce:
1. Open a bundle in the editor
2. Create a new command
3. Retain the default code and settings:
Code: echo "Hello world\n"
Input: Selection - Text
Output: Replace Input - Text
Caret Placement - Select Output
4. Add a key equivalent
5. Save and open a blank text window
6. Press the chosen key equivalent
Expected result:
The text "Hello world" placed and selected
Actual result:
The text "Hello world" placed, no selection. Caret positioned after the
inserted text.
TextMate version: 2.0.0-alpha.9323
How do I accomplish the desired result, that the output of a command is
selected?
Thanks,
Freek
Ladies and Gentlemen:
I use the blogging bundle from Brad Choate.
Since Snow Leopard the password to my wordpress blog is not saved in the keychain anymore.
I have to type it in every time.
Also while fetching.
Does anyone has a hint?
Thank you very much.
---
Kind regards
Dr. Dieter Zakel MA
hotline: +43 (800) MEDIZIN
Hi,
Currently in order to change the active theme you have to go to the "View" menu, then the "Theme" menu item, and then select the theme.
It would be nice to be able to browse the themes quickly.
Either:
- keyboard shortcuts to change the active theme to the next/previous in the list.
- or, some sort of GUI that shows you all of the themes at once, sort of like the [previews on the wiki](http://wiki.macromates.com/Themes/UserSubmittedThemes)
Thanks,
Charles
TextMate Version 1.5.11 (1635)
Transmit 4.2
OS 10.8.2 supplemental installed
I can ftp into all sites with no issue. Set editor to textmate, double click, and it will open textmate for about 5 docs and save no problem, after that it hangs transmit, causing a crash. I can edit with any other editor and transmit.
below is usually what happens. I have repaired permission, completely removed textmate and transmit and reinstalled.
any ideas would be great, as this is my favorite workflow.
Thank you.
10/17/12 11:06:46.456 AM lsboxd[678]: @AE relay 4755524c:4755524c
10/17/12 11:11:35.453 AM TextMate[1340]: *** error sending apple event -1712 (<NSAppleEventDescriptor: 'R*ch'\'FCls'{ '----':"/Users/mattgrimes/Library/Caches/Cleanup At Startup/Transmit/F61AAB28-7D66-4B40-A7EF-886A65E8A41A/process.php", 'Tokn':[ 'BBEd'(3620B19F100100000036) ] }>)
10/17/12 11:19:33.000 AM kernel[0]: ALF: ifnet_get_address_list_family error 12
10/17/12 11:22:45.031 AM WindowServer[93]: CGXSetWindowBackgroundBlurRadius: Invalid window 0xffffffff
Is there a reason TextMate copies mate into the user's $PATH instead of
just making a symlink to the command inside the Application's resources?
What dangers do I run if I do decide to symlink it? (As part of a system
configuration bootstrap script. I could copy it, but it would be a little
more work.)
Thanks,
Neil.
This probably is a simple bug that it is somewhat annoying to have:
If we run TextMate and have the folder panel on the left (such as if we use
"mate ." in Bash).
If we are editing a file do.rb and now we want another one to try a
different approach, and we "Save As" do1.rb, now the file do1.rb will show
in the file panel, but do.rb will not show until a long time later, somehow,
after TextMate refresh the folder content... (seems there is no easy way to
invoke that ourselves).
But if we edit do.rb and save as do1.rb, the assumption should be that now
both files exist?
--
View this message in context: http://textmate.1073791.n5.nabble.com/After-Save-As-the-old-file-won-t-show…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
how can I set mediawiki to be the default file type/scope? I have the
following setings in .tm_properties but it doesn't seem to work. Thanks!
[ *.txt ]
fileType = "source.mediawiki"
[ attr.untitled ]
fileType = 'source.mediawiki'
Hi,
I was wondering if someone would have already written a valid
configuration to "fix" TM2 so that it does not mess up source code and
comment indentation (C, C++) when Doxygen-style comments are used to
comment the code, i.e.
/**
* Some doc
* @param[in] …
*/
void foo(void)…
results in:
/**
* Some doc
* @param[in] …
*/
void foo(void)…
Alternatively, is there an easy way to tell TM2 not to re-indent a
line automatically, ie. let TM2 to indent a new line once, while
preventing it from re-indenting forever whenever a new character is
typed on an already-fixed line.
Thanks,
Manu
Just wondering what the thinking is for not selecting that file in the
file browser when you click on it's icon (thus opening it). Seems
confusing to me to then have to select that file to e.g. SCM purposes.
I'm stuck on Version 2.0 (9147) at work so please ignore if this is
differnt in later builds.
Thanks
Alex
--
-------------------------
http://zero-dev.co.uk
alex(a)zero-design.info
mob. +44 (0) 785 216 7005
Hello, I have a quick question. lately when I press the [DELETE] key
Textmate replaces my code with some other code, but my [DELETE] key works
when I click [SHIFT]+[DELETE]. How can I get my [DELETE] key functionality
back to normal.
The code it adds:
// Android / BlackBerry Widgets (OS 5.0 and higher) / iPhone
//
function alertDismissed() {
// do something
}
navigator.notification.alert(
'You are the winner!', // message
alertDismissed, // callback
'Game Over', // title
'Done' // buttonName
);
// BlackBerry (OS 4.6) / webOS
//
navigator.notification.alert('You are the winner!');
note: I had asked the question on the IRC, but my client crashed and I can't
get it to login. Software issue on my end
--
View this message in context: http://textmate.1073791.n5.nabble.com/Delete-key-adding-code-instead-of-del…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
What's the easiest way to change the order items in a bundle menu, or to
move items to a submenu in TextMate 2?
Drag & Drop does not work in the Bundle Editor on TextMate 2, like it
used to work in TextMate 1. :(
I currently edit the order by manually editing the info.plist, adding or
removing the UUID of the command I want to move.
This is labour intensive task, and I wonder if there is an easier way.
FYI, I'm using TextMate 2.0.0-alpha.9325 on Mac OS X.7.5.
Regards,
Freek
I just got a notification within Textmate that a new build was available (9327), so let it update. When the new version launched, I got a second Textmate icon in the doc, which isn't entirely uncommon. However, when I quit and got back in, Textmate was not usable. When I opened a file from the Open Recent menu, no window appeared. The Window and File menus both suggested that a file was open, however. After some fiddling, switching spaces and apps, I got the window for the document to appear, but it was not functional. I could move it, but I could click the close box or edit the text. Quitting and relaunching put it back in the state where the Textmate menus looked as if a window was open, but no window appered on the screen.
I tried trashing all the com.macromates items in ~/Library/Preferences, but it had no effect. I tried trashing Textmate.app and downloading r9327 from Github, but that also had no effect on the problem. I finally downloaded r9325 from Github and that still works fine.
I am running OS X 10.7.5.
Thanks,
Rob
Hi LaTeX users,
I'm working some more on the Typeset and View command, we are going to replace the default command that currently ships with TextMate. But I need some information. What process are TextMate's LaTeX users following for building their documents? I'm sure most of you are using bibtex, but what about other things like makeindex? Has everyone moved to a pure pdf-based process, or are some of you still using dvi/postscript? What are you using for pictures? Anything you can tell me will help.
I would also *love* example documents along with the expected output. This will aid in testing, and ensure that your particular process will be supported!
Thanks,
—Alex
Are the r-tags in github 'release'-worthy in terms of recommended-to-use?
I was wondering, because my TM2 is on r9309, while the github repo is
already several revisions further, but my TM2 doesn't want to update:
''
TextMate 9307 is the latest version available—you have 9309.
"
Best regards,
Michael
Riki,
Perhaps I can elaborate on Elia's behalf:
1. If you want to abide by TextMate conventions, don't pop up a tooltip; edit the Fortran grammar so that keywords are given a scope that begins with `invalid.illegal`. Most themes apply a style to `invalid.illegal` that makes it stand out as an error, and many bundles have rules to mark things that are known to be invalid or cause syntax errors. (For example: in the HTML grammar, the sequence `<>` is scoped as `invalid.illegal.incomplete.html` because it isn't valid HTML.)
In order to add this rule, you will need to know a little about language grammars [1]. In particular, read about the `begin, end` keys in section 12.3. A begin/end pattern is the best way to create patterns that apply only in certain places, rather than document-wide. Unfortunately, I don't know anything about Fortran, so I can't give you further guidance on how the rule would look.
If you still want to show a tooltip, you could try the approach I explain below. But I wouldn't recommend it.
2. There's no simple way to do this in TextMate 2.
You could write a command like this [2]. This would activate whenever a user typed a keyword, then pressed the space bar. It would replace the input with an uppercase version, then insert the space key as the user expects.
But this would only work in that specific instance. If Fortran does not mandate that a keyword must follow a space (as in C-style syntax, where both `if {` and `if{` are valid), then you'd have to figure out which other characters can follow identifiers, and then give each one its own command. Even so, this wouldn't work on code that is pasted into the editor.
Better to take Elia's advice and create a command that does the transformation when the document is saved. Here's an example of how to create such a command [3].
(Unfortunately, in your case, this would involve parsing the Fortran code so that you could be sure that you were uppercasing only keywords and nothing else.)
Cheers,
Andrew
[1] http://manual.macromates.com/en/language_grammars#language_grammars
[2] https://gist.github.com/0d6ce8625cf371f22734
[3] http://reinteractive.net/posts/4-stripping-whitespace-out-of-textmate-2
On Dec 7, 2012, at 7:42 AM, riki wrote:
> Dear Elia,
>
> Thank you very much for your kind response.
>
> BTW I am not expert in TextMate grammar. So could you please elaborate your suggestions?
>
> Kind Regards,
> Riki
>
>
> On Fri, 07 Dec 2012 15:04:26 +0530 wrote
> >1) yes, you can setup the language grammar to catch and highlight those keywords in a given scope (e.g. data decl)2) I
> don't think you can do that while you type, but probably you can create a command that does the transformation on
> demand (or hook it to the saving)
>
> Elia
> ☁ @elia ✎ elia(a)schito.me
>
> ☎ (+39) 348/9051393
>
>
>
> On Thu, Nov 29, 2012 at 1:37 PM, riki wrote:
>
>
> Hi all,
>
>
>
> How to accomplish the following things within TextMate 2 for Fortran language:
>
>
>
> 1) Is it possible to appear warning in a tool tip if we type Fortran keywords in data declarations? I am asking because if
>
> somehow or by mistake we are using those ones as variables and we know that Fortran does not complain about it.
>
>
>
> 2) The second thing is related to code formatting. Suppose we are writing a program in lower case letters and whenever we
>
> type any Fortran keyword we wish that it always came in upper case letters. Is there any way to do it?
>
>
>
> Kind Regards,
>
> Riki
>
>
>
> Catch India as it happens with the Rediff News App. To download it for FREE, click here
>
>
>
>
> _______________________________________________
>
> textmate mailing list
>
> textmate(a)lists.macromates.com
>
> http://lists.macromates.com/listinfo/textmate
>
>
>
>
> _______________________________________________
>
> textmate mailing list
>
> textmate(a)lists.macromates.com
>
> http://lists.macromates.com/listinfo/textmate
>
> Follow Rediff Deal ho jaye! to get exciting offers in your city everyday.
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
Hello everyone,
I have a text file that is indented properly, but instead of tabs, the indentation has been done with spaces. Is it possible to replace the spaces with tabs only at the beginning of the line?
In this case, 1 space -> 1 tab.
Thanks!
Anthony
Hi all,
How to accomplish the following things within TextMate 2 for Fortran language:
1) Is it possible to appear warning in a tool tip if we type Fortran keywords in data declarations? I am asking because if
somehow or by mistake we are using those ones as variables and we know that Fortran does not complain about it.
2) The second thing is related to code formatting. Suppose we are writing a program in lower case letters and whenever we
type any Fortran keyword we wish that it always came in upper case letters. Is there any way to do it?
Kind Regards,
Riki
I can switch from Japanese text input to Roman letter input just fine using the keyboard shortcut Shift-Control-; . It doesn't seem to be possible, however, to switch back to Japanese input using the usual keyboard shortcut, Shift-Control-J. This works in all other programs. Mousing to the menu bar and switching manually does work.
Using the TM 2.0.0-alpha.9323
Hi,
I'm sure this will sound like a very simple question, but I am trying to
save a macro using Textmate2. I can record it, I can run it immediately,
but there is no macro submenu with saving options. As I say, I guess I am
being stupid, but where can I go to save it?
Thanks
Dom Guinness
How about add a 'Go to bookmark' popup window just like the 'Go to Symbol'
window, and can navigate bookmarks of current window and current project.
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
Hi,
I was wondering whether it would be possible to include some more info when
latex complains about errors. The main point is that the line number that
latex gives you (and what is displayed in the Textmate error window) can
sometimes be way off, especially when you have a lot of code and the error
is many lines above this line.
For example, if I compile the following beamer document
-----
\documentclass{beamer}
\begin{document}
\begin{frame}
a
b
c
\unknown
d
e
\end{frame}
\end{document}
-----
then Textmate tells me
-----
Latex Error: ./test.tex:17 Undefined control sequence.
-----
which corresponds to "\end{frame} ". The error is obviously in line 12
because of the unkown command \unknown.
It is not hard to see that when you have a lot of complicated math,
tracking down a single typo can sometimes be very painful...
I realize that getting the exact line number for such an error is
difficult, but since the latex log already indicates that \unknown is
unknown,
-----
...
./test.tex:17: Undefined control sequence.
\beamer@doifinframe ...par b \par c \par \unknown
\par d \par e \end
{beamer...
l.17 \end{frame}
-----
it would make life a lot easier if this is visible in the log window of
Textmate too.
So, would it be possible to include, for example, these last two lines in
the Textmate error window too?
Hi All,
Just a quick report in hopes of helping someone else facing this problem:
Textmate binds Cmd-Opt-Ctrl DownArrow to scrollLineDown. I use this keystroke and it's counterpart for scrollLineUp frequently.
After upgrading from Snow Leopard to Mountain Lion I started getting a system alert sound (beep, pop, funk, as set in System Prefs) when using this keystroke and no scrollLineDown action in TextMate.
Long story short is that Xcode 4 eats that keystroke even when it's not running.
Fix is to open XCode, open Preferences > Key Bindings, and set the key binding for 'Jump to Previous Counterpart' to something other than Ctrl-Cmd DownArrow. This causes the inferred key binding for 'Jump to Previous Counterpart in Assistant Editor' to change from Cmd-Opt-Ctrl DownArrow to Opt NewKeystroke.
For example, setting 'Jump to Previous Counterpart' to 'F19' causes 'Jump to Previous Counterpart in Assistant Editor' to change from Cmd-Opt-Ctrl DownArrow to Opt F19.
I needed to reboot before it took effect, but that ended up doing the trick :)
Might also work in Lion, I'm not sure what version of Xcode that shipped with.
Hope that's a help to someone in future :)
Best,
Steve
In brief, does anyone know the font that's used for the Markdown Bundle's Preview window?
And the different (serif'd) font used to print the preview? Can it be changed?
tia, DW
Hi,
The MediaWiki bundle in TextMate 2 has a feature that when I type:
Line1
Line2
It automatically reindents to:
Line1
Line2
Despite that I explicitly typed the two spaces.
I find this rather annoying. I'm trying to turn this feature off.
The only thing about indentation I can find is in the bundle, Settings:
Folding:
foldingIndentedBlockStart = '^=+\s+';
foldingIndentedBlockIgnore = '^(?!=+\s+)';
But even when I remove these lines, the feature is still there. Anyone
has an idea what may cause this behaviour and turn it off?
I'm also fine with any option that turns off auto-indenting off
globally, like there was in the Preferences for TextMate 1 (I usually
find it more annoying than useful).
Thanks,
Freek
First I created a plain-text doc with some Markdown "markup"; my default font is Monaco. Then I used Bundles > Markdown > Preview, and got a very nice window created with some unkown (to me) sans-serif font. I used cmd-P to print this, and was surprised to find the printout used some strange (to me) serif'd font. Same of course if I opted to print to pdf.
So as an experiment I tried adding my own <style> ... </style> containing Verdana to the doc. Unsurprisingly the html was ignored by Markdown > Preview, still had the nice ss font in that window, and print still used the strange serif'd font. No surprises there really.
Next, I could get the html handled by using Bundles > HTML > Open Doc in Running Browser(s). No surprises there.
Finally I tried altering Preferences > Fonts & Colors. This affected the source doc of course, but again made no difference to Markdown Preview or to Print.
So what are the mysterious fonts used by Markdown Preview and Print? I'd like to know what the "nice" sans-serif font used by Preview is, the only clue I can offer is that a capital M has sloping sides.
But above all, what is this mysterious serif'd font used when I print the Preview window, and can I replace it?
David Whitford
On 05.11.2012, at 21:00, textmate-request(a)lists.macromates.com wrote:
> Bottom line: I enjoy much faster TeXing when adding the apparently superfluous extra-line at the beginning. For principal reasons I would like to get rid of this extra line, and understand what is going on.
This is a bundle problem, if I pdflatex your example (the TeXLive 2011 version), it compiles correctly.
I usually separate my documentclass from the packages I frequently load as they are usually the same while the documentclass depends on the specific document. E. g. I would sometimes use scrbook instead of scrartcl or the cls file from the journal I intend to publish in. Furthermore, I am loading my standard packages as a package (change the file extension from .tex to .sty and load your standard packages via \usepackage{file}). The advantage is that you can modularize your standard includes file further, e. g. you can load hyphenations.tex via that .sty file while this is not possible if you use \input (\input does not allow nested uses of \input).
> A final remark: Is there a way to adjust some preferences of the speedier LaTeX bundle? For instance: I would like to have the typesetting window not to be kept open (very annoying); I would like not to have activated the reading bar in Skim.
What do you mean by »reading bar« in Skim?
Max
Dear Hans,
I have a hard time following your explanation, especially of the word »bundle«, because I'm not certain whether that refers to LaTeX packages or one of TextMate's LaTeX bundles. The initial problem you describe has *nothing* to do with TextMate: it appears your file was saved in the wrong encoding (not applemac), so latex cannot decipher non-ASCII characters such as umlaute or accented characters. By default, TextMate and pretty much all other editors use UTF8, hence my advice to *change* the argument for when you load the inputenc LaTeX package to UTF8:
\usepackage[utf8]{inputenc}
If you comment out this usepackage command, pdflatex will not be able to correctly render non-ASCII characters (e. g. ä, ö and ü).
Unfortunately the problem with the example code you've included is that it cannot be used to detect problems with file encodings. But the mail you've sent indicates that it's just a file encoding problem that's easy to solve (e. g. the umlaut for »für« was not copied correctly from your text editor). I think what you've been missing is Step 2 below.
I recommend you the following:
(0) Open the problematic .tex file in TextMate
(1) Change \usepackage[applemac]{inputenc} to \usepackage[utf8]{inputenc}.
(2) Select Save As from the File menu and make sure that UTF8 as file encoding is selected. Then proceed to save the file as text.tex someplace else. This way any experiment with LaTeX will not destroy work.
(3) Try to compile the document.
Note that if you load other LaTeX files via \include{filename.tex} or \input{filename.tex}, check that the other files are also all saved in the correct encoding, UTF8!
If it doesn't work out, please include the content of test.log (in general: [document name].log) in your next post.
Max
On 28.10.2012, at 21:00, textmate-request(a)lists.macromates.com wrote:
> When trying to typeset a letter, where my preamble looks different and has the following line in it:
>
> \usepackage[applemac]{inputenc}
>
> the typesetting window will claim a problem with respect to this line:
>
> "inputenc.sty:40: [...]"
>
> When I comment out the \usepackage-line in the source, typesetting proceeds successfully (and VERY fast), though all special characters get omitted (to be able to use German umlaute like ?, etc is what the inputenc package should provide for).
I suspect your file has been saved as UTF8 (which you should use if at all possible anyway). So change the inputenc argument to
\usepackage[utf8]{inputenc}
and recompile. In my experience, UTF8 works best, but if you have cross-platform collaborators, you may need to work in latin1. I would strongly discourage you from using applemac encoding this day and age.
Max
Hi,
I will appreciate tremendously if you help me with my problem.
I built Textmate 2 in my Mac (OSX 10.8.2). I have TeX Distribution
TeXLive-2012 installed. When I try to compile a LaTeX file I get the
following error:
Failure running “Typeset & View (PDF)”.
Typeset & View (PDF):4: undefined method `+' for nil:NilClass
(NoMethodError)
Do you have any suggestions?
Best,
Bogac
--
View this message in context: http://textmate.1073791.n5.nabble.com/Textmate-2-LaTeX-tp25947.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
This is probably an easy question. I'm using Mads Hartmann Jensen
whitespace bundle (git clone
https://github.com/mads379/Whitespace.tmbundle.git) that "adds the
scopes invalid.illegal.whitespace.trailing to all trailing whitespace
and invalid.illegal.whitespace.mixed to all occurrences of mixed
spaces/tabs". This shows up fine in some themes (all the core themes
work) but not some other themes, specifically solarized (light). How
would I add a background colour to solarized to reflect that? I tried a
couple of things but not got it to work. Any pointers gratefully
received.
Thanks
Alex
--
-------------------------
http://zero-dev.co.uk
alex(a)zero-design.info
mob. +44 (0) 785 216 7005
Hi,
as you sure now there a couple of (forked) LaTeX bundles providing speedier TeXing than TM’s standard (bundled?) LaTeX bundle.
Alex Ross (lasersox)’ bundle was first, now there are Adam Strzelecki (nanoant)’s, as well as Paul Hagstrom’s. You can find them, respectively, here:
https://github.com/lasersox/latex.tmbundlehttps://github.com/nanoant/LaTeX.tmbundlehttps://github.com/paulhagstrom/LaTeX.tmbundle
Now, while they seem indeed to be significantly faster than the standard LaTeX bundle, with all three of them I run into the following (presumably very same) problems:
When there is a line with an \input command in the tex-file, like:
"\input{praewide_TM}"
there shows up in the typesetting window an (apparently) error. The error message is not very verbose, just a line noting:
"praewide_TM.tex:1: \documentclass[a4paper]{".
("praewide_TM.tex" is the name of my preamble-file, which is supposed to get linked in; praewide_TM.tex contains, among other things, the line "\documentclass[a4paper]...". This works with TM’s LaTeX standard bundle as expected. It also works with TeXShop, for instance.)
I take it to be an error message (it nowhere says "error", or something to that effect), but if some such line shows up in the typesetting window, then there is no pdf output produced. If I manage to get rid of any of these lines noting some input, then tex’ing succeeds and a pdf output is indeed produced.
When trying to typeset a letter, where my preamble looks different and has the following line in it:
\usepackage[applemac]{inputenc}
the typesetting window will claim a problem with respect to this line:
"inputenc.sty:40: [...]"
When I comment out the \usepackage-line in the source, typesetting proceeds successfully (and VERY fast), though all special characters get omitted (to be able to use German umlaute like ä, etc is what the inputenc package should provide for).
So, is there a problem with the speedier LaTeX bundles as regards the preamble’s structure or content of the files to be tex’ed?
Sorry, I cannot really analyze or actually make sense of this behaviour, so I was hoping for some enlightment through the mailing-list.
Thanks for any hints about how to tackle this. I really would love to use the speedier bundles.
Best,
--Hans
Hi!
I had the same problem as described in a post from Sebastian on
2007-11-11 (http://thread.gmane.org/gmane.editors.textmate.general/
23160).
Here is my error output:
Running bibtex on Exjobb (ny).tex
Traceback (most recent call last): File "/Users/peeter/Peeterprogram/
TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/
texMate.py", line 457, in texStatus, isFatal, numErrs, numWarns =
run_bibtex(texfile=fileName) File "/Users/peeter/Peeterprogram/
TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/
texMate.py", line 71, in run_bibtex return stat,fatal,err,warn
UnboundLocalError: local variable 'stat' referenced before assignment
It seems that it had to do with the parentheses in my filename messing
up the regexes.
My solution was to change lines 71 and 72 in Textmate.app/Contents/
SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py as follows:
# auxfiles = [f for f in os.listdir('.') if re.search('.aux
$',f) > 0]
# auxfiles = [f for f in auxfiles if re.match(r'('+ basename +
r'\.aux|bu\d+\.aux)',f)]
auxfiles = [f for f in os.listdir('.') if re.search('.aux$',f)
> 0 and (f.startswith(basename) or re.match(r'bu\d+\.aux', f))]
This works, at least for me.
Or have I messed something else up in the process?
/Peeter
I installed TextMate2 from a binary package (TextMate_r9294_10.6.tbz) and when I try to add a theme or bundle, or update runs, I get the following error(s)
Anybody knows how to fix that?
10/25/2012 25 Oct 17:21:08 [0x0-0xa74a74].com.macromates.TextMate.preview[35330] *** error downloading ‘http://updates.textmate.org/Bundles/Bundle%20Development.tbz’: Unknown signee: ‘org.textmate.msheets’.
10/25/2012 25 Oct 17:21:10 [0x0-0xa74a74].com.macromates.TextMate.preview[35330] *** error reading key
10/25/2012 25 Oct 17:21:10 [0x0-0xa74a74].com.macromates.TextMate.preview[35330] *** error downloading ‘http://updates.textmate.org/Bundles/Bundle%20Support.tbz’: Unknown signee: ‘org.textmate.msheets’.
10/25/2012 25 Oct 17:21:11 [0x0-0xa74a74].com.macromates.TextMate.preview[35330] *** error reading key
10/25/2012 25 Oct 17:21:11 [0x0-0xa74a74].com.macromates.TextMate.preview[35330] *** error downloading ‘http://updates.textmate.org/Bundles/Hyperlink%20Helper.tbz’: Unknown signee: ‘org.textmate.msheets’.
--
Jan Hendrik Mangold
"idle hands are the developers workshop"
Bug: Doesn't work as documented.
Feature: Works as expected but not documented to do so.
Miracle: Works as documented.
This will be a very stupid question, sorry, but what key combination is
the one that for the source package 'continues the line comment'? I
have never seen it anywhere else, so I don't know what to press. ;)
It looks a bit like the symbol for pressing the Control key, but with a
dash as a roof.
Thanks for your help,
Michael
Have used the JewelryBox ruby gem to set up rvm and download, manage Ruby
1.9.3
Then went into TextMate prefs to set up shell variable and path to Ruby
1.9.3 at /usr/local/rvm/bin/textmate_ruby then added "puts RUBY_VERSION" at
top of file.
But when I run the file, the output is 1.8.7, which is the system version
of Ruby.
Any idea how to fix this situation?
Thank you.
Hello,
I have a latex file that uses mint and pygments and I wish to textmate to
build it with the -shell-escape flag.
Is that straightforward? I've looked at editing the latex bundle, but it
doesn't seem as straightforward as running a command?
Thanks,
Ian
sure, this is the common behaviour but then this statement does not make
any sense,
or more there seems to be a special handling for this case..
TM_LATEX_MASTER = '${CWD}/document.tex'
or am i missing something ?
best
david
Hello,
recently I've been trying different things with project-related
tm_properties files. To help me better understand what I'm doing, could
anybody please explain the background behind different kinds of quotation
marks like " or ' ?
For example it took me some time to figure out that while
projectDirectory = "$CWD"
uses " marks, setting of a variable afterwards
TM_LATEX_MASTER = '${CWD}/document.tex'
will only work properly if ' is used (at least it didn't work for me with "
when doing the LaTeX run from subdirectories).
What is the technical difference between those " and ' ?
Thanks,
d'Alembert
--
View this message in context: http://textmate.1073791.n5.nabble.com/tm-properties-Question-tp25916.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
When coding in Ruby in TM1, if I typed @string somewhere, when I
needed string or :string somewhere else, I could type str and use Esc
to complete the word. In TM2 I cannot, and to me this is a big
regression.
Can I revert this behavior? If so, how? Also, if it is standard for
other languages, can I revert the behavior globally?
Thanks in advance.
--
:: dip
--
I need a bit of help.
I'm trying to use Textmate's blogging bundle to streaming posting to a wordpress blog. I've read Brett Terpstra's blog on the topic, and I'm trying to use his approach. But I'm encountering problems.
(1) Images won't display in the WP post. I must upload them by hand to the Media folder, and code the path to the image by hand.
(2) Code blocks don't render correctly. Instead of rending in a 'verbatim' style, they render in a way that ignores line breaks.
I'm not doing anything fancy with my markdown. But I have little experience with WP. (I can't, for example, find the wp-contents folder to see if I can change the write permissions.)
Of course, I've googled to see if this is a common problem, but I can't find any fixes.
I would be very thankful if anyone could point me to material, share their experience, or otherwise help point me in a direction that allows me to continue to use Textmate's blogging bundle to post info to my WP-site.
Thanks in advance for whatever people can share.
Jason
================================================================
Jason E. Miller, Ph.D.
http://about.me/jasonemiller
660-785-7430 (work)
660-965-0259 (mobile)
We learn to write by reading and then by writing and by thinking about what we are doing.
-- Richard Marius
I asked this in another thread, and was pointed to a partial answer,
but will give it another go more clearly.
Is there anywhere (webpage, wiki page, source code) that clearly lists
the available scopes that are treated as the assumptive default basis?
There is the old page at:
http://manual.macromates.com/en/scope_selectors but it appears to be
out of date, and it doesn't describe the new events (triggers?) such
as callback.*
In addition, I know that bundles can define their own such selectors,
which brings me to my next question/request:
Is it possible to have TM2 report the currently available scopes? We
have the ability to report the stack of scopes under the current
cursor/selection(Ctrl-Shit-Cmd-P), but I'd like to see all the
available scopes registered. (Perhaps limit it to the current
document type/active language bundle.)
Right now I have many bundle ideas, but no idea what is possible to
work with, what would need to be extended in TM2 itself, etc. Knowing
the lay of the land would go a long ways towards forming a mental
model of how to approach various tasks.
I'm hitting Command+/ to toggle code comments on and off, but it always
defaults to block comments (/* ... */). Is there a way to default Command+/
to line comments (// ...), or can I press another hotkey to do this?
Cheers,
Andrew Pennebaker
www.yellosoft.us
Hi,
I have a little feature request I would like to discuss about. I think I remember from a previous discussion that Allan prefers to have those kind of discussions on the mailing list rather than on github, so here I go.
One of the few things I appreciate when using such monstrosities as Eclipse is the support for local history. Of course, there is version control to achieve something similar, but sometimes, local history is just better (for example, the fact that it automatically records edit history, instead of relying on explicitly committing a change; and sometimes, it's just bad practice to commit tiny changes to a repository).
Of course, implementing such a thing for Textmate is a vast task. However, there is one use case that seems to cover most of my uses of local history in Eclipse and alike, which is the ability to easily revert to a clean state when I want to try something. I can imagine that this can be easily obtained in Textmate by having commands such as "set bookmark in undo history" and "undo to last bookmark in undo history". My workflow would be simply to set an undo history bookmark before I want to try a few risky changes, then easily revert those changes just by calling the undo to bookmark command. This would give me a simple way to avoid repetitive calls to undo, which can be tedious and risky (since it's not always obvious to see what you're undoing and there is the risk of undoing some steps too far).
Any thoughts?
enas
Hello, I would like to create a command that in part pastes the contents of the clipboard, using TextMate 2. How would one access the contents of the clipboard in a command? I am using Ruby, but I am open to whatever works.
Thanks in advance,
steven
Hi,
Is it me or did the "Go to Last Edit ⌥⌘J" command disappear in one of the last builds (only notice it now, but it was definitely there in the first alpha builds)?
If yes, any reason for that? Will it reappear?
Thanks!
enas
In TM2's "Go To File" dialog, there are three tabs across the top
containing the project directory, current dir, open files.
Is there a way to select these via a keyboard shortcut?
Thanks.
I'd like to bring the current behaviour of the file tabs to discussion, as the corresponding issue on github has been closed.
My problem is that switching between files with cmd-T or clicking on files in the file browser reorders the tabs, moving the current file's tab to the right of the old file's tab.
This behaviour is, so I'm told, to make sure that closing the open file will result in going back to the previous file.
How is it then that changing files by clicking on the tab does not change the order?
To me it seems this behaviour is quite odd, and it's not standard UI (or is there another app that moves tabs around like this?).
In my mind, tabs also serve the purpose of organising, and people may want to have tabs in a logical order (e.g. chapters in a LaTeX project). The fact that tabs can be manually dragged around suggests that this is something the user can set and which should not be changed by the program.
In order to keep the intended function of returning to the previous file when the current one is closed, why not simply keep a history list of tabs per window?
Jonas
Is there an easy way to open Bundle Support files and/or directories directly from the Bundle Editor window? I can browse the file tree but can't seem to easily access any of the files.
A workaround like Option+Click on a directory (in Support folders in Bundle Editor) to open a new TextMate window with that folder in the file browser would be perfect. Any such thing possible?
Thanks :)
--
Brandon Fryslie
I love the Markdown folding in TextMate 2.
Just one thing: at the moment, headings, sub-headings, sub-sub-headings, are
not nested in their folding.
It would be great if folding, say, a Level 1 heading (#) also folded all of
its sub-headings (##), sub-sub- headings (###), etc. under that heading. It
woudl be nice if the folding structure mirrored the (nested) structure of
headings of the document.
Would it be possible to implement this in TextMate 2’s Markdown, and is it at
all on the horizon?
hello,
i have an issue to get command help via ctrl + h in php scope. in textmate (version 1.5) I get an http view about the selected command. in version 2 I get the following message "Nothing to lookup(hint: place the caret over a function name)"
With the PHP_MANUAL_LOCATION variable I try'd to fix this with an local copy of the php.net help, but this don't work neither.
Have someone a fix or a hint for this?
greetings Björn
Hello guys.
I have a problem with TM2 + Avian Missing. I can't create new files using
'new file' option in my context menu.
I already tried uninstall and reinstall TM2, remove and clone again Avian
Missing, but no works.
The error is:
/Users/username/Library/Application Support/TextMate/Managed/Bundles/Bundle
Support.tmbundle/Support/shared/lib/tm/detach.rb:3: undefined method `+'
for nil:NilClass (NoMethodError)
from New File:5:in `require'
from New File:5
*
Brunno dos Santos*
Desenvolvedor Web
@squiter <http://twitter.com/squiter> | facebook.com/squiter
Fone: 11 - 7666-4358
Skype: brunno.dos.santos
abstraindo.com <http://www.abstraindo.com> | Mangá no
Mori<http://manganomori.com.br>| Quadrinhos
a Parmegiana <http://quadrinhosaparmegiana.com>
I usually have TextMate 2 output LaTeX to Skim, but today, suddenly, LaTeX output appears in a split pane in the editor window. I've looked in the bundle preferences, where Viewing is still set to Skim and both "Show PDF automatically" and "Keep log window open" are checked.
This occurred in TM2 9307.
Downloading a nightly build has solved the problem, but I thought someone would like to know.
I'd like to bring SVN and file pane behaviour up again.
I've been using both extensively, and run into this situation frequently: Working in file A, press cmd-Y, 5 to commit, realise after hitting commit that in fact file B was selected in file viewer and the wrong file with the wrong commit message was committed.
As for the heuristics which file to apply cmd-Y to:
1) If the file browser has focus, take its selection, if the editor has focus, take that.
2) In the commit window, show all uncommitted changes in (the parent folder of the file browser or root of working copy, whichever is lower) and below, but only select the items from 1)
Would that cause any side-effects?
If we cannot agree on how this should behave, can the precedence behaviour of file viewer be somehow customized?
Best,
Jonas
I use Quickcursor (http://www.hogbaysoftware.com/products/quickcursor) and I was able to use it with TM2 until a short time ago (sometimes last week) by adding com.macromates.TextMate.preview to the Custom Bundle ID. However with version 9313 of TextMate the interaction is broken. Now, Quickcursor still launches TextMate, but as far as I can see TextMate starts with a new (untitled and empty) document and it does not communicate back with Quickcursor, when you close the document, it asks to save it as a new file.
All the best
Guido
I have TM_RUBY specified to point to rvm's textmate_ruby. When opening TextMate using 'mate .' it subsequently uses the system ruby, but not the system gemset, and bundle commands start to fail because of incompatabilities.
When opening TextMate directly, or it is already open when I use mate, all is well.
Where the actual problem lies is difficult to tell, and I don't need a solution now I've worked out how to avoid it, but did figure that it'd be helpful to mention.
Cheers,
Simon
Just downloaded and installed TextMate 2 alpha today, v9313.
I have a question, It doesn't seem that if I have the File Browser tab open (I've defaulted to left side), that I can right click in that window to create a new file. I've created a new file, but I then have to navigate down to the directory hierarchy that's displayed in the File Browser tab to save the file. As soon as I do, the File Browser tab displays the file, etc. At this point, right clicking on the File Browser tab seems to bring up a "standard" OSX Finder menu, and all I see there is a "New Folder", but not a "New File".
I've seen some videos of the previous version of TextMate, and it allowed creating new files, adding files, etc. by right clicking in the File Browser tab. Is this functionality removed? Or did I miss something in the config, or ????
On 21.09.2012, at 17:02, Brandon Fryslie <brandon(a)fryslie.com> wrote:
> Dude, we used TM1.
My post was in reply to Randall Hand who has just discovered TextMate and started this discussion on the mailing list. He probably doesn't know the history of TextMate 2. I'm sorry if that wasn't clear.
> Some things are different in TM2, on the vast whole, everything is improved, restructured, cleaned up, and much more powerful.
I haven't really noticed any game changers *for me* in TextMate 2, but that's not supposed to be a complaint.
> Sorry some of the features don't comply with your vague, nebulous specifications.
I don't think there is anything »nebulous« or »vague« about missing TM1-style projects or wanting to have a functional bundle editor. While the latter is a matter of time, the former is a design decision made prior to open sourcing TextMate 2.
> Textmate 2 is open source now, I can't really see how you can complain like you are whatsoever.
There is no reason for ad hominem attacks and acerbic attitude. Where else other than this mailing list should we exchange opinions on how to make TextMate 2 better? After all, the reason we are here is because we like TextMate and we care that eventually we will have 2.0 final on our SSDs (hopefully before I get tenure, though ;-)).
Max
On 21.09.2012, at 06:44, Travis Dunn <tdunn13(a)gmail.com> wrote:
> I don't think there's anything personal intended here by anyone, but I also think calling someone's work a "huge disappointment" is rather harsh, and will be taken personal if intended that way or not. Also, generally i just disagree with the approach of "I dont want to switch to another editor but if X isn't implemented/fixed, i'll have to", if you need to switch to something that works better for you, go for it. A single editor is never going to be everything to everyone.
I think the disappointment is hard to understand for people who haven't used TM1's projects. You could manage files with TM1 in two ways: either you could either create a project or you could open them as a directory (e. g. by typing »mate .« in the Terminal), and to some people, that was *the* feature that got them sold on TM1. So you can expect that a removal of one of the most important features is going to create an equally large reaction. I was using both modes, most of my stuff was organized in projects, some other things were done in the file browser, and it was *the* feature that got me hooked on TextMate.
The problem with TextMate 1 (for me, at least) is that it has become »creaky« because it hasn't been updated for a very long time in a substantial way (can't quite pin point the time, but feels like 10.4~10.5 time frame, please correct me if I'm wrong). On 10.4, Textmate was the posterboy of a rock solid app, but in 10.6 or so, you could tell that not all of its gears meshed well with OS X new shiny internals (I remember problems with the built-in dictionary, for instance).
What is interesting, though, is that even after all of these years, nobody has really made a better TextMate 1. I've tried the usual suspects, Chocolat, Sublime Text 2, BBEdit, you name them, but they're usually not any better than what we have with TextMate 2 (Chocolat is still 1.0ish and does not have good support for LaTeX, for instance, and Sublime Text 2 does not really feel like a Mac app). TextMate's LaTeX bundle is still the gold standard for me, and it has some features I crucially rely upon (e. g. auto completion of labels and citations), so I won't switch unless another text editor has the same features.
The lead developer and owner of macromates, Allen Oodgard, has made it clear that it was a conscious decision of him to abandon projects in favor of a file-based management (+ .tm_properties). I don't know whether the periodic waves of discussions on the topic will or won't change his mind, but even if they do, there are probably other things on his list of priorities (e. g. a bundle editor in TextMate 2).
However, Project+ was an add-on developed by a third-party, so if TextMate 2 allows for similarly deep »customization«, perhaps this void will be filled by a third party. And now that TextMate 2 is open source, perhaps it can be contributed to the main source? One can dream ;-)
Max
Hello,
I'm having trouble syncing LaTeX in the direction TextMate --> Skim. Specifically, I'm (still) using this script: http://ebundles.googlecode.com/svn/trunk/Bundles/Latex.tmbundle/Commands/Fi…
and the following lines don't work for me:
if [[ "$V" == Skim ]]; then
SCRIPT="$(find_app Skim.app)/Contents/Resources/displayline"
if [[ -x "$SCRIPT" ]]; then
"$SCRIPT" &>/dev/console "$TM_LINE_NUMBER" "$PDF" "$TM_FILEPATH"
else
echo "Unable to locate $V."
fi
fi
I found a workaround which is to comment out and replace as follows
if [[ "$V" == Skim ]]; then
SCRIPT="$(find_app Skim.app)/Contents/Resources/displayline"
# if [[ -x "$SCRIPT" ]]; then
/Volumes/Home/Applications/Skim.app/Contents/SharedSupport/displayline &>/dev/console "$TM_LINE_NUMBER" "$PDF" "$TM_FILEPATH"
# else
# echo "Unable to locate $V."
# fi
fi
That said, I don't understand why I can't get it working in its original form, because find_app appears to work and displayline appears executable:
FZs-MacBook:bin fz$ pwd
/Volumes/Home/Applications/TextMate.app/Contents/SharedSupport/Support/bin
FZs-MacBook:bin fz$ ./find_app Skim.app
/Volumes/Home/Applications/Skim.appFZs-MacBook:bin fz$ ls -l /Volumes/Home/Applications/Skim.app/Contents/SharedSupport/displayline
-rwxr-xr-x@ 1 fz staff 1735 Mar 12 2012 /Volumes/Home/Applications/Skim.app/Contents/SharedSupport/displayline
FZs-MacBook:bin fz$
Can anyone suggest a better fix than my workaround?
Thanks in advance,
Francois
In the latest alpha, my dead keys (set up with Ukelele:
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ukelele)
produce a snippet completion dialogue and have therefore been rendered
unusable.
This is problematic because it means not only can the dead keys not be
used for their alternate purpose, but they can't even be used to insert
the unaltered character.
Best,
Garrett
Hi,
I am updating my website from XHTML to HTML5 along with changing some other
code elements - so there is probably 20-25 different types of code changes
needed in total. Is there a way of building 'all' the required changes into
TextMate and running it so that it changes the code it finds on a given web
page?
I have looked at the 'Find And Replace' tool and it would still be a very
manual process to go through the 200+ web pages individually. Is there a
faster way? Some kind of function?
Thanks
--
View this message in context: http://textmate.1073791.n5.nabble.com/Multiple-Find-And-Replace-Functions-t…
Sent from the textmate users mailing list archive at Nabble.com.
I've installed rmate on a remote server although I'm able to create a new
file on this server, when doing some modification on an existing file, they
aren't saved after the saving and closing on the TextMate side.
The server is running Xubuntu 12.04, ruby 1.9.3 has been installed using
rvm.
the remote file perms are :
-rwxrw-r-- 1 yt yt 455 sept. 6 16:59 menu.zsh
what i did :
$ ssh dell-par
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-30-generic x86_64)
* Documentation: https://help.ubuntu.com/
Last login: Fri Sep 7 09:18:50 2012 from
2a01:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:2559
Linux D620 3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC 2012
x86_64 x86_64 x86_64 GNU/Linux
14:49:17 up 5:38, 2 users, load average: 0.11, 0.29, 0.56
yt@D620 /home/yt $ rmate bin/menu.zsh
yt@D620 /home/yt $ cat bin/menu.zsh
#!/usr/bin/zsh
MENU_DIR=${HOME}/bin/scripts
MENU_ITEMS=(`ls ${MENU_DIR}`)
while (( 1 > 0 )) {
i=0
while (( i++ < ${#MENU_ITEMS} )) {
echo "${i} -> ${MENU_ITEMS[i]:r}"
}
echo "${i}|q -> quit"
echo -n "Entrez un nombre de 1 à ${i} (ou q pour quitter). : "
read NUM
if [[ ${NUM} -eq ${i} || ${NUM} == "q" ]]; then
echo "bye!"
exit 0
else
echo "Vous avez choisi '${MENU_ITEMS[${NUM}]:r}'."
${MENU_DIR}/${MENU_ITEMS[${NUM}]}
fi
}
exit $?
yt@D620 /home/yt $
my local ~/.ssh/config file :
$ cat ~/.ssh/config
Host dell-par
User yt
Hostname 2a01:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:a960
RemoteForward 52698 127.0.0.1:52698
Host dell-pal
User yt
Hostname 2a01:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:a960
RemoteForward 52698 127.0.0.1:52698
Host gericom
User yt
Hostname 2a01:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:a07b
RemoteForward 52698 127.0.0.1:52698
also i wonder if it is usefull to put "RemoteForward 52698 127.0.0.1:52698"
for each host.
best
--
Yvon
> -----Original Message-----
> From: textmate-bounces+s.j.holden=brighton.ac.uk(a)lists.macromates.com
> [mailto:textmate-
> bounces+s.j.holden=brighton.ac.uk(a)lists.macromates.com] On Behalf Of
> Allan Odgaard
> Sent: 18 September 2012 10:57
> To: TextMate users
> Subject: [TxMt] Re: Problem saving to NFS share from b9147
>
> On Sep 18, 2012, at 11:39 AM, Steve Holden <S.J.Holden(a)brighton.ac.uk>
> wrote:
>
> > [...] have found a critical bug for me in b9147 [...] set_attributes() failed:
> > Attribute not found.
>
> Afraid the bug is in NFS. If TextMate gets an error from any of the API
> involved during save, it will report that as an error (as it should) and treat the
> file as not saved.
> ...
> There is a 2.0 way to do the same [work-around]:
>
> defaults write com.macromates.TextMate.preview volumeSettings '{
> "/net/" = { extendedAttributes = 0; }; }'.
>
> This will disable them for all paths under /net/ - this setting should be
> moved to .tm_properties, but right now, the above should be a workaround.
Perfect! Thanks for the incredibly quick and helpful response, Alan - TM2 it is then :-)
Are you still considering whether to add a Donate button to the site?
Best wishes,
Steve
___________________________________________________________
This email has been scanned by MessageLabs' Email Security
System on behalf of the University of Brighton.
For more information see http://www.brighton.ac.uk/is/spam/
___________________________________________________________
In the 9309 release of TM2 the placement of the html output window is broken. The placement on the right does not work anymore.
The command
defaults write com.macromates.TextMate.preview htmlOutputPlacement right
does not work. I'm only able to change to a separate windows, i.e.,
defaults write com.macromates.TextMate.preview htmlOutputPlacement window
All the best
Guido
Hi, folks
I’m loving TM v2 – and would love to switch to it full-time, but have found a critical bug for me in b9147 which is making that awkward.
One of my projects is hosted on an old NFS v3 share (hosted on old Solaris 9 server) which is auto-mounted on my Mac Pro (running 10.6.8 – which I’m conscious is becoming deprecated with TM2; I’ll be upgrading to 10.8 soon). The file is owned by a different user, but the share is root-mountable from my workstation, so ‘sudo’ will allow me to update the file.
After making a change to a file, I press CMD-S, enter my credentials, and it prompts with:
The document “filename.pm” could not be saved.
set_attributes() failed: Attribute not found.
The file *is* updated on disk, but the red “close window” icon in the top-left of the window remains in its unsaved state, and TM thinks the file hasn’t been saved.
I’ve tried the TM1-style fix (though I’m not sure whether this still applies to TM2) before restarting TM2:
http://manual.macromates.com/en/saving_files#extended_attributes_metadata
but this doesn’t help.
Logged messages:
$ g textmate /var/log/system.log
Sep 18 10:07:06 [0x0-0x76a76a].com.macromates.TextMate.preview[34899]: TextMate: error unobserving fd 31: No such file or directory
Sep 18 10:07:06 [0x0-0x76a76a].com.macromates.TextMate.preview[34899]: TextMate: error unobserving fd 13: No such file or directory
Sep 18 10:07:07 SecurityAgent[46060]: com.macromates.textmate.openfile|2012-09-18 10:07:07 +0100
Sep 18 10:07:09 [0x0-0x76a76a].com.macromates.TextMate.preview[34899]: authorization (pid 34899): got âcom.macromates.textmate.openfileâ
Sep 18 10:07:09 com.macromates.auth_server[51179]: authorization (pid 51179): got âcom.macromates.textmate.openfileâ
I’m not expecting you to be able to replicate the problem (my condolences if you’re using NFS for anything ;-), but I thought I should report the problem in case it was helpful. Is there anything I could try which would help you troubleshoot this?
If there’s a local change I can make (a .tm_properties file option for the root of the shared folder, say), I’d be grateful for any advice…
(in the meantime, this is all the incentive I need to transition off our old NFS server to our git repo ;-) ).
Best wishes,
Steve
PS my NFS shares are mounted with these options (which usually help with Solaris NFS servers)
$ m /etc/nfs.conf
# Mount options to help ease problems with flaky NFS connections to Solaris 10 NFS (v4) shares
nfs.client.mount.options = vers=3,tcp,resvport,soft,intr,bg,locallocks,rdirplus,nosuid,nodev
___________________________________________________________
This email has been scanned by MessageLabs' Email Security
System on behalf of the University of Brighton.
For more information see http://www.brighton.ac.uk/is/spam/
___________________________________________________________
wondering if anyone can spot what is wrong with this textmate command for
corona sdk? It worked fine until I updated to the latest daily build of
Corona. I tried to change the path variable, but to no avail. Basically
nothing happens when I hit Command-R (whereas normally it would kick off
corona with my project file)
Hi Darren,
Just wondering if you're aware of any changes required to get the RUN
command to work on the latest build of corona? I've tried changing the path
but it still doesn't respond. I'm not quite sure how to get some logging
happening within a textmate bundle...
thanks
Greg
--------------
#!/bin/bash
if [[ ${#SKIN} < 1 ]] ; then
SKIN="iPhone"
fi
CORONA_SIM_PATH="/Applications/CoronaSDK/Corona\ Terminal"
#if [[ ${#SDK_PATH} > 0 ]] ; then
# CORONA_SIM_PATH=$SDK_PATH"/simulator"
#else
# CORONA_SIM_PATH="/Applications/CoronaSDK/Corona\ Terminal"
## CORONA_SIM_PATH="/Applications/CoronaSDK/simulator"
## CORONA_SIM_PATH="/Applications/CoronaSDK/Corona\ Simulator"
#fi
if [[ ${#TM_PROJECT_DIRECTORY} > 0 ]] ; then
TARGET_DIR=$TM_PROJECT_DIRECTORY
else
TARGET_DIR=$TM_DIRECTORY
fi
# In order for the simulator relaunch to work, "Enable access for assistive
devices" must be selected in System Preferences > Universal Access.
osascript <<- APPLESCRIPT
display dialog "I love the MacTipper Blog!"
on appIsRunning(appName)
tell application "System Events" to (name of processes) contains appName
end appIsRunning
on selectAppMenuItem(app_name, menu_name, menu_item)
try
-- bring the target application to the front
tell application app_name
activate
end tell
tell application "System Events"
tell process app_name
tell menu bar 1
tell menu bar item menu_name
tell menu menu_name
click menu item menu_item
end tell
end tell
end tell
end tell
end tell
return true
on error error_message
return false
end try
end selectAppMenuItem
if appIsRunning("Corona Simulator") then
selectAppMenuItem("Corona Simulator","File","Relaunch")
else
tell application "Terminal"
-- tell application "iTerm"
do script "$CORONA_SIM_PATH -project $TM_PROJECT_DIRECTORY -skin $SKIN"
end tell
end if
APPLESCRIPT
--------------
--
View this message in context: http://textmate.1073791.n5.nabble.com/what-is-wrong-with-this-command-code-…
Sent from the textmate users mailing list archive at Nabble.com.
How can one best debug a TextMate command within a bundle that is not working
properly? It has unix & apple script within it? e.g.
- is there a way to run at a console level?
- a way to include some log messages?
thanks
--
View this message in context: http://textmate.1073791.n5.nabble.com/how-do-I-debug-a-command-console-or-l…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
This is a bit odd; in the latest build (9309), the file browser is not showing anything other than my .gitignore file in a Haskell project.
Here's what my .tm_properties looks like:
TM_GIT = "/usr/bin/git"
exclude = "{*.{hi,p_o,o,pyc,gz,aux},Icon,CVS,_darcs,_MTN,\{arch\},blib,*~.nib,vendor,*.log,tmp,log,coverage,coverage.data}"
include = "{.tm_properties,.htaccess,.rvmrc,.gitignore}"
fontName = "Menlo Regular"
fontSize = 14
softWrap = true
softTabs = true
tabSize = 4
excludeDirectories = "build,dist,tmp,log"
PATH = "$PATH:/usr/texbin:/usr/local/go/bin"
[ text.tex ]
Now, if I remove the `exclude=` line, nothing changes. But if I explicitly add "*.hs" to the `include` entry, my Haskell source files show up.
Any ideas? It seems to me that the files to be excluded are somehow being loaded from another scope, which has some unreasonable defaults.
thanks,
Noah
Every mails from some persons break threading in Mail.app.
E.g. Allan's mails are always on their own (or on their own thread)
Probably a Mail.app problem (they're fine in gmail web), but I ask in case there is a fix.
Anyone seeing this?
This make reading the list a PITA.
--
FredB
Dear All,
am I the only one who is annoyed by the behaviour of the
file browser in TM2? when it is invoked, it eats space in the
window and pushes the text in a smaller area. I find this
quite ugly and much prefer the old behaviour, where the
file browser slid out of one side of the window so the
resulting total window was larger, and the text in the
window was unchanged. Any way to customize this?
Thanks
Piero
I just did a Mountain Lion clean install and had to reinstall TextMate
(Version 1.5.11 (1635)).
Interactive keyboard input for Ruby didn't work, but I remembered a trick
(/applications/textmate.app/Contents/SharedSupport/Support/lib marcc$ svn
export
http://svn.textmate.org/trunk/Support/lib/tm_interactive_input.dylib@11735).
This helped to work around this problem.
Using this workaround, when I run my Ruby app within TM, keyboard input
does work but I get a strange line in red the interactive window:
What is your name?
dyld: DYLD_ environment variables being ignored because main executable
(/bin/ps) is setuid or setgid
marc
Hello marc. How are you?
The line I'm questioning is:
dyld: DYLD_ environment variables being ignored because main executable
(/bin/ps) is setuid or setgid (not sure what it means)
Is there a way I can get rid of that line (some workaround?) -- What am I
doing wrong?
Thanks in advance.
Now the 'Find in project' don't support encodings other than utf8,
when I use gbk encoding, I can't navigate to the right line of result
files position.
I use the Ack bundle to search projects with gbk encoding, will
textmate's 'Find in project' support encodings other than utf8 in the
future?
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
Is there an existing plugin for log4j file syntax highlighting. I'm looking to highlight all FATAL and ERROR lines in red, WARN in yellow (or something close so that its readable), and INFO in green.
Cheers,
Kyle
Good morning all,
first I want to express my appreciation for the ongoing development process
of TM2! Thanks to all contributors!
However, with the nightly updates coming in more frequently now, I find that
on both of my (Mountain Lion) computers, the number of TextMate duplicates
in Finder's "Open With.." list (if I for instance use it on one of my C
source files) keeps increasing with every single update.
I know that it is basically possible to clean this list by rebuilding some
LaunchServices files, but I also read that all previous application
assignments for file types would be lost afterwards -- that is why I first
want to ask if anybody experiences similar behavior, and whether this might
be related to the upgrade process within TextMate (I'm usually updating from
the preferences dialog) and thus be likely to reoccur even after I have
cleaned the LaunchServices.
Thank you very much,
dAlembert
--
View this message in context: http://textmate.1073791.n5.nabble.com/Growing-list-of-duplicates-in-Finder-…
Sent from the textmate users mailing list archive at Nabble.com.
> I just have to throw my vote in for the curent PANE option, not a weird second-class drawer that doesn't behave like it is really part of the window.
>
> Check out SizeUp (http://www.irradiatedsoftware.com/sizeup/) or BetterTouchTool/BetterSnapTool (http://blog.boastr.net/) if resizing windows is causing an inordinate amount of distress in your lives.
>
> --
> Brandon Fryslie
>
>
> On Thursday, September 13, 2012 at 8:25 AM, Rob McBroom wrote:
>
>> On Sep 12, 2012, at 12:04 AM, Travis Dunn <tdunn13(a)gmail.com (mailto:tdunn13@gmail.com)> wrote:
>>
>>> I don't think the new file browser is "stupid" at all, if anything it's more inline with how most other editors handle the problem (not saying that TextMate can't/shouldn't be unique), but in this case I think it was a good decision. The drawer was awkward in my opinion, it's pretty much the only reason I used Project Plus, cause the interface element felt strange.
>>
>> I used Project Plus, too. I don?t think anyone wants a literal drawer. We just want the size of the editing area to be the same, whether [thing that shows files] is visible or not. :-)
I like the drawer in TM 1. It is very OS X and Cocoa apps had drawers for a long time.
In a perfect world, everybody wants different things, and everyone wants a customizable text editor.
So, it would be great to have all 3 options... (but a PITA to code and maintain, perhaps...)
Hi,
I'm using rake in a (mostly) non-ruby project, and so started looking into TextMate's support for running rake tasks.
I discovered that my project automatically has a scope of attr.project.rake, and so I set the Ruby bundle's "Run Rake Task" command to include this scope. However when I execute the command I don't see a full list of the available tasks, I just see the following two:
- (default task)
- aborted!
The project requires JRuby (as it uses JDBC), and so I then tried setting TM_RUBY to use the correct ruby (normally I want textmate to use the system ruby regardless, as using jruby really slows down bundle commands and such). Now I get this error:
/Users/adsharp/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/erb.rb:715 warning: SAFE levels are not supported in JRuby
NotImplementedError: Process::Status#exited? not implemented
(root) at /Users/adsharp/Library/Application Support/TextMate/Managed/Bundles/Ruby.tmbundle/Support/RakeMate/rake_mate.rb:42
Here I'm well beyond my level of expertise. Is there anything I can do here to enable use of the "Run Rake Task" command in my JRuby/Rake project?
Cheers,
Adam
Hi list,
after getting TM2 + synctex working again on 10.6.8 I experience an issues using the 'Citation based on current word' command (opt+esc) in the LaTeX.bundle:
dyld: Library not loaded: @executable_path/../Frameworks/libc++.1.dylib
Referenced from: /Applications/TextMate.app/Contents/PlugIns/Dialog2.tmplugin/Contents/Resources/tm_dialog2
Reason: image not found
/Users/christian/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:182:in `load': Cannot parse a NULL or zero-length data (OSX::PropertyListError)
from /Users/christian/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:182:in `menu'
from /Users/christian/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:177:in `popen'
from /Users/christian/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:177:in `menu'
from Citation Based on Current Word / Selection…:12
It seems that the @executable_path variable is not set properly, is there any way to fix this or does this require a new compiliation?
Thanks,
Chris
otool -L /Applications/TextMate.app/Contents/PlugIns/Dialog2.tmplugin/Contents/Resources/tm_dialog2
/Applications/TextMate.app/Contents/PlugIns/Dialog2.tmplugin/Contents/Resources/tm_dialog2:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 751.62.0)
@executable_path/../Frameworks/libc++.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.43.0)
Subject says it all, I am looking for a way to get focus back to the
editor window after pressing Cmd-R to run my Python script WITHOUT
using the mouse.
Is that possible?
Am using the latest TM2 here.
Would appreciate to let me know the trick! ;)
Michael
I'm getting "source" scope where it shouldn't be, I having some hard time
discovering what's going on (example attached: the file is ~/.tm_properties)
Any ideas?
Thanks
Elia
—
☁ @elia <http://twitter.com/elia> (twitter) ✎ elia(a)schito.me (gtalk)
☎ (+39) 348/9051393 perlelia(a)gmail.com (FaceTime)
I need some help about code complete in bash and php.
bash
-------
VAR_EXAMPLE=1
echo $VAR_EXAMPLE # when I use a variable for the first time,
autocomplete won't work when I hit $VAR[ESC]
php
------
class C {
private $_a_example = 0;
public function foo()
{
echo $this->_a_example; # when I use a class's property for
the first time, autocomplete won't work when I hit $this->_a[ESC]
}
}
Is there any solution for this or I have to tweak the syntax file?
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
This is not really that important but I'm recording it for posterity.
If you open a directory in TM2 so that you have a window showing the file
browser and an empty "untitled" document, then click on a file in the
browser that is not UTF-8 encoded you will get the dialog asking for which
encoding to use. If you click "cancel" in that dialog the entire window
is closed. Unlike when you close the last tab and you get a new
"untitled" document.
example text:
(helloword)
When use vim to select a enclosing typing pair, you can choose to
select the punctuation or not, by using command 'i' and 'a'. eg 'vi('
'va('
When use Textmate, select Enclosing Typing Pairs command will make the
selection with punctuations like vim's 'va(' does.
Is it possible to make the selection without punctuations like vim's 'vi(' does?
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
Not sure in what build that started happening because I haven't edited a
java properties file in some time. But with my current build (9307) when I
set the file scope to "java.properties" I'm seeing incorrect scoping. In
a empty file if I type ctrl-shift-P it displays the follow scopes:
source.java.properties
kvp.multiline.properties
string.kvp.multiline.properties
attr.untitled
attr.os-version.10.7.4
The source.java.properties is expected, but I'm not sure where
kvp.multiline.properties is getting picked up.
It is wreaking havoc with my properties files and assigning a scope of
kvp.dangling.space.between.key.and.equalsign.properties when I enter a
valid property value.
Any idea where these kvp scopes are being applied?
I searched all of the files (using ack --all kvp) in:
/Users/curt/Library/Application Support/Avian/Prinstine Copy
/Users/curt/Library/Application Support/Avian/Bundles
/Users/curt/Library/Application Support/TextMate/Pristine Copy
/Users/curt/Library/Application Support/TextMate/Bundles
/Library/Application Support/TextMate/Bundles
This did not find a single instance of "kvp".
Dear all,
I have a strong feeling that this has come up before, but I can't seem
to find it in the mailing list archives. Can I ask why the
TM_PROJECT_DIRECTORY isn't set to the top-level directory by default?
(I'd like to use it to set my windowTitle to just the last element in
that path, as in TM1, without needing a .tm_properties file in every
project. So if that's possible by another route, I'd be glad to hear
about that too...)
Thanks,
Jon
Hi list,
I have a question related to TM2 and the mate command line. I have upgraded to TM2 (most recent version on OS 10.6.8) and removed/installed the command line tool through the preferences dialogue. This has put an executable called 'mate' into /usr/local/bin. So far all good.
In the old TM (v1.x), 'mate' is a symlink in /Applications/TextMate.app/Contents/Resources/ pointing to /Applications/TextMate.app/Contents/SharedSupport/Support/bin/mate
If I now try to run 'mate' after my upgrade to TM2 and 'mate' installation I get:
/usr/local/bin/mate: line 2: /bin/find_app: No such file or directory
/usr/local/bin/mate: line 2: /Contents/Resources/mate: No such file or directory
Looking at 'mate' this is a shell script:
#!/bin/sh
"$("$TM_SUPPORT_PATH/bin/find_app" com.macromates.TextMate.preview)/Contents/Resources/mate" "$@"
pointing to $TM_SUPPORT_PATH (ie for TM2 this should be "/Applications/TextMate\ 2.app/Contents/SharedSupport/Support" I believe, going by the TM1 setup).
In the new TM2 alpha, however, /Applications/TextMate\ 2.app/Contents/Resources does not contain a 'mate' executable, neither does the folder /Applications/TextMate\ 2.app/Contents/SharedSupport/Support/ exist. In fact, I could not find the 'mate' executable at all in the application bundle.
So my question is: where is 'mate' in TM2 located and how do I fix the sync with Skim?
Thanks,
Chris
Hi TM2 folks,
I would like to request the following feature in TM2:
* In a selected portion, matching identical words. ALthough this can be done by Find in selection menu, it would be more
handy if just by double clicking on a word we could find identical words.
* Editing these identical words by introducing simultaneous carrots.
Sometimes this feature becomes very useful in checking and editing a code.
Cheers,
Riki
Sitting on Textmate 2 9305 and the folding indicators seems to big and
offcenter, or at least offcenter, the same with the icon showing that an
area is folded. Im running this on a Macbook Pro Retina with the native
resolution.
Folded[image: Inline image 1]
Unfolded
[image: Inline image 2]
> Date: Mon, 10 Sep 2012 07:08:15 +1000
> From: David Howden <dhowden(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Java Compile and run
> Message-ID:
> <CAP2kWKHah0sAKbNzh9GFwb6q-YfzJ=dqrSUDHgxrLoe9rvjqvg(a)mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Right, so I've had a little play with this.
>
> 1. Create a file called helloworld.java and save it on your desktop.
> 2. Put this in it:
> public class helloworld {
> public static void main(String[] args) {
> System.out.println("Hello World!");
> }
> }
> 3. Save again!
> 4. Cmd+R
>
> This runs perfectly for me in TM2 using the default Java bundle. Try
> it on your version (checking and double checking the filename and the
> class name match exactly).
>
> Cheers,
>
> David
Hey David,
I am pleasantly surprised, but your suggestion was what I needed! Apparently, the code I had used (below) didn't have the class defined as public. I don't understand why that would make a difference, but hey, it works, and that's what really matters.
Many thanks!
Michael
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); //Display the string.
}
}
> [?] compile and run java code [?] cannot find the class file [?]
Do you have multiple sources?
The Compile & Run was initially done for just running a single Java file.
That said, the command does have some poor man?s build system support by allowing you e.g. to set TM_JAVA_FILEGLOB (presumably to ?*.java?) which would call the compiler with all the matches (rather than just the current one).
The alternative would be to set CLASSPATH if you have your class files somewhere. The proper solution though is to use a build system (when you?re doing more than just a quick test).
No, it is only a single file. My wife is taking a beginner class in Java programming, and I am trying to set up a simple environment on our Mac in which she can do her homework. As she is using only very simple single files, and I want her to concentrate on the code and not the programming environment, I would like to enable her to simply press Command-R to compile and run the code. However, it appears that the system is not automatically creating the needed .class file, as shown in the complete output here:
Exception in thread "main" java.lang.NoClassDefFoundError: helloworld
Caused by: java.lang.ClassNotFoundException: helloworld
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Given all this, what is the best way to configure this poor man's compile-and-run environment?
I have installed the latest iteration of Netbeans IDE, but it is way too much for my wife, at least for the moment.
I have Max OS X 10.8.1 and am using TM 2.0 (9302), and am having trouble getting it to compile and run java code from within TM. It cannot find the class file, as shown here:
Exception in thread "main" java.lang.NoClassDefFoundError: helloworld
Caused by: java.lang.ClassNotFoundException: helloworld
My guess is that a needed environment variable is not set, but I cannot find any documentation on what to set. Any ideas?
I've noticed, in all of the beta versions of TM2 I've tested yet, that
the arrow button to expand the text fields for multiple lines doesn't
work. (See here: http://bit.ly/P3RASq)
Is there a plan to fix this?
Cheers!
--
Nicolas Vaughan
Allan,
thought you might be interested to know: if I set the "Save:" popup to "Nothing" in the bundle editor I no longer see the broken syntax colouring after running my uncrustify command, so it seems to have something to do with saving immediately before. I notice that similar reformatting commands, such as the XML Tidy command also save nothing, and they also work, but they too break if you set "Save:" to "Current Document".
Chris
I just switched from TextMate 1 to TextMate 2. In TextMate 1, it was
possible to have .c and .h files in different folders and when I would use
the command go to file counterpart (⌥⌘↑) it would open the counterpart. In
TextMate 2, it will only open the counterpart if they are in the same
folder. Is there something I'm doing wrong?
Thanks, -- dv
--
View this message in context: http://textmate.1073791.n5.nabble.com/Open-Counterpart-tp25611.html
Sent from the textmate users mailing list archive at Nabble.com.
A recent problem cropped up in my use of the LaTeX bundle recently. Since r9295, I get the message I paste below when I try to insert a Ref-TeX Style citation in my document. This is on a mid-2007 macmini with OS 10.7.4. On my other machine, a recent macbook with OS 10.8.1, I've been updating TextMate regularly, right to r9300, and don't have any problem. My TextMate setup is the same on both machines (or so I think). How can I fix this? Any pointer appreciated,
--Gildas
Message:
Failure running “Citation (Ref-TeX Style)”.
sh: : command not found
/Users/gweltaz/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:182:in `load': Cannot parse a NULL or zero-length data (OSX::PropertyListError)
from /Users/gweltaz/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:182:in `menu'
from /Users/gweltaz/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:177:in `popen'
from /Users/gweltaz/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:177:in `menu'
from Citation (Ref-TeX Style):18
From the TM2 release notes:
2012-08-31
- Improved alignment of the gutter images and made them adjust to font size. Dennis Vennink
While I appreciate the new customization options here (have already added the gutter styling options to my own, personal theme), the new sizing results in tiny icons for me (using 12pt Inconsolata font). Does anyone else see this too, or is this just me? And, if so, is there any possibility of adding an icon size factor to the cornucopia of gutter styling options?
Thanks,
-- Phil
Hey guys, I'm trying to write a grammar file for a MATLAB-like language,
and I'm having trouble with the transpose operator. The transpose operator,
represented by the single quote, can be used in a variety of different
situations:
# Transposing a variable:
myMatrix'
# Transposing the result of a function:
myFunc( myMatrix )'
# Transposing the result of a parenthetical:
(myMatrix - 1)'
# Transposing a matrix literal:
[1,2,3]'
The first two forms are not difficult, they can be matched with simple
"match" forms. However, the parenthetical and matrix literal forms are
more difficult; using begin/end blocks in the pattern matching causes *every
*open parentheses or open square bracket to match, regardless of whether or
not there is a transpose operator matched with the closing parentheses or
square bracket. Not only does this cause performance issues, this causes
issues with nested operators such as:
([1,2,3]' - [4,5,6]')
Any ideas on how to do this the proper way? I don't really care about
matching the parentheses or the square brackets; I just care that they are
present. Positive look-behind assertions would work fabulously here, but
they can't be variable-length, so that's a no-go here.
Thanks!
-E
Hi,
I am trying to run python (the enthought python distribution version) via cmd-R in TM2.
I set under Preferences - Variables "TM_PYTHON" to /Library/Frameworks/EPD64.framework/Versions/7.3/bin
I have no shebang line at the beginning of the script.
When I hit cmd-R, it results in
Program exited with code #1 after 0.00 seconds.
What is wrong with this approach?
Additionally, also under Preferences - Variables "PYTHONPATH" to point into the paths where I want it to be - is this the right way?
Thanks for your help,
Cheers,
Claus
Any users of CTags might find this useful. It uses the history file as a stack of places to return to. Create a new command in the CTags bundle.
Name Go Back
Scope Selector source
Key equivalent ^[
Save nothing
Input nothing
Output discard
#!/usr/bin/env ruby -wKU
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate.rb'
history = ENV['TmCtagsHistoryFileName'] || 'tmtagsHistory'
lines = IO.readlines(history)
if lines.shift =~/=file:(.*?)&line=(\d+)/
File.open(history, 'w') {|f| f.puts lines}
TextMate.go_to :file => $1, :line => $2.to_i
end
Dave.
I have done this loads of times in TM1, but I am failing to change the invocation key for looking up a word in ctags. The default is cmd click but I wan to set ctrl ] so I don't have to use the mouse. Should be simple - just edit the key equivalent in the bundle editor and the job is done. Unfortunately when I do this it makes no difference.
Dave.
I don't know whether it's intended behaviour, but I find it counter-intuitive:
When the file browser has the focus, starting a Find (Cmd-F) with search scope 'Document' or 'Selection' does not initiate a search (or give a warning).
The expected behaviour is to search in the currently open file (or, if one wants to be fancy, search in the files selected in file browser).
And another anomaly I have just spotted testing this:
Having one file open and some text selected and the focus on the editor, opening the Find window with Cmd-F , the Find window opens as expected with 'Selection' as scope. However, actually performing the search finds the needle in a different file within the same project; it'll even open it if it's closed.
Strange.
Jonas
Hi Allan & everyone,
I just made an effort to work with TM2 over the past few days, and love many aspects of TM2, but I am just not happy with the design and functionality of the File Browser in TM2.
So could someone please clue me (us) in about the plans for the TM2 file browser.
1) Is it / Will it be possible for users to change the background colour of the file browser?
I'm using "Pastels on Dark" theme, and the file browser pane is a bright distraction for the eyes.
2) Why have some of the core functionality of the file browser (project drawer) changed so much between TM1.5 and TM2?
a) Why do we need to double-click on the file name to open the file, but can single-click on the tiny icon?
b) Is this by design or a temporary bug that will be fixed some day?
c) Why have the "Create New File" functionality been removed from TM2?
d) Is this by design or another temporary issue that will be fixed some day?
e) Also, why does TM2 not remember the previously saved file name and format like TM1.5 does?
I love the SCM integration in the file browser, but other than that the TM1.5 file browser was much better!
By the way, I really like the newly designed "update window change log" I just saw after updating TM2 this morning.
Kind regards,
Matz
Dear all,
Another question regarding the subversion bundle:
I understand the scope of the operation is selected by marking the file or folder in the file browser pane. In TM1 the parent folder had its own item at the very top, so it could be selected instead of a subfolder or file. Now, if my list of files is shorter than the space in the file browser pane, I can click in the empty space to get the parent folder as scope. However, I haven't found how to do this if my list of files/subfolders fills the entire pane.
And here are some other things; sorry if they've been covered before, but I didn't see them mentioned:
Is it possible to detach the results view from the window? For both tasks I use (LaTeX type setting and SVN) having this view attached to the main project window wastes a lot of space, as the information is concentrated in the left third or so of the window. Vertical extent of that window is more important.
So can I get the old detached windows back?
Can bundles in file browser get a triangle so they can be unfolded? Having to do the right-click, 'show package content' thing is a bit cumbersome (especially since you then dive into the hierarchy).
Find window: can the result view for 'find all' get horizontal scrolling and and option for line wraps? Right now I cannot see the results of my search for long lines.
Thanks,
Jonas
PS: I'm very, very happy to see the frequent updates. I'm prepared to pay (again) for TM2 once it becomes stable.
Allan,
No, that doesn't fix it, the text stays white even after switching tabs, or scrolling or even selecting a block of text (including the non-coloured text).
I have just noticed that the colour the text goes to depends on what code the most recent edit took place on, so if it were:
object.aproperty = @"foo"
then the text takes on the colour of "aproperty", which in my case is blue (Twilight theme), this time the code lost its syntax colour up to the line that got reformatted but not beyond, whereas if I do this in a block of @synthesize statements at the top of the file the text goes white from the edit onwards, but not before.
Chris
On 3 Sep 2012, at 11:44, textmate-request(a)lists.macromates.com wrote:
> OK, so it might be a refresh problem (rather than a parse problem).
>
> Next time it happens, try switch to another tab and back, to see if that fixes the problem (and let me know the result).
Hi,
Take a code snippet like this:
1:
2: if true
3: puts "Hello, world"
4: end
5:
6: puts "Bye"
7:
If I triple-click on line 2, then drag my selection down, I'm unable to make the selection 2-5. I get to 2-4, then as I drag downwards the selection jumps to 2-6.
The converse is not a problem, I can triple-click line 4, then drag upwards and make a selection of 4-1.
Initially I had gotten the idea that this was a regression since TM1, but I've just tested it and it isn't so.
Is there a reason that I can't select that blank line? Currently if I find myself in a position where I need to, I place the caret in line 5, hit Shift-Cmd-L, and up arrow until I have the selection I want.
Adam
On Sat, 01 Sep 2012 12:00:07 +0000,
textmate-request(a)lists.macromates.com wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
>
>
> Today's Topics:
>
> 1. Re: TM2 support HTML win -> Javascript -> AppleScript ->
> Insert chars (Timothy Bates)
> 2. Re: TM2 support HTML win -> Javascript -> AppleScript ->
> Insert chars (Hans-J?rg Bibiko)
> 3. Tab bar colours (Dave Baldwin)
> 4. Re: Tab bar colours (Hans-J?rg Bibiko)
> 5. Re: Tab bar colours (Timothy Bates)
> 6. Find in Project... (Mikael Hultgren)
> 7. Php code coloring is not working with TextMate
> (textmatenightmare)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 31 Aug 2012 14:10:27 +0100
> From: Timothy Bates <timothy.c.bates(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: TM2 support HTML win -> Javascript -> AppleScript
> -> Insert chars
> Message-ID: <B5DACD7B-6A9F-4F2E-AAFD-0C2144596141(a)gmail.com>
> Content-Type: text/plain; charset=windows-1252
>
> insert doesn?t seem to be in the script dictionary for tm2...
>
> t
> On 31 Aug 2012, at 12:39 PM, Hans-J?rg Bibiko <bibiko(a)eva.mpg.de> wrote:
>
>> Hi,
>>
>> I'm just reviewing some of my bundles and came across with this issue:
>>
>> I have several commands which display as HTML output window some
>> characters and the user can insert a given character by clicking on
>> it. The mechanism is done via the Javascript-system bridge to an
>> AppleScript which should insert the character.
>>
>> For TM2 it doesn't work. Thus my question is:
>> Is this
>> - not supported by AppleScript,
>> - not yet implemented in TM2,
>> - broken,
>> - or is there an other more elegant way to achieve the insertion of
>> a string from the HTML window to TM2?
>>
>> I'm using TM2 (9293) on 10.7.4
>>
>>
>> Hmm, it seems that this:
>> echo -en 'tell app "TextMate" to insert ?data utf8e1b894? as Unicode
>> text'| osascript --
>>
>> is not possible under Lion.
>>
>>
>> Any hints/ideas?
>>
>> Cheers,
>> --Hans
>>
>>
>> _______________________________________________
>> textmate mailing list
>> textmate(a)lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 31 Aug 2012 15:22:00 +0200
> From: Hans-J?rg Bibiko <bibiko(a)eva.mpg.de>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: TM2 support HTML win -> Javascript -> AppleScript
> -> Insert chars
> Message-ID: <BB9059AD-82F0-4C0E-B75B-79E473296A20(a)eva.mpg.de>
> Content-Type: text/plain; charset=windows-1252
>
>
> On Aug 31, 2012, at 3:10 PM, Timothy Bates wrote:
>
>> insert doesn?t seem to be in the script dictionary for tm2...
>
> ... oops, yes, you're right. Just looked inside TM1 script dict and
> there I found it ;)
>
> ok, then I'll be patient ;)
>
> Thanks,
>
> --Hans
>
> ------------------------------
>
> Message: 3
> Date: Fri, 31 Aug 2012 14:28:49 +0100
> From: Dave Baldwin <dave.baldwin(a)3dlabs.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Tab bar colours
> Message-ID: <7A841ED5-C364-4546-8292-19739938758C(a)3dlabs.com>
> Content-Type: text/plain; charset=us-ascii
>
> Is there any way to change the colour of the text and/or background
> in the tabs as the dark grey text on slightly less dark grey
> background makes it hard to read the text. Ironically when Textmate2
> is in the background it is easier to read the tab titles than when
> Textmate is in the foreground and being used!
>
> Thanks,
>
> Dave.
>
> ------------------------------
>
> Message: 4
> Date: Fri, 31 Aug 2012 15:32:33 +0200
> From: Hans-J?rg Bibiko <bibiko(a)eva.mpg.de>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Tab bar colours
> Message-ID: <21DC91C2-7136-40B0-844B-169E743249BC(a)eva.mpg.de>
> Content-Type: text/plain; charset=us-ascii
>
>
> On Aug 31, 2012, at 3:28 PM, Dave Baldwin wrote:
>
>> Is there any way to change the colour of the text and/or background
>> in the tabs as the dark grey text on slightly less dark grey
>> background makes it hard to read the text. Ironically when
>> Textmate2 is in the background it is easier to read the tab titles
>> than when Textmate is in the foreground and being used!
>
> +1
>
> Best,
> --Hans
>
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 31 Aug 2012 14:47:17 +0100
> From: Timothy Bates <timothy.c.bates(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Tab bar colours
> Message-ID: <4915CE26-4DFA-4708-A5C4-C5BED63DB9BF(a)gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> I kind of wonder I think the theme background, text, and selection
> colors could flow through the whole interface.
>
> Not having seen it, it?s hard to know. But I set my gutter to
> background, and I liked it.
>
> Letting that flow across into the file browser, and up into the tab
> bar (selected tab = line highlight, other tabs = background, text in
> tabs = gutter line text or default text color) would create a single
> set of desired contrasts and meanings for colour on the screen.
>
> bg-colored tab bar would play nicer with distraction free full screen also.
>
> my 2?
> t
>
> On 31 Aug 2012, at 2:32 PM, Hans-J?rg Bibiko <bibiko(a)eva.mpg.de> wrote:
>> On Aug 31, 2012, at 3:28 PM, Dave Baldwin wrote:
>>> Is there any way to change the colour of the text and/or background
>>> in the tabs as the dark grey text on slightly less dark grey
>>> background makes it hard to read the text.
>> +1
>> Best,
>> --Hans
>
Alan,
here is the command in question (I've also attached a screenshot of the command setup in the bundle editor):
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
"/usr/local/bin/uncrustify" -l OC -c "$TM_UNCRUSTIFY_OBJC_CONFIG";
There doesn't seem to be any special pattern, it doesn't always do it and immediately running the command again seems to restore the syntax colouring. Making any further edit to the file also restores the syntax colouring.
I mostly work on Objective-C files, a simple test case would be:
1. open a largish ObjC .m file (say 500+ lines).
2. make an edit, e.g.: unindent a line of code
3. run the command
4. try this a few times
Often I see the code lose its syntax colouring from the point where I made the last edit onwards, sometimes its only the actual line or lines in question. All the affected text goes white, it's as though it has lost its scope although selecting some text in the unhighlighted area and showing the scope reveals a perfectly normal scope list.
I have seen this behaviour on 3 separate Macs: 2 Mac Pro's and 1 MacBook Pro, running pretty much all of the alphas so far, on Lion 10.7.4.
Hope that helps
Chris
On 2 Sep 2012, at 01:16, textmate-request(a)lists.macromates.com wrote:
> This should not be able to happen.
>
> Can you send step-by-step about how to reproduce (that is, where to get this command from and how you get it into this unhighlighted state).
> On 2 Sep 2012, at 16:25, Allan Odgaard wrote:
>
> > On Sep 2, 2012, at 5:09 PM, Jonas Zimmermann <listen at jonaszimmermann.de> wrote:
> >
> >> OK, I've been using ⇧⌘Y for a while. This doesn't show added folders (for SVN) as uncommitted, however. So commits depending on those folders (such as added files within) fail.
> >
> > That sounds like something that could easily be fixed if you provide steps-to-reproduce.
Thanks for including the steps as I was able to reproduce this.
> ...
>
> So added folders should be shown as uncommitted changes; don't know whether there should also be a check for dependencies when trying to commit (probably not).
I talked to Allan this morning and I am in agreement with you. I've
suggested why to Allan in IRC but for posterity, I'll post here as
well. Basically, Subversion treats folders as versionable objects.
They can be added/modified/deleted to the repository with/without
files in them and they even have their own versioned properties like
files do. That being said, I think it makes sense to have a folder in
the "Uncommitted Changes" view whenever the folder has changes on
itself or below it. While Allan and I talk about this in IRC, there
are a few workarounds:
* When committing from the "SCM Status" view, make sure there are no
files selected when you show SCM command (⌘Y) (Note: When you have no
files selected and initiate a commit, TextMate will show you all
changes in the working copy)
* Commit from the file browser and select the path(s) you want to
commit including the newly added folder (Note: When selecting a folder
and initiating a commit, it will of course include paths for all
descendants)
Using those two options above, I was able to work around this
situation. The reason you're only seeing the file in the commit
dialog is because in your step #6 (6. Select new file there, ⌘Y,
Commit), you selected the file prior to initiating the commit thus
telling TextMate that you wanted to commit that file alone.
I hope this helps explain why this is happening and gives you a
workaround until Allan and I can come up with something suitable.
--
Take care,
Jeremy Whitlock (@whitlockjc on Twitter)
http://www.thoughtspark.org
Hi All,
TM2s HTML output window is somewhat limited compared to TM1:
- it uses sort of *tabs*, so I can't have multiple windows next to each other (handy to remove clutter and usually welcome, but when I run multiple apps/scripts in parallel I need separate windows to monitor them)
- it only allows one 'long running' process at a time
Since my projects often include multiple apps and/or scripts that interdepend and I need to run them side by side (eg client server etc). I used to use HTML output windows, so that I could have specially formatted log messages be clickable and get me to the correct location in the source code etc.
So I wrote an application that provides multiple HTML output windows and remembers their individual placement and size. It is called ApLo, and available as source here:
https://github.com/gknops/ApLo
and wrapped into a TextMate bundle here:
https://github.com/gknops/aplo.tmbundle
For starters I wrote an Xcode4 bundle that goes with it:
https://github.com/gknops/xcode4.tmbundle
As time permits I plan to add support for iOS projects as well, and STDOUT/STDERR parsers for other languages (perl, lua) as I come across them.
Maybe these bundles will be useful for others as well.
Gerd
Hi,
I regularly run the uncrustify command to tidy up my ObjC source, often when I do this the syntax colouring in the current file becomes broken until I make an edit (like a new line return), does anyone know a way to force a refresh of the syntax colouring after a command that replaces the entire document?
Chris
Just an idea, maybe it's like this for a good reason, but it's always bugged me that the "Go To" windows just float around. I can see a few reasons why it's awkward (at least for me):
• if you're using multiple displays the "Go To" windows can end up opening on a different display than the actual textmate window you're calling it from, this seems to be inconsistent amongst them though
• if you have multiple projects open, the "Go To" position is shared, so if you move it over to the current textmate project window that you're working with and then switch to the other project, the "Go To" window will be in its last location
• in general it feels like it brings you out of the interface the way they are implemented now
Not like there are "bugs" or real problems with it, but i do feel like interface wise, it's a little clumsy. Thoughts?
So I’m running the latest nightly of Textmate 2 and seeing some weird
behaviour from Find in Project…
I have a project(or what I’m assuming is a project, it has a .™_properties
in its root folder with projectDirectory = '$CWD’ in it)
and no matter what i do i can’t make Find in Project… find anything, i type
a search query that i know exists in the project and it returns nothing.
But if i load up for example the Textmate project Find in Project… seems to
work just fine and i can’t for the life of the figure out what the problem
is. Maybe I’m not understanding what Find in Project… does or maybe I’m
confused as to what or how a project is made in Textmate 2. Any ideas are
most welcome.
~//M
Defunct processes
Question:
In the C bundle I disable indentation by setting
{ decreaseIndentPattern = '(?=not)possible';
increaseIndentPattern = '(?=not)possible';
indentNextLinePattern = '(?=not)possible';
unIndentedLinePattern = '(?=not)possible';
}
Now I have this (pipe denotes cursor, \t is a tab):
{
\t|
}
As soon as I type any character, the tab disappears. Why?
Gerd
Is there any way to change the colour of the text and/or background in the tabs as the dark grey text on slightly less dark grey background makes it hard to read the text. Ironically when Textmate2 is in the background it is easier to read the tab titles than when Textmate is in the foreground and being used!
Thanks,
Dave.
Hey guys, I came across this question, how can I set up language and
grammar preference in TM2. It's a sort of boring thing every time I start
TM I need to set up it again to Latex and British english. So, setting up
in the preferences panel doesn't seem to work.
Daniel
Hi,
I'm just reviewing some of my bundles and came across with this issue:
I have several commands which display as HTML output window some characters and the user can insert a given character by clicking on it. The mechanism is done via the Javascript-system bridge to an AppleScript which should insert the character.
For TM2 it doesn't work. Thus my question is:
Is this
- not supported by AppleScript,
- not yet implemented in TM2,
- broken,
- or is there an other more elegant way to achieve the insertion of a string from the HTML window to TM2?
I'm using TM2 (9293) on 10.7.4
Hmm, it seems that this:
echo -en 'tell app "TextMate" to insert «data utf8e1b894» as Unicode text'| osascript --
is not possible under Lion.
Any hints/ideas?
Cheers,
--Hans
Hi everybody
I'm a long time TextMate user which I love more than any other editor.
Before writing that e-mail I've looked on the web, downloaded the full archives of this list and grep it with some keywords and nothing came out.
As a developer I often want to extract a part of a line of code into a variable, and put it's assignment in the previous line. Example :
something a_method(with, arguments), something_else
would become
my_variable = a_method(with, arguments)
something my_variable, something_else
I can't figure how to :
* extract the selected text and put it in a new line on top of the current, prefixed by a variable assignment
* have the variable name selected and ready to overwrite, mirrored where it has been extracted from
* preserve the indentation (on both lines)
* preserve what was before and after the extracted part
I've seen people do this in Vim and Emacs, but never in TextMate.
I've asked for help and James Edward Gray II gave me some advice on Twitter and here https://gist.github.com/3515210
It seems that the best way would be to replace the whole document.
I don't really see what I should use : a macro, a snippet, a command, or a combination of them.
I guess that I could do this with a macro + snippet, but I've not found (yet) the list of available commands (moveToEndOfParagraph, insertText, …) and their documentation.
I'd be happy to have a pre-cooked solution if it exists, but any advice would be helpful
Thanks
--
Jérémy Lecour
http://jeremy.wordpress.com - http://twitter.com/jlecour
This worked in TM1.x and my apologies if that has been brought up, but when
working w/ the project view (the left pane w/ a directory), it used to
highlight the currently edited file. This was very helpful for when you had
files of the same name in different directories.
Can this behavior be finagled into 2? Is this worthy of a bug report?
Thanks.
--
Wells Oliver
wellsoliver(a)gmail.com
Sometimes I use intellij idea, it's text editor has a default behavior
for CMD+C, if you don't select anythings, it will copy current line.
While CMD+X will cut the current line. Maybe it's not a bad idea.
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
Hi,
with TextMate 1.5 there is a way to stop commands that have gone awry by pressing Command-. (period) after they have started, is there a way to do this with TextMate 2? I frequently encounter runaway commands that cause TextMate to hang with no way to abort the command other than force quitting the app.
Thanks
Chris
Would it be unreasonable to have the File Browser open (from previously hidden) to the location of the open file (if window contains only one file)?
Or is there an easy way to navigate to the location of the open file in file browser?
Jonas
Could we have a better bookmark system which contains
* named bookmark (like vim)
* bookmarks between files (like vim)
* bookmark browser with preview (like the find dialog)
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
Hi,
is it possible to open a file for editing without double clicking on
it? When I click on the left side in the files drawer on a file, it is
not opened. Only double clicking will open it. Is there an option to
change this behaviour to the TM1 behaviour?
Thanks
Christian
Nice one, remove the Multimarkdown support from the Markdown bundle without warning!
So where is this "own" bundle? Is tehre something newer than Fletcher's old bundle (which I am not a particular fan of for variuous reasons)?
Gerd
Hi all,
I would like to hear whether anybody here knows a way to typeset a latex
file in textmate and then export it as MS Word .doc file.
Any help will are welcome.
Daniel
All,
I've been using the SCM and Subversion bundles with TextMate 1 successfully. With TM2, I cannot commit because I get this error (copied from Console):
Commit Window produced an error: 2012-08-27 13:33:41.972 CommitWindow[47555:707] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
2012-08-27 13:33:41.981 CommitWindow[47555:707] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
2012-08-27 13:33:41.983 CommitWindow[47555:707] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
2012-08-27 13:33:41.992 CommitWindow[47555:707] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
Unfortunately, it isn't clear which plist is the culprit. I've checked CommitWindow's Info.plist with plutil (OK), checked ~/Library/Preferences/com.cjack.tmbundles.commit-window.plist; even deleted it.
I assume I have the latest versions of SCM and Subversion (the preference window says last updated 8 months ago).
Any suggestions as how to fix it?
Best,
Jonas
Fletcher's bundle was a fork from the Markdown bundle. As such it clobbered the Markdown bundle itself, and the included Markdown syntax was at least partially broken.
I created a fork with the following changes:
- Renamed to MultiMarkdown
- Removed all commands/snippets/macros/support files duplicated from the Markdown bundle
- Removed broken Markdown syntax
- Cleaned up all UUIDs to not reference the markdown bundle
- Added dependency on the Markdown bundle (for the syntax)
After a cursory check everything seems to work as it should.
If everybody agrees that this is the way to go, could we add this bundle to the textmate namespace on github and make it "official"? The README would need a few changes: updated link, installation instructions for the pre-requesits (MMD3 itself, LaTEX etc if desired).
https://github.com/gknops/MultiMarkdown.tmbundle
Gerd
ruby bundle of textmate don't support "bundle exec" when hit cmd+R, Is there a simple way to support it?
Bundler is popular way to manage Ruby applications.
jancker
On 22.08.2012, at 21:00, textmate-request(a)lists.macromates.com wrote:
> On Aug 14, 2012, at 5:47 AM, Yuan Jiang <sleetdrop(a)gmail.com> wrote:
>
>> [?] I want Textmate to show current file's encoding in the status bar
>
> This one I don?t really like. Everybody should be using UTF-8 so for most users adding encoding to the status bar is IMO just adding noise.
It's not about (your?) personal preference, it's about what you're confronted with in real-world usage.
Not everyone (you work with) uses UTF8, sometimes people you work with save files in the wrong encoding and you have trouble down the line with your project because of that.
Hi,
I installed Todd Werth's IR_Black theme (http://blog.toddwerth.com/entries/2) in TM2 and get this error when I press Ctrl-Shift-P to show scope:
> Failure running "Show Scope (HTML)".
>
> Could not locate your theme file!
Has anyone else had success using this theme in TM2? Tried deleting the bundle, then recreating it again with the .tmTheme file, but same result. Didn't have any issues when I installed the Railscasts theme.
Adam
When recording a macro, pressing return makes it impossible to further move
the cursor. In fact any cursor movement such as pressing the left arrow
seems to cause the problem. I can press cmd-option-M to stop recording. I
can save my document, etc. But I cannot enter text into the document or
move the cursor.
TM2 version 9278 (This was also a problem in 9275).
OSX version 10.7.4
When I open a file on a local HFS+ drive in TextMate2, it will pick up changes to the file if I edit it with another tool, or alter it at the command line.
This does not happen through files opened via rmate, or through files opened on SMB shares mounted on the local machine. I assume that there simply is no file-changed event to listen for in this case, but it would be nice if I'm wrong.
As a workaround, is there a simple way to trigger a refresh of the TextMate buffer? Since I have control of both the save within TextMate and (in this case) CVS update cycle, I can ensure a consistent state that way.
"Edit In Textmate" compile broken, I'm not familiar with objectc, I have installed command line of Xcode
$ g++ -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
It seems system frameworks are not found, I am sorry to ask you help again -_-!, pointing out directions to google is enough.
edit-in-textmate $ make
mkdir '/tmp/Edit in TextMate'
cp 'rsrc/Info' '/tmp/Edit in TextMate/Info'
mkdir '/tmp/Edit in TextMate/Edit in TextMate.bundle'
mkdir '/tmp/Edit in TextMate/Edit in TextMate.bundle/Contents'
cp 'rsrc/Info.plist' '/tmp/Edit in TextMate/Edit in TextMate.bundle/Contents/Info.plist'
mkdir '/tmp/Edit in TextMate/Edit in TextMate.bundle/Contents/MacOS'
g++ -bundle -pipe -fPIC -Os -DNDEBUG -m32 -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk -funsigned-char -fvisibility=hidden -DNS_BUILD_32_LIKE_64 -Wall -Wwrite-strings -Wformat=2 -Winit-self -Wmissing-include-dirs -Wno-parentheses -Wno-sign-compare -Wno-switch -o '/tmp/Edit in TextMate/Edit in TextMate.bundle/Contents/MacOS/Edit in TextMate' src/.mm -framework Cocoa -framework Carbon -framework WebKit
src/Edit in TextMate.mm:8:26: error: WebKit/WebKit.h: No such file or directory
src/Edit in TextMate.mm:9:26: error: Carbon/Carbon.h: No such file or directory
src/Edit in TextMate.mm:10:14: error: map: No such file or directory
In file included from src/Edit in TextMate.mm:11:
src/Edit in TextMate.h:8:24: error: Cocoa/Cocoa.h: No such file or directory
In file included from src/Edit in TextMate.mm:11:
src/Edit in TextMate.h:14: error: cannot find interface declaration for ‘NSObject’, superclass of ‘EditInTextMate’
src/Edit in TextMate.h:17: error: expected type-specifier before ‘NSString’
src/Edit in TextMate.h:17: error: expected )' before ‘NSString’
src/Edit in TextMate.h:17: error: expected;' before ‘*’ token
src/Edit in TextMate.h:18: error: expected type-specifier before ‘NSString’
src/Edit in TextMate.h:18: error: expected )' before ‘NSString’
src/Edit in TextMate.h:18: error: expected;' before ‘*’ token
src/Edit in TextMate.mm:19: error: expected initializer before ‘*’ token
src/Edit in TextMate.mm:20: error: expected initializer before ‘*’ token
src/Edit in TextMate.mm:21: error: expected initializer before ‘*’ token
src/Edit in TextMate.mm: In function ‘void +EditInTextMate setODBEventHandlers’:
src/Edit in TextMate.mm:41: error: ‘NSAppleEventManager’ was not declared in this scope
src/Edit in TextMate.mm:41: error: ‘eventManager’ was not declared in this scope
src/Edit in TextMate.mm: In function ‘void +EditInTextMate removeODBEventHandlers’:
src/Edit in TextMate.mm:48: error: ‘NSAppleEventManager’ was not declared in this scope
src/Edit in TextMate.mm:48: error: ‘eventManager’ was not declared in this scope
src/Edit in TextMate.mm: At global scope:
src/Edit in TextMate.mm:53: error: expected type-specifier before ‘BOOL’
src/Edit in TextMate.mm:53: error: expected )' before ‘BOOL’
src/Edit in TextMate.mm: In function ‘<typeprefixerror>+[EditInTextMate BOOL](objc_object*, objc_selector*)’:
src/Edit in TextMate.mm:53: error: return type ‘<type error>’ is incomplete
src/Edit in TextMate.mm:53: confused by earlier errors, bailing out
In file included from src/NSTextView: Edit in TextMate.mm:8:
src/Edit in TextMate.h:8:24: error: Cocoa/Cocoa.h: No such file or directory
In file included from src/NSTextView: Edit in TextMate.mm:8:
src/Edit in TextMate.h:14: error: cannot find interface declaration for ‘NSObject’, superclass of ‘EditInTextMate’
src/Edit in TextMate.h:17: error: expected type-specifier before ‘NSString’
src/Edit in TextMate.h:17: error: expected)' before ‘NSString’
src/Edit in TextMate.h:17: error: expected ;' before ‘*’ token
src/Edit in TextMate.h:18: error: expected type-specifier before ‘NSString’
src/Edit in TextMate.h:18: error: expected)' before ‘NSString’
src/Edit in TextMate.h:18: error: expected ;' before ‘*’ token
src/NSTextView: Edit in TextMate.mm:10: error: cannot find interface declaration for ‘NSTextView’
src/WebView: Edit in TextMate.mm:8:26: error: WebKit/WebKit.h: No such file or directory
src/WebView: Edit in TextMate.mm:9:17: error: vector: No such file or directory
In file included from src/WebView: Edit in TextMate.mm:10:
src/Edit in TextMate.h:8:24: error: Cocoa/Cocoa.h: No such file or directory
In file included from src/WebView: Edit in TextMate.mm:10:
src/Edit in TextMate.h:14: error: cannot find interface declaration for ‘NSObject’, superclass of ‘EditInTextMate’
src/Edit in TextMate.h:17: error: expected type-specifier before ‘NSString’
src/Edit in TextMate.h:17: error: expected)' before ‘NSString’
src/Edit in TextMate.h:17: error: expected ;' before ‘*’ token
src/Edit in TextMate.h:18: error: expected type-specifier before ‘NSString’
src/Edit in TextMate.h:18: error: expected)' before ‘NSString’
src/Edit in TextMate.h:18: error: expected `;' before ‘*’ token
src/WebView: Edit in TextMate.mm:17: error: cannot find interface declaration for ‘DOMHTMLTextAreaElement’
make: ** [/tmp/Edit in TextMate/Edit in TextMate.bundle/Contents/MacOS/Edit in TextMate] Error 1
My file filters in .tm_properties don't work any more.
I removed all other .tm_properties files and tried a .tm_properties
with just the two lines
excludeFiles = "*"
includeFiles = ""
and it has no effect. All files in the same folder are still displayed.
But it works for a different user with the same TM version on the same computer.
Other settings like "tabSize" are no problem at all.
I started TM 1.5 a few days ago by accident. Maybe this caused the problem.
TM 9286
OSX 10.7.4
- Philipp