I'm working with a legacy codebase, some of which uses CRLF line endings,
mixed with more recent updates which use LF.
Textmate displays these as <CR>
Is there an existing bundle item which will strip the <CR> and make the
full file LF consistent?
I'd rather this was a manual action rather than Save As... or done
transparently, because it can complicate git conflicts if its not managed.
Thanks
Hi,
short question:
Is it possible for a command (Input: “Selection” - fallback to “Line” ; Output: HTML window) to replace the "Input selection" via Javascript's TextMate.system()?
TextMate.system("$DIALOG x-insert --text 'foo'", null) works but only for a selection and not for the fallback situation.
Has anyone an idea?
Thanks,
Hans
Hi,
Here's a crash I'm getting deterministically on hitting ⌘G, when the text can't be found (when no occurrence exists, or after all occurrences have been found, even with the wrap around option selected). I can reproduce the crash as follows:
- Create a new empty file, or open any existing text.
- Open the Find dialog, enter a Find string that doesn't exist in the document, close the Find dialog.
- Hit ⌘G. TextMate will always crash.
I'm more than happy to provide any additional information, and my apologies if this has already been reported.
enas
1. Is there a way to use the current selection for "Incremental Search"
(⌃S)? It would be great to have "Use Selection for Find" (⌘E) to do the
same for "Incremental Search".
2. When using the combo of "Use Selection for Find" (⌘E) and "Find All"
(⌥⌘F), the file is scrolled to the last match. If you're at the top of a
long file, having it scrolled to the bottom can be pretty disorienting. Is
there a way to reverse this to have the file scrolled to the first match?
3. Using the same combo as before, ⌘E then ⌥⌘F, is there a shortcut for
jumping through each match without deselecting the matches?
4. Is there a way to enable "Incremental Search" (⌃S) to highlight all
matches as you type, instead of just the first?
Thanks,
Ryan
Steps to reproduce:
* Set font size to larger than the default.
* Position the cursor towards the bottom of a file such that the
viewport is displaying the bottom part of that file.
* Switch to another tab.
* Switch back to the original tab.
* See that although the cursor is still in the same place, the
viewport is now displaying an earlier part of the file.
It looks as if the viewport position calculation is not taking into
account the larger font size.
Cheers, James.
Thanks for the hint.
I've experimented more than a couple of things and found the following
settings works for me, at least it's much better than broken.
Under 'Budles' => 'Edit' => 'Settings' => 'Indenting':
{ disableIndentCorrections = :true;
indentOnPaste = 'simple';
foldingStartMarker = '^\s*"""(?=.)(?!.*""")';
foldingIndentedBlockStart = '^\s*.*(:|-) ?(&\w+)?(\{[^}"'']*|\([^)"'']*)?$';
foldingIndentedBlockIgnore = '^\s*#';
}
foldingStartMarker was copied from Python setting.
foldingIndentedBlockIgnore was copied from the 'Fold on the Dotted Line'
section in http://blog.macromates.com/2012/the-layout-engine/
If I hold down ALT, I can use the mouse to select a rectangular block of
text
Just wondering if there is any way to do this using solely the keyboard?
Thanks
Hi,
When using the US-International keyboard layout, if you want to enclose selected text with quotes, single quotes or back-quotes by typing them, the originally selected text is deleted.
Those keys are used for diacritical accents by the US-International layout and require two keystrokes, the quote character itself followed by either a space to indicate you actually want the quote character itself, or a different character if you want to apply the diacritical accent on it. For instance a single quote ' followed by an a gives á. If the quote character is followed by a character that doesn't accept diacritical accents then the layout issues the two characters as they were typed, so a " followed by a w gives "w
I do most of my programming using the standard US layout but sometimes I need to switch to spanish or french.
A really insignificant bug, I know :p and I can certainly live with it, so this is mostly for information. It's good to know someone knows it's there :-)
Gualo
Textmate gets frozen for 15 seconds and then throws
```
JavaScript Warning
The command ‘ruby18 "/Users/igor1043k/Library/Application Support/TextMate/Managed/Bundles/Git.tmbundle/Support"/dispatch.rb "controller=log" "action=open_revision" "file_path=/Users/igor1043k/git/Bilbeo/Application/DataAPI/libs/models/Workspace.js" "revision=9201f304"’ has been running for 15 seconds. Would you like to stop it?
To avoid this warning, the bundle command should use the asynchronous version of TextMate.system().
```
This bug is very old and it looks like no one but me uses this feature. Maybe someone with ruby knowledge can fix this thing?
Thanks.
First, I like new commit window/sheet, very nice.
Second. it seems I cannot close the sheet with a keyboard shortcut if
there's a commit message present. Is that intentional? Note that when
amending there's always a commit message.
--
/Jacob Carlborg
A while ago, I reported a text field visibility bug in the Search & Replace window, and after updating to alpha.9565, I noticed it’s back.
When you bring up the Search & Replace window, anything you type in the search or replace text fields will not appear until you bring up the Search & Replace window again (e. g. by aborting and pressing Command + F again).
Does anyone else see that behavior?
Max
Is it possible to offer the Dockerfile bundle as part of the TextMate
config options? I think there's enough popularity (at least momentum)
behind Docker to make this worthy of being listed on the master list.
https://github.com/docker/docker/tree/master/contrib/syntax/textmate
Ken
I have a recurring problem where TM cannot detect file changes.
This is because I work on a a remote filesystem (Centos), which is mounted
via AFP.
Its actually a VM running on ESXI Server on my LAN, although a Vagrant or
VMWare setup is quite common now.
>From what I understand, TM uses kqueue or BSD's FSEvents for file
notifications (I suspect kqueue?).
Its causing me a lot of problems as I switch git branch and TM doesn't
always detect it, sometimes resulting in a file from another branch being
saved over the top.
A bit of googling shows there is libkqueue, which tries to provide a kqueue
interface on top of the underlying host OS, but its not clear to me whether
this would be suitable for a remote fs, even if it was feasible to compile
into TM.
Has anyone found a workaround to this please?
Hello,
in TM 1 the symbol list (on the right-hand side of the status bar) was sorted alphabetically, is there some way to get this back in TM 2?
Kind regards,
Tobias Jung
Hi,
I've found a document modified status issue when using "Replace all" with either project or folder Find in... dialogs
When the Replace All button is clicked all the matches are applied to the documents containing them, but the status of the affected documents (which where not modified before issuing the command) does not change to "modified" as it could be expected.
When you close the Find in... dialog it shows a dialog box with the option to save the affected documents.
The text in the dialog states that the changes will be lost if you don't save them, which is actually incorrect, or at least misleading, because if you select not to save the documents they still include the applied changes. Their "modified" status though doesn't reflect this.
To reproduce the bug just open two or more files that contain a common string, open a Find in... dialog and do a replace all of that string, check the documents' statuses.
Unless I'm missing something obvious I believe that the additional "save documents" dialog is a lot of work just to save the "⌥⌘S" I'd issue anyway in most cases, but not always.
Also, given that the Find in... dialogs aren't modal, so the user can switch back to the documents and continue working, when he gets back to the Find dialog and closes it he may not always remember the context in which he executed the replace operation. When that happens my " keep the control" attitude always forces me to select not to save them ;-)
If a builtin "save changes" option is nevertheless required then I believe that an additional "Replace All & Save" button could be more effective.
To minimize real estate usage this button could be placed immediately to the right of the Replace All button with just "& Save" as the label. Alternatively, given that in this case the "Replace & Find" action button is apparently always disabled it could simply replace it.
Thanks
Gualo
Fortran storage modifiers do not appear with colours although they have set to this in the used TextMate theme and language
grammar.
In my custom theme, I have set
{ name = 'Storage';
scope = 'storage, storage.type, storage.modifier';
settings = {
fontStyle = 'bold';
foreground = '#003366';
};
which is clearly directing syntax colour for storage, storage type, and storage modifier.
In Fortran bundle, the grammar of Modern Fortran contains information of storage modifiers
{ name = 'storage.modifier.fortran.modern';
match = '\b(?i:(kind|len|optional|recursive|pointer|allocatable|target|private|public))\b';
},
Any idea how to get syntax colors for storage modifiers in a Fortran code? I have tried but did not get success.
It'd be great if TextMate could show the full path in the title bar of the
window, and in the Window drop-down because it's kind of driving me batty,
having projects opened with similar file names.
Is this an option?
--
Wells Oliver
wellsoliver(a)gmail.com
On 03 Sep 2014, at 08:00, textmate-request(a)lists.macromates.com wrote:
> I can?t reproduce this with 2.0-alpha.9563 but there have been a lot
> of changes done to the find dialog, so I assume it has been fixed,
> otherwise let me know.
Shortly after my post, alpha.9563 was made available for download. Indeed, Search & Replace works as expected now, I think the issue has been fixed.
Thanks!
Max
Hi,
using the Perl gramar, if I have the cursor on a package name, like
Time::Mo|ment, (| is the cursor) and I try to get help, it should try to
get help on Time::Moment but right now it only uses Moment.
I had this problem with TM1 also but I fixed it by including : in the
definition of the "word". I don't know if this is still the way to do it on
TM2 or if there is a better way.
Suggestions?
Thanks,
--
Pedro Melo
@pedromelo
http://www.simplicidade.org/
xmpp:melo@simplicidade.org
mailto:melo@simplicidade.org
The search and replace window has a serious bug: the text in the search and in the replace text fields is not updated as you type, meaning whatever was in these fields from the last search is displayed properly. But if you edit the text in one of the fields, it is not updated. Functionality-wise, everything still seems to work, meaning that the text you’ve entered blindly in the search field still is what TextMate searches for and the text in the replace text field is what the search term will be replaced with.
Also, if you do a search all, the first time you press the button Search All, the Replace All button remains grayed out. Only after pressing Search All a second time does the Replace All button become active.
Does anyone else have the same problem?
Max
Hi all,
As of only very recently, I get the following drop-down error box when I
try to typeset a LaTeX document:
| Failure running "Typeset & View (PDF)".
|
| Typeset & View (PDF):4: undefined method `+' for nil:NilClass
(NoMethodError)
I think it was working until 1-2 updates ago.
Andrew
Is there a way to have TextMate remember the tab settings for a specific
file? I seem to recall that TextMate 1 did this.
I have a file with a .txt extension that I would like to always be set to
indent size 2 with soft tabs.
In my default .tm_properties file I have the a [ text.plain ] section that
sets the defaults to 8 and no soft tabs so I assume that this is why the
file is always opened with these settings. I would like to make this one
file an exception, but it is not part of any particular "project" just a
one off file.
I suppose I could add an entry in my default .tm_properties file for each
specific exception to the rule, but was hoping there might be a way that
wouldn't involve this.
Thanks.
On 15 Aug 2014, at 19:16, riki wrote:
> […] In the following code:
>
> […] I checked scope as you suggested. I got storage modifier scope
> […] but not for allocatable.
The issue is not related to your custom theme but rather the Fortran
grammar.
The Fortran - Modern grammar includes Fortran - Punchcard. This grammar
has a rule for ‘meta.specification.fortran’. In this rule, a new
context is started, and only Punchcard rules are included into that
context, this is line 69 in the (Punchcard) grammar which is:
patterns = ( { include = '$self'; } );
If we change this to instead include the Modern grammar then it works:
patterns = ( { include = 'source.fortran.modern'; } );
There are other places where Punchcard includes Modern (it actually
includes $self + Modern, but here $self is redundant since Modern
includes Punchcard).
I do not know about this Modern vs Punchcard, it seems that if Punchcard
is made to include Modern (as it already does) the two grammars should
just be combined into a single one, which would make parsing more
trapsnarent.