In the "Go To File" dialog if you tab to the file types drop down control
and change the selection with with either the keyboard or mouse, the list
of files immediately changes to reflect the new glob pattern.
Also, if you type in a new glob pattern *that is already in the list* and
hit the enter key, the list of files is updated.
However, if you type in a glob pattern *that is not already in the list* and
hit the enter key, the list of files is not updated. You must must use the
arrow key to select a different pattern, then use the arrow key to
re-select the desired pattern.
Hi,
I have a a kind of a weird crash with TM2 (I encountered it several weeks ago but now I do need the procedure quite often). I'm on MacOSX 10.7.3 (9110).
I have created a new bundle with several commands. All these command have the same structure:
Save: Nothing
Input: Nothing
Output: Show in New Window
Caret: After Output
and the actual command:
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
pbpaste | perl -e '
$word = <>;
chomp($word);
...
print $result;
'
In other words each of these commands takes the content of the clipboard and send it to a Perl script. The script and the clipboard's content have to handle real UTF-8 stuff and the PErl script contains lots of non-ASCII characters.
Now the weird thing: The crash doesn't always occur. I tried to find a more or less 'reproducible' workflow.
- TM2 is not running
- I copied a word from another program into the clipboard
- I open TM2
- an 'untitled' window appears
- I invoke one of these commands in question
- TM2 crashes with:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libundo.dylib 0x004e3f79 ng::undo_manager_t::end_undo_group(ng::ranges_t const&) + 11
1 com.macromates.TextMate.OakTextView 0x005d9356 0x5a9000 + 197462
2 com.macromates.TextMate.OakTextView 0x005c1242 0x5a9000 + 98882
3 com.apple.AppKit 0x93315727 -[NSView _performKeyEquivalent:conditionally:] + 49
4 com.apple.AppKit 0x93315914 -[NSView performKeyEquivalent:] + 340
BUT THEN I reopen TM2 and do _exactly_ the same and IT WORKS!
Step two of WEIRDNESS: If I quit TM2 after that and reopen it and run the command with the same clipboard content again TM2 crashes once again.
It doens't matter whether I invoke the command via key equivalent or via mouse Bundles > ...
I didn't encounter that problem if TM2 was running before I copied the text, switched to TM2, and invoked the command.
Any help, fix would be really appreciated :)
For more details, don't hesitate to contact me.
Cheers,
--Hans
Hi,
I'm on Mac OSX 10.7.3 TM 2.0 (9100).
If the text buffer begins with a combining character (diacritica) you cannot delete that character, select all also doesn't work. To reproduce it, simply open a new document, open the Character Viewer, and insert let's say a combining acute accent U+0301 or in UTF-8 CC 81, then type something, and press CMD+A to try to select all, this fails. You can delete the typed characters up to the first character.
Cheers,
--Hans
Dear all,
did any of you ever come along a PVL bundle for TextMate?
PVL stands for Parameter Value Language and is used for astronomical
and planetary data headers, looking similar to this:
/* The source image data definition. */
OBJECT = UNCOMPRESSED_FILE
FILE_NAME = "PSP_002622_0945_RED_cnode26:25702.IMG"
RECORD_TYPE = FIXED_LENGTH
RECORD_BYTES = 56522 <BYTES>
FILE_RECORDS = 39152
^IMAGE = "PSP_002622_0945_RED_cnode26:25702.IMG"
OBJECT = IMAGE
DESCRIPTION = "HiRISE projected and mosaicked product"
LINES = 39152
LINE_SAMPLES = 28261
BANDS = 1
SAMPLE_TYPE = MSB_UNSIGNED_INTEGER
SAMPLE_BITS = 16
SAMPLE_BIT_MASK = 2#0000001111111111#
/* NOTE: The conversion from DN to I/F (intensity/flux) is: */
/* I/F = (DN * SCALING_FACTOR) + OFFSET */
/* I/F is defined as the ratio of the observed radiance and */
/* the radiance of a 100% lambertian reflector with the sun */
/* and camera orthogonal to the observing surface. */
SCALING_FACTOR = 9.08568311937917e-06
OFFSET = 0.0097943214240579
BAND_STORAGE_TYPE = BAND_SEQUENTIAL
I would like the bundle be able to
* color-code group starts (OBJECT = …)
* values according to their type strings and numbers
* comments
Actually, the SQL bundle does a good job of color-coding these files,
just the OBJECT emphasis and some big floating point numbers
(interestingly) are color-coded weirdly (look at SCALING FACTOR value
with the SQL bundle switched on, it's weird that the 9 is colored, but
the fractional digits are not. (Using TM2)
If there is no PVL bundle, I guess I can 'derive' from the SQL bundle
how this is done? I never created a bundle, is there any 'must-read'
tutorial on that?
Best regards,
Michael
I'm climbing the walls with this one:
I get this error message
___
Couldn't find gfortran
You must set the TM_FORTRAN variable to the full path of your Fortran compiler (e.g./usr/local/bin/gfortran). You may also set TM_FFLAGS for any Fortran compiler options.
___
but cannot find out anywhere how to edit the TM_FORTRAN variable. Can anyone help please ?
[ gfortran is working fine from Terminal. ]
Thanks
Peter
I have some self-written Python modules that work fine in TM1, but in
TM2 the Mac System ENV PYTHONPATH does not seem to be read?
I was able to steer to my Python binary of choice using TM_PYTHON but
neither the system/GUI variable PYTHONPATH not setting of a
TM_PYTHONPATH was helping TM2 to find my own Python modules that I
added before via the PYTHON PATH.
What do I need to do to let TM2 find / read the PYTHONPATH?
Best regards,
Michael
In #9064 (Mac OS X 10.6.8) the selection highlight color gets more transparent (?) sometimes. After focussing TextMate 2 the color is correct, when changing to another Tab, the color changes. If you go back to your original tab it shows the same lighter color there to.
When you focus another application and go back to TextMate it shows the original (more opaque) color again.
Regards
Jannes
Sorry I missed your response Allan, I set up my dead keys with a program
called Ukelele:
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ukelele
The first keystroke sets up a state that modifies the output of the
following keystroke (essentially each dead key you set up creates an
entirely new keyboard mapping of your choice). If the second keystroke
is not specified in the alternate mapping, the default value is used.
Garrett
textmate-request(a)lists.macromates.com wrote:
> Re: TM2 with dead keys
Hi,
I'm using TextMate Version 2.0 (9090) and found a minor but annoying bug.
Steps to reproduce:
Open up a folder
Open two files (two tabs)
Highlight text in your current tab (should be bright highlighting)
Switch to other tab, switch back (now it will be dull highlighting)
To fix you just have to command-tab to a different app and back. Seems like
changing tabs correctly dulls the tab you are changing from, but does not
brighten the tab you are changing to. Keep up the good work!
Cheers,
Andrew
Hi,
in TM 1.x it was possible to highlight the current line. In TM2 I can see a nice gutter effect which is feasible for almost all cases but I'm sometimes editing plain text tables with rather long lines and here it'd be nice to have a visual indicator for the current line to be able to read long lines better.
Thanks,
--Hans
Hi,
TM2 regularly crashes during redo. I can't consistently reproduce, except that it seems to happen when I redo more than once in quick succession, or redo directly after undoing. I have TM2 configured to send crash reports, but thought it would be a good idea to throw it out here, especially if others are experiencing the same issue.
Adam
Hi,
what is the new syntax to access the ui.rb and exit_codes.rb
files, and in general items from the Bundle Support bundle?
I mean, what should I use (in a ruby script) instead of
require ENV["TM_SUPPORT_PATH"] + "/lib/ui.rb"
which does not seem to work? maybe it's just matter of
setting a shell variable, but can't figure out how.
Thanks
Piero
I'm using TM Version 1.x (build 1631).
Some of the characters (in text mode) are not displayed "normally" (i.e.,
the way they have been). For example, the character - (minus) creates a red
highlight where is appears. Let's say I'm writing -- enable SSL -- in a
middle of a sentence, the -- enable SSL -- part is highlighted in red for
no apparent reasons (I haven't changed my setup). Also, the sign > is
changed to > with an underscore.
Any idea why this is happening? Might have changed something without
knowing it?
Thanks in advance.
I use command + arrow up / down quite a bit to navigate to the top and bottom of my tex files. I noticed that when I switch to an existing file, command + arrow up gets me to the top but command + arrow down gets me down the file but not to the bottom of the file. Or, if I do first the command + arrow down, nothing happens. I need to reiterate command + arrow up, to the top, then command + arrow down, to get to the bottom. This happens with all files except the very short ones. Is this something seen by others, and is there a solution?
-- Gildas Hamel
When I use
ctrl + command + R
to reveal current file in file browser, file browser automatically changes current dir the the subdir which current file exists.
how can disable this feature.
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
Hi,
I've noticed a few times that switching tabs causes the gutter to not
refresh properly. Switching to a file with fewer lines seems not to
refresh the gutter beyond the number of lines in the new file.
Not sure if this is a known issue. The attached picture is from a file
which has 36 lines.
Also, a brief feature request: Would be awesome to be able to set the
background/foreground colour of the gutter to match the highlight theme
:-). I realise that this could cause problems with images for folding
markers and bookmarks, but we could also have options to set images/colours
for those too :-P.
Cheers,
David.
Hi,
Services don't work in TM2.
TexMate > Services just show "No Service Apply".
Same on two different macs running OS X 10.7.2 and TM 2.0 (9090)
I can't find anything about it on the list, wiki and release notes…
I tried a /System/Library/CoreServices/pbs -flush
Is it down for everyone or just me?
Is this a known issue?
You realize how much you use those services when they're gone. :-/
--
FredB
Hi,
is it possible to increase the tabsize beyond 32?
The slider that pops up when you click on 'other' (under the tab menu) has its limit at 32 …
(textmate 1.5.10)
thanks!
TextMate hangs when I attempt to press Control+Command+C to insert a color using the color picker.
Anyone else run into this?
--
Brandon Fryslie
http://www.MateWiki.com - A TextMate 2 Wiki
sorry if this was brought up before, but when manually adding "favorites" via symlinks, they do not display in the favorites window list. (⇧⌘O)
I only see the ones added via TM2 menu controls.
thanks
I just created a macro (manually) to find all instances of the current word
using these commands:
(
{ command = 'selectWord:'; },
{ command = 'copySelectionToFindPboard:'; },
{ command = 'findAll:'; },
)
When I perform the actions manually with ctrl-w, cmd-e, cmd-opt-f, all
instances of the word flash yellow, but this doesn't happen when using the
macro. Am I using the wrong commands, or is it not possible to get the same
behavior? Thanks,
- Matt
--
View this message in context: http://old.nabble.com/Find-All-highlighting-tp33487518p33487518.html
Sent from the textmate users mailing list archive at Nabble.com.
I am somewhat aware of how the default grammar is picked for a filetype (correct me if I am wrong, but I believe it is the grammar chosen when the last file of that type was saved). So I recently edited a Latex file with an extension of .txt, and now .txt files open with the Latex grammar chosen.
Can I force TextMate 2 to use Markdown for all .txt files by default while allowing me to selectively change some .txt files to other grammars, without changing the default grammar for all files of that type?
Thanks!!
--
Brandon Fryslie
http://www.MateWiki.com - A TextMate 2 Wiki
I was periodically editing and compiling a LaTeX document when TextMate 2 started running at 100% CPU (still usable, though). In the background I have open a text file, a C++ project, a Ruby file and an HTML file.
I grabbed a sample:
http://cl.ly/2O3L0T24012i2h181L37/Sample%20of%20TextMate.txt
Jacob Bandes-Storch
And then …
I deleted both TM1 and TM2, reinstalled TM1 to set the license key, then reinstalled TM2. No notable problems.
File operations from TM2 project window (the file manager) still cause crashes. Or at least crashes often follow file ops. Causality isn't assured. Adding folders to favorites now isn't working at all.
In short, things seem to be worse than before. Favorites don't seem to work at all (crash happens). If I were more astute, I'd happily solve all this. However, … . Crash reports go to macromates. Any suggestions for a next step?
--Lewy
On Mar 13, 2012, at 4:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> From: Brandon Fryslie <bmf(a)matewiki.com>
> Subject: [TxMt] Re: crashes
> Date: March 13, 2012 1:03:43 AM AKDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Here is where some of the TextMate 1 / 2 stuff is stored:
>
> TextMate 1 Original Bundles
> ~/Library/Application Support/TextMate/Pristine Copy/Bundles
>
> TextMate 1 Bundle Deltas (Changes)
> ~/Library/Application Support/TextMate/Bundles
>
> TextMate 2 plist
> ~/Library/Preferences/com.macromates.TextMate.preview.plist
>
> TextMate 2 Managed (Autoupdating / Installed from Preferences in TM2) Bundles
> ~/Library/Application Support/TextMate/Managed
>
> TextMate 2 User Bundles
> ~/Library/Application Support/Avain/Bundles
>
> You don't need to back up the managed bundles. If you back up (or don't delete) both TextMate 1 bundle folders you will be fine.
>
> AFAIK the 'official' way to get the newest version is to download the original alpha from the blog post and let it update.
>
> --
> Brandon Fryslie
> http://www.MateWiki.com - A TextMate 2 Wiki
>
> On Monday, March 12, 2012 at 1:30 PM, Lewy wrote:
>
>> <snip>
>>
>> I would like two thing:
>> 1. Where do I get the current download of TM2; and
>> 2. What do I delete?
>>
>> <snip>
Hi Allan,
maybe you can squeeze in the little fix soon, that the "wrap column" setting is sticky across launches.
I usually set it to "80" but at every launch it is back to "Use Window Frame".
Other than this, TM2 works flawlessly for me.
Thanks for your hard work,
Thomas
I'm trying to port and update some of my TM1 bundles to TM2. I've run
into trouble trying to assign commands to the ^{ and ^}
(control+curly_brace) keys. When I use "Select Bundle Item..." and
search by key equivalent, my commands are shown bound to ^{ and ^}.
Pressing those keys in a document does nothing, though.
My commands run when I assign them to different keys (such as ^+ or ^")
so I'm pretty sure they work and that the scoping is right. It's just
the ctrl+brace keys that are a problem. As far as I can tell I don't
have any add-ons that globally remap these keys, and they do work in
TM1. Does anyone else see this, and is there anything I can do to use
those keys?
This is on a standard USA MacBook Pro.
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com <http://www.arbornetworks.com/>
At 2:32 PM +0700 3/12/12, Allan Odgaard wrote:
>Right, the layout view used for the various splits (of which the HTML output is one) is presently not constrained; ideally I want to use Lion's new constraint-based layout system instead of writing my own code for this, but it requires dropping10.6 compatibility, which we're slowly building up the courage to do :)
I'm still using 10.6 -- so it practical I would refer that 10.7 not be a requirement.
I get a lot of crashes now. This pretty much has to be something odd locally. Otherwise, I'd be seeing a lot of talk about it on this list. It seems like a good time to delete TM2 and reload the thing, but there is some stuff I don't want to lose. I have some local bundles (from TM1) which I think are working with TM2. They are mostly snippets.
I have built some additions to favorites folder which would be nice but not essential to preserve. Other than that, I'd like to clear all the TM2 stuff out without using one of the find-em-all trash cleaners. Someone mentioned doing that and having trouble getting TM2 back later.
I would like two thing:
1. Where do I get the current download of TM2; and
2. What do I delete?
Should I delete the just the plist first or would it be just as good and less work to reload the whole thing.
I like TM2 and don't want to give it up. And this list has been a great help to me. Thank you all.
--Lewy
when i am editing a sass file and start a new line, then indent (adding a property to a selector, for example) the indent won't stick. the cursor just gets bumped back to line up with the previous line's indentation. is this an issue with my bundle, or some other known issue?
thanks
Hi,
I've had this problem where the plist disappears and it's really
frustrating.
After a fresh install, Textmate starts just fine, but if I close it and try
to open it again later, the plist is completely missing.
I used the troubleshooting technique on the bottom of this page:
http://wiki.macromates.com/Troubleshooting/101
To get this result:
Mac-Pro:~ myuser$ /Applications/TextMate.app/Contents/MacOS/TextMate
2012-03-12 10:21:02.633 TextMate[22543:407] No Info.plist file in
application bundle or no NSPrincipalClass in the Info.plist file, exiting
I'm running Lion 10.7.3.
What is happening here?
--
View this message in context: http://old.nabble.com/Textmate-won%27t-start.-Tried-fresh-Lion-Install-tp33…
Sent from the textmate users mailing list archive at Nabble.com.
The more I use TextMate 2, the more I wish I was better at text navigation. I'm quite good at tapping the arrow keys quickly while holding various modifiers, but here are some things I really wish I could do:
(If there's a way to do these already, great!, and I'm sorry for spamming. But if not, consider these feature requests for consideration.)
- When I have a range selected, I'd like a way to create two carets: one at the beginning of the selected range and one at the end. (A more keyboard-centric way of managing multiple carets in general would be great, too, but I think this would be a good start.)
- I'd like a more definitive way to select the next-higher code block, tag, etc.; ctrl-opt-B and shift-cmd-B are useful in some cases but the latter is limited in use and sometimes the former just selects the whole document because of the way things are scoped.
- With multiple selections or a selected range, pressing the up arrow key will put a single caret one line above the first selection/caret, and pressing down goes one line below the last one or the end. It would be nice to have a way to move up from the last line or down from the first line. (Perhaps a modifier to choose beginning/end and then the arrow key can dictate only which direction to move).
Thanks!
(Sorry if this is the wrong place for this: http://wiki.macromates.com/Main/BugReporting says to try the ticket system first, but the ticket system is not accepting new tickets. I guess that's a separate bug report.)
Since the first public 2.0 alpha, still in build 9090 at least:
In PHP mode, ^H brings up what I think is called the HTML Output pane in the lower third of the document window to show php.net documentation.
When this pane is visible, the rightmost segment of the main document status bar (now pushed above the pane) can be dragged up and down to resize the pane.
But it can be dragged down past the bottom edge of the window and "lost" such that the status bar is gone until the window is reopened.
Proposed bugfix:
- The HTML Output resize handle (the rightmost segment in the status bar) should not be draggable outside of the window boundary.
Proposed interface improvements:
- If the HTML Output resize handle is dragged to the bottom, the app should consider HTML Output "hidden" such that future invocations should show the HTML Output pane at its default size.
Currently, if you drag the handle down to make the HTML Output effectively 0 pixels high, the app still considers it open, so the next invocation of e.g. ^H will update the HTML Output window in its (hidden) place and appear to the user to do nothing.
- (Bundle-specific?) Repeating the same command (in the PHP case, ^H) that brings the HTML pane up should also hide it if it's already displayed (effectively invoking View -> Toggle HTML Output).
Thanks.
-Marco Arment
I am having no joy in getting this to work in my .tm_properties file.
[ *.{rb,erb,haml,js,html} ]
scopeAttributes = 'attr.save-on-deactivate'
Has anyone else got it to work? Any help would be appreciated.
Thanks,
Ed
Changing scopeAttributes in a .tm_properties file i.e. adding
[ *.tex ]
scopeAttributes = 'attr.save-on-deactivate'
does not update scope attributes in open files. Only .tex files opened
after the .tm_properties change will carry the new scope attribute. Not
sure if this is a bug or not, but it is worth noting as it does confuse
matters when trying test attribute-specific commands :-).
Cheers,
David.
When I open a file from PeepOpen or the command line that's inside a project,
it opens inside the project's window. But if I close the project drawer,
files open into new windows. I don't think hiding the drawer should change
that behavior.
--
View this message in context: http://old.nabble.com/Files-opening-in-new-window-tp33454169p33454169.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I haven't used TM2 too much. In TM1 I usually adjust the themes a little to my preferred level of contrast and do so by duplicating the theme and adding a prefix so I don't lose the original values. I was trying to adjust one of the themes in TM2 and found where they were located. It wasn't working as I thought it would. In the bundle editor I must have changed something. Now the theme just says ":false" and no matter what I do, I cannot fix it. I have even deleted the theme and replaced with the theme file from my desktop computer, restarted, etc. The theme is broken no matter what I try.
Any idea how to fix this? Also, where do the other themes go when they are installed via the preferences.
Thanks
jon
I've noticed, from working in the Ruby on Rails syntax, that certain file-types convert the tab key silently to spaces at whatever space-to-tab preference is currently set. YAML for example. I was just trying out some Python for the first time in forever, and noticed that it was using tabs instead of spaces, even though the surrounding document was entirely indented in spaces.
Is this something that is adjustable? Where would I look? I looked in the language definition in the YAML bundle, but nothing jumped out at me.
Thanks in advance,
Walter
When use a dark theme, the file drawer's background is white, how about let file drawer use the same theme as the editor area does.
Just a suggestion.
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
how to let textmate2 support different line endings in same project.
Most of my files are unix line ending, but some external libs dos line ending, I don't want to convert them.
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
In TM2, embedded ruby lines are sometimes being outdented as I type. Here's
an example:
= form_for(@consumer_enrollment, url: [@workflow], method: :put, html: {
class: 'uniform' }) do |f|
= f.fields_for(:consumer_prior_authorizations) do |prior_auth_form|
When typing the second line, hitting backspace at any point or typing the
first colon causes the line to outdent to the level of the first line. I
can't see any change in the scope, and it doesn't do this in TM1, so I don't
know what the issue is. Any ideas?
--
View this message in context: http://old.nabble.com/haml-embedded-ruby-outdenting-tp33409296p33409296.html
Sent from the textmate users mailing list archive at Nabble.com.
I getting about one TM2 crash a day.
Was wondering if the plugins I have installed for TM1 could be related -- or does TM2 have another path for it's plugins?
$ ls -l ~/Library/Application\ Support/TextMate/PlugIns/
total 0
drwxr-xr-x 3 stephen staff 102 Aug 27 2010 AckMate.tmplugin
drwxr-xr-x 3 stephen staff 102 Nov 28 2010 MissingDrawer.tmplugin
drwxr-xr-x 3 stephen staff 102 Nov 13 2007 TMTools.tmplugin
Also, when I get a crash the built-in OS crash-reporter comes up to send the report to Apple.
Are these crash reports useful for TM2 development and if so how can I submit them.
I DO have "Submit crash reports to MacroMates check ON. Does this mean the reports I submit to Apple get forwarded on to
MacroMates?
Hi,
TM2 indentation behavior seems erratic (one key I hit out of ten is
dedicated to revert the last automatic indentation action) so I
disabled from the C bundle "Indentation Rules" and "Indentation Rules
(Comments)" in the bundle editor - I'm editing ANSI C files.
However, TM2 keeps changing the indentation in some random way (from
my perspective, while TM1 was mostly right). Is some special action
required to tell TM2 to stop altering the indentation till it gets
fixed?
As a more generic question, is there a way to tell TM2 "cancel the
last automatic indentation and do not repeat it on the next key hit"?
I really do prefer to lose automatic indentation rather than fighting
the indentation engine with every single edited line.
Thanks,
Manu
Hello,
I am trying to set TM2 to by default, show hidden files, and black list everything that I don't want, instead of whitelisting things like .gitignore,.htaccess, etc
I was wondering if anyone has succesfully gotten something like this to work:
include = "{*,.*}"
exclude = ".git"
This still shows the .git folder in the file browser
-Byron