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.
Just upgraded to TextMate 2 (have not used TextMate in a while, glad to be back :-)
I’m also starting to try and due Rails development in TextMate. The Rails Bundle is dated, and so is only partially usable. I would like to start “fixing” that in my spare time. One thing, though, that would be nice, is the ability to edit Ruby code in the Bundle Editor. The files show up, but I cannot click on them. The only way I can edit is “mate …” from the command line the files I want to modify.
Not a big deal, but would be nice.
Is there any way to show the SVN new/modified/deleted lines on the editor, just like the Modific plugin (https://github.com/gornostal/Modific)?
I mean, some kind of line badges/colors to highlight the changes.
Thanks,
Rubén
Hello Everyone,
I've been participating in a thread on GitHub
(https://github.com/deplorableword/textmate-solarized/issues/52) that
has identified the selection of text in the Solarized Dark theme as a
real issue. It seems that implementation of
selectionForeground/selectionBackground may be one solution for the
frustrating issue. I wanted to see if there was a wider desire for a
solution to this problem here, and perhaps if there was more support for
the implementation of selectionForeground/selectionBackground.
Thanks,
Alex
I found a strange behavior that I believe is a bug. I am using 2.0-alpha.9503 on OS 10.9.1.
First I redefined the keyboard shortcut for "Comment Line" in the system Preferences. This command is from the "Source" bundle and appears as alternative shortcut to the default ⌘/ in the bundle menu (I used ⌘- in order to avoid the rather clumsy command for german keyboard layout).
Right after that both shortcuts work fine. After closing and reopening TextMate, only the default shortcut ⌘/ works, the new shortcut is now ignored.
When I select Bundles -> Source -> Comments I can see that the commands are still set correctly. After that, both shortcuts work again, until I close TextMate and open it again: the new shortcut is ignored until the menu selecting Bundles -> Source -> Comments is opened up, after that it works till closing TextMate again.
I was struggling some time with this issue, without solution. Now after testing for writing this bug report, at least there is a simple workaround. But maybe it can be resolved. I also tried changing the Bundle "Source" itself, but that didn't do the trick either.
Martin
I've found this great BlurMate plugin today for TM2.
https://github.com/cliffrowley/blurmate
It works great, I just wonder since it's just a few lines of code,
why background blurring is not included in TM2 already?
I always loved the blur in Terminal and thought that TM2 is not capable of it.
Found the plugin just by accident.
Some way to set the blur using "defaults" for example would be nice.
On 15 Aug 2014, at 18:37, riki wrote:
> Please find herewith my custom theme.
> […]
I do not see any issue here.
I saved your theme and switched to it. Then changed langauge to Fortran
— Modern and entered ‘recursive’. This keyword is shown in bold
and with a slight color change (rather subtle though).
The rule in my Fortran grammar does btw not include as many keywords as
yours. Did you edit the grammar? Did you verify that you get the storage
scope (using ⌃⇧P)?
In a .tex file, typing sec + tab prints code for a section header and label. Very handily, the label for the section header syncs with the actual section header the first time the section is typed. However, thereafter, if the section header changes, the label doesn't change. Is it possible to always have the label change whenever the section header changes?
Many thanks
Ross
Hi,
We’re writing a booking (currently LaTeX) and I’d like to be able to use TM themes in the code listings.
Any solutions for that?
We’re using LaTeX packages “listings” + “color” to do the syntax highlighting. It allows statements such as this:
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
Pretty basic… Anyone seen anything better (pygments?) Or even a way to convert themes to this style?
Thank you, and best wishes,
tim
TextMate has keyboard shortcuts to show the file browser
(option+control+command+D) and switch focus to the file browser
(option+command+tab), but I cannot find a keyboard shortcut to open a file
from the file browser. The only way I can find for opening a file from from
the file browser is by clicking on the file with the trackpad. Is there a
keyboard shortcut available to open files from the file browser?
Cheers
Ross
Hi,
I came across with a rendering bug,
to reproduce it copy the following two lines and paste them into a TM document:
587 3 402 ̃ wa:w.4 NULL NULL NULL NULL
591 3 402 kha:ŋ.4 kha:w.4 NULL NULL NULL NULL
On my machine OSX 10.9.1 TM 2.0-alpha.9503 these lines are rendered as shown in that picture:
The "problem" seems to be that TM is not able to get rid of a TAB {utf8: 09} (and I believe this's true for each CONTROL character) followed by a combing diacritic - in that case a combining tilde {utf8: CC 83}. The actual data in the TM window are correct, you can e.g. look for TAB characters. If you remove the combining tilde TM renders the text correctly.
I'm aware that this is actually my fault since a combining character shouldn't appear after a control character and "more actually" I'm glad that TM had this bug thus I could find my fault ;) but I think TM should do it like other Mac apps e.g. TextEdit.
For safety reasons I attached a UTF-8 text file containing both lines.
Cheers, Hans
I want to modify the regex in the PHP language bundle item that applies the meta.embedded.sql scope to a string. I did this successfully in TM1, but with TM2 I opted to start with a fresh set of bundles and have been having trouble adding this functionality back in.
The PHP code continuing a string of SQL is this:
$db->query("
UPDATE table
SET foo = bar
WHERE foo = '" . function($variable) . "'
");
I tried many variations of the following, added just below the existing meta.embedded.sql rule:
{ name = 'meta.embedded.sql';
begin = '(\$db)->(query)\((")';
end = '(\3)\);';
beginCaptures = {
0 = { name = 'variable.other.php'; };
1 = { name = 'meta.function-call.object.php'; };
2 = { name = 'string.quoted.double.php'; };
};
endCaptures = {
0 = { name = 'string.quoted.double.php'; };
};
contentName = 'source.sql';
patterns = ( { include = 'source.sql'; } );
},
I've even tried simplifying it with only the 'name,' 'begin,' and 'end' and the scope isn't applied where I'd expect it. I can't see why.
I also found this rule (here is only a portion), which I thought I would modify:
name = 'string.quoted.double.sql.php';
begin = '"\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\b)';
I tried changing this to:
begin = '"[\s\n\r]*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\b)';
so that it would match the code example above, but the regex doesn't seem to be matching over multiple lines; it only works if the quote mark is on the same line as the UPDATE.
Can somebody please show me how to do this (with whichever of the above rules is more better)?
Once I get a working rule, I would like to add this to a custom bundle that includes the default PHP grammar and adds this modification to it so that I have a stock PHP bundle that is unmodified. Does anybody have an example of an extended PHP bundle so I can see how this should be done?
Thanks thanks,
Quinn
I¹ve upgraded to Yosemite beta and cannot save files. If I try to save a
file, a box pops that says the following:
Failure running ³Strip trailing whitespace on save². interpreter failed: No
such file or directory
What can I do to resolve this?
Thanks
Ross
I’m currently updating the RSpec bundle’s readme. The most important
(and also most complicated) part deals with how to run RSpec examples
from TextMate using the correct versions of Ruby and RSpec.
I’d love to get feedback on this. Here is the current version (work in
progress, the relevant section is the one titled “Supports RSpec 1, 2
and 3“):
https://github.com/rspec/rspec-tmbundle/blob/update-readme/README.md
(Topics like “How do I get TextMate to use rbenv for running my Ruby
scripts” have popped up several times on this list, so this may be
interesting even for people not using RSpec.)
Feel free to add any suggestions or corrections to the pull request at
https://github.com/rspec/rspec-tmbundle/pull/80
Thanks!
Stefan
Today I tried to install a bundle via Preferences → Bundles, but it
didn’t work: When I click on the checkbox the statusbar says “Installing
…” for some moments before changing to “Installed …“, but the checkbox
is unchecked (and the bundle has indeed not been installed).
Tried everything from
https://github.com/textmate/textmate/wiki/Reverting-To-Defaults, but
didn’t seem to make a difference. Tested in alpha.9551 and alpha.9553.
Any ideas?
Stefan
I attempted to build the MacPorts textmate2 port, originally for 2.0-alpha.9537, and got an "unknown signee" error during configure when it attempted to download the bundles.
I reported it on MacPorts Trac: https://trac.macports.org/ticket/43466. That ticket contains the steps I took and also now contains what I did to get the build to work.
My problem seems very similar to
http://lists.macromates.com/textmate/2013-February/035922.htmlhttp://textmate.1073791.n5.nabble.com/Unknown-signee-errors-td25943.html
and
http://permalink.gmane.org/gmane.os.apple.macports.tickets/68860
I think that there might be a couple of issues in key_chain.cc.
In file key_chain.cc, the line
if(err = SecItemImport(data, NULL, &type, &format, 0, ¶ms, NULL, &items) == errSecSuccess)
causes variable err to be set to the result of the logical expression, whereas the intent is to set it to the return value of SecItemImport. Needs either parentheses or splitting into an assignment and an if(). I chose the latter as in the diff output below.
Also, the documentation for SecItemImport (at https://developer.apple.com/library/mac/documentation/security/Reference/ke…) shows that the sequence of parameters &type and &format is wrong. I reversed them.
These changes didn't fix the problem but at least showed that SecItemImport was returning errSecAddinLoadFailed. On a hunch, I changed both &type and &format to pass the "unknown" enum and that fixed the problem.
I've included below the diff of the resulting changes, with a long comment added explaining that I didn't investigate whether both &type and &format needed to be changed or just one. If I had to guess, I'd say it was &format.
I have no idea why this was a problem for me and not for others.
The diff:
*** /tmp/key_chain.cc 2014-06-12 15:55:45.000000000 +1000
--- /tmp/key_chain.cc_orig 2014-06-12 15:55:45.000000000 +1000
***************
*** 31,56 ****
bool res = false;
SecItemImportExportKeyParameters params = { .keyUsage = NULL, .keyAttributes = NULL };
! /*****************************************************
! /* Specifying the expected Item Type and Format
! * caused SecItemImport to return
! * errSecAddinLoadFailed.
! * I didn't check whether it was due to both being
! * specified or just one. Setting to the Unknown enum
! * worked.
! * Original code on next two comment lines.
! /* SecExternalItemType type = kSecItemTypePublicKey;
! /* SecExternalFormat format = kSecFormatPEMSequence;
! * Updated code with both vars set to unknown on next
! * two lines. */
! SecExternalFormat format = kSecFormatUnknown;
! SecExternalItemType type = kSecItemTypeUnknown;
CFDataRef data = CFDataCreateWithBytesNoCopy(NULL, (const UInt8*)_key_data.data(), _key_data.size(), kCFAllocatorNull);
CFArrayRef items = NULL;
OSStatus err;
! err = SecItemImport(data, NULL, &format, &type, 0, ¶ms, NULL, &items);
! if(err == errSecSuccess)
{
_sec_key = (SecKeyRef)CFArrayGetValueAtIndex(items, 0);
if(_sec_key != NULL)
--- 31,43 ----
bool res = false;
SecItemImportExportKeyParameters params = { .keyUsage = NULL, .keyAttributes = NULL };
! SecExternalItemType type = kSecItemTypePublicKey;
! SecExternalFormat format = kSecFormatPEMSequence;
CFDataRef data = CFDataCreateWithBytesNoCopy(NULL, (const UInt8*)_key_data.data(), _key_data.size(), kCFAllocatorNull);
CFArrayRef items = NULL;
OSStatus err;
! if(err = SecItemImport(data, NULL, &type, &format, 0, ¶ms, NULL, &items) == errSecSuccess)
{
_sec_key = (SecKeyRef)CFArrayGetValueAtIndex(items, 0);
if(_sec_key != NULL)
regards - David
I was looking through the fork's of the original Handlebars and bundle
(which doesn't work very well anymore in 2.x land). Anyway, found this:
https://github.com/savetheclocktower/Handlebars.tmbundle
which on appears to be written in a very thoughtful way and geared
specifically for 2.x but unfortunately it doesn't work perfectly for me and
I'm too busy at the moment to dig into it. Does anyone else have any
bundles that work well for Handlebars?
ken
p.s. the problem I'm having is that while block commands like #each are
being highlighted correctly the more basic {{foobar}} variable
substitutions are NOT being highlighted.
Is anybody else having trouble using the default "Replace Conflict With Older Text" and "Replace Conflict With Newer Text" macros? They don't seem to work for me.
If I try to record a new macro, it doesn't remember the 'replace' value. That is, it works until I run some other search/replace command then my new macro for resolving conflicts just runs the last-used replace value. The macro I recorded contains this:
(
{ argument = {
action = 'findNext';
findString = '(?m:<<<<<<<[^\n]*?\n(.*?\n?)=======\n(.*?\n?)>>>>>>>([^\n]*)\n)';
ignoreCase = :true;
regularExpression = :true;
wrapAround = :true;
};
command = 'findWithOptions:';
},
{ command = 'replaceAllInSelection:'; },
)
See, no replace value. So I added a 'replaceString' item manually:
(
{ argument = {
action = 'findNext';
findString = '(?m:<<<<<<<[^\n]*?\n(.*?\n?)=======\n(.*?\n?)>>>>>>>([^\n]*)\n)';
ignoreCase = :true;
regularExpression = :true;
wrapAround = :true;
replaceAllScope = 'document';
replaceString = '$1';
};
command = 'findWithOptions:';
},
{ command = 'replaceAllInSelection:'; },
)
But it doesn't use this value, only the last one used in the find dialog box.
Any ideas?
--
Quinn Comendant
Strangecode, LLC
http://www.strangecode.com/
+1 530 624 4410 mobile
+1 530 636 2633 office
@qc and @strangecode
I often paste some crap from some terrible MS Word document into Textmate
and then into something else. Don't inquire as to the unholy nature of my
burdens such that I'm doing this work, just be thankful it's not you.
Is there a bundle that will clean up those awful fancy double quotes,
ellipses, etc, that Word likes to use into plaintext versions? It'd be
great.
Thanks all! Long live TextMate.
--
Wells Oliver
wellsoliver(a)gmail.com
The markdown-redcarpet bundle [1] supports fenced code blocks with
syntax highlighing, for example for shell scripts. The grammar pattern is:
fenced_block_shell = {
name = 'markup.raw.block.markdown.fenced';
begin = '(^|\G)([`]{3})[ ]*(?:bash|shell|sh)$';
end = '(^|\G)([`]{3})(\n|\z)';
patterns = ( { include = 'source.shell'; } );
};
This works fine, unless if have a block like:
```shell
dd bs=1m if=foo.img of=/dev/disk1
```
Here, “if” starts the scope “meta.scope.if-block.shell”, and this scope
extends beyond the ``` the end of the fenced code block, resulting in
incorrect highlighting for the rest of the markdown file.
Is there a way to include grammars in a way making sure the included
grammar does not extend beyond the “end marker” in any case?
And: Could the rule for if-blocks in the shellscript bundle be more
strict (matching only '^\s*if\b' for example)? Is this rule needed at
all? (I haven’t found any other references to the scope “if-block” in
the shellscript bundle.)
Stefan
[1]: https://github.com/streeter/markdown-redcarpet.tmbundle
I’m now one of the maintainers of RSpec’s textmate bundle. We just fixed
a bunch of issues, so if in the past you experienced problems with the
bundle please try again with the latest version.
Feel free to submit any issues you encounter at
https://github.com/rspec/rspec-tmbundle/issues/
I’m also thinking of removing support for RSpec 1 – if you’re still
using the bundle with RSpec 1 please chime in at
https://github.com/rspec/rspec-tmbundle/issues/78
Stefan
My bundles have been broken since the change to specify ruby18 ("Point to ruby 1.8 shim”, e.g. https://github.com/textmate/source.tmbundle/commit/8b80da05 . I understand the PATH changes, but it’s not a path issue — there is no “ruby18” executable on my system at all. I DO have Ruby 1.8.7 installed (with rbenv), just no `ruby18`.
Wondering if my system is an outlier, or if others have experienced this? What is the “shim” that ruby18 should be pointing to?
Thanks,
David
I'm using the TextMate version 2.0-alpha.9551 build and wanted to make sure
I had the latest version of JSLintMate. I deleted the existing bundle from
within Textmate and then downloaded and installed the latest bundle by
double clicking the bundle file/package. That seems to work in the sense
that it pops a dialog to install the bundle and the bundle file is then
locatable in:
Application Support → Avian → Pristine Copy → Bundles
The problem is it doesn't show up in the bundle menu. I've tried a restart
but that didn't help. Any idea why I'm not getting the bundle registered?
Ken
Hello,
I'd like to know if there's a setting to free File Browser and HTML panes
width limits relative to editor's space.
*The use case:*
I often find myself with narrow window in which I hide those panes by
default and just bring up them at need (e.g. to create a new file or read a
rendered Markdown)
Thanks,
Elia
☁ @elia <http://twitter.com/elia> ✎ elia(a)schito.me
Is it possible to make a word a clickable hyperlink within .R, .txt, .tex
files? For example Author2014 within a .txt file would allow me to click to
a PDF stored on my mac called Author2014.
I¹m aware of the hyperlinks bundle, but this doesn¹t do what I need. I need
clickable hyperlinks within my code files.
Thanks
Ross
I'm in kind of a bad situation, and I lost a few days of work (no fault of
TextMate). I did most of my work with TextMate. Are there any caches for
edits I might look at to maybe recover some of them?
Thanks
Hi all
I want to count the number of citations contained within a .Rnw file and
show the result as a tool tip.
My .Rnw file looks like this:
\section{Methods}
<<plot_mtcars>>=
plot(mtcars)
@
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat \citet{Author2014, AuthorEtAl2014}. \citet{AuthorAuthor2013} duis
aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
in culpa qui officia deserunt mollit anim id est laborum.
\section{Results}
<<plot_iris>>=
plot(iris)
@
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. \citet*{Author1998} ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit
anim id est laborum \citep*{Somebody2014}.
Note that citation keys will be in one of these 3 formats: Author2014,
AuthorAuthor2014 or AuthorEtAl2014.
I would like to count the total number of citations within the .Rnw file and
the number in each section. In above example there are 3 citations in the
Methods section and 2 citations in the Results section.
Is this possible?
Thanks
Ross
From my - admittedly somewhat limited - experience with bundle grammars
I got the feeling that it’s often very hard to improve or fix a grammar
without accidentally breaking some other parts of it.
Has anyone already experimented with regression tests for bundle grammars?
I think to make this possible it would be necessary to somehow access
the “scope structure” of a parsed file, maybe yielding a data structure
like this:
[
{ start: 0, end: 123, scope: "source.sass" },
{ start: 7, end: 12, scope: "string.quoted.double.sass" },
…
]
Then a grammar could include both a “test source file” and its
known-good “scope structure”. After changing the grammar one could
(semi-)automatically regenerate the scope structure data and compare it
to the original to (hopefully) catch any regressions.
Any thoughts?
Stefan
If I do a project wide search in a project which contains static
libraries TM2 will search in the static library as well. I don't see how
that's very useful, could TM2 skip those by default?
--
/Jacob Carlborg
I would like to use Open Favorite more frequently but there’s a couple of things that always throws me off and makes it less productive for me. Not sure if they’re bugs or by design.
Say I have 4 favourites named F1, F2, F3, F4
I usually have multiple working windows open with the root folder being one of these favourites. So say I have 2 opened with favourites F1 and F2 and files opened in each.
Now I would like to open a third window with the root folder being F1 because there’s an unrelated feature or bug that doesn’t have anything to do with the files being edited in the first F1 project. (i.e. I would like to segregate and keep track of the files being worked on by using 2 different windows).
So I Shift-Cmd-O to bring up the Open Favorite popup and select one of the favourites and this is what happens:
In the latest nightly build, a new window opens and fills with a selection of open files from F1. This is actually new behaviour that I see when writing up this email. Could be it’s opening up some previously cached version of a F1 window?
In previous builds what happens is that the original F1 comes to the front.
What I was hoping is that a new window opens with the root folder being the favourite I selected.
Ed Wong
Hi,
I am using TextMate 2. I mad some changes in some bundles to suit my
individual needs, but these changes are all gone once bundles are
auto-updated. Is there a way to keep local changes when a bundle is
updating itself?
Thanks
--
--
Sent from my mobile. Ignore the typos unless they're funny.
Hi,
when using the awesome **rmate** to remote-edit some files I ran into
the problem that I had to use sudo for writing into a file.
ubuntu@ubuntu:/etc/apache2$ rmate httpd.conf
File httpd.conf is not writable! Use -f/--force to open anyway.
ubuntu@ubuntu:/etc/apache2$ sudo rmate httpd.conf
ubuntu@ubuntu:/etc/apache2$ /usr/local/bin/rmate:157:in
`initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
from /usr/local/bin/rmate:157:in `new'
from /usr/local/bin/rmate:157:in `connect_and_handle_cmds'
from /usr/local/bin/rmate:207:in `block in <main>'
from /usr/local/bin/rmate:206:in `fork'
from /usr/local/bin/rmate:206:in `<main>'
The documentation mentions a sudo-replacement *rvmsudo* which keeps the
environment. But this seems not to part of the standard repositories,
which makes it nearly impossible to install it on a clients machine.
Any idea?
Kind regards, Ingo
--
Ingo Lantschner
Hi there,
years back there was this nice flickr bundle for Textmate. Playing again the TM, is there something similar still actively maintained. I just found some old dead links.
Yours
Gil
hi,
i'm new on textmate and i need somme help please.
i instal fortran bundle with this method:
/cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/textmate/fortran.tmbundle.git/
and now i have this error:
//tmp/temp_textmate.n6H8uJ: line 20: gfortran: command not found/
i use textmate 1.5.11 with MAC OS X 10.9.3.
i did a similarly thing with gnuplot and it works.
Thank you for you help.
--
View this message in context: http://textmate.1073791.n5.nabble.com/Installation-fortran-bundle-tp27951.h…
Sent from the textmate users mailing list archive at Nabble.com.
I have a Windows share mounted via smb:// and TextMate won't save any
file I edit there. The error message is "Atomic save: Resource busy".
It's Windows 7 running inside a virtual machine (VirtualBox) and
Textmate is at 2.0-alpha.9547.
Is there anything I can do about this?
Regards,
Matthias
After 8 years using TextMate 1.x and a couple of years of reading about TextMate 2,
a new Mac and a move to Mavericks (from Lion) have prompted me to migrate my work to TextMate 2
Upgrades always bring surprises and shock to my workflow --- I have a couple of queries about
bundle management in TextMate 2
(1) In some standard bundles in TextMate 1, I moved items from Excluded Items
to the Menu Structure --- for example in the LaTeX bundle, I moved BibDesk Completion
to the Menu Structure and added the Key Equivalent of Ctrl+Cmd+B
--- in the TextMate 2 Bundles Editor there does not appear to be a way to
move an item from Other Actions to Menu Actions nor to edit the groups, separators or move items around
--- have I missed something obvious here ?
(2) I have a number of personal bundles for snippets in HTML, LaTeX, Haskell and Text
--- using the guidance in https://github.com/textmate/textmate/wiki/FAQ
I placed symbolic links to my bundle files in ~/Library/Application Support/Avian/Bundles
--- to activate them I had to delete ~/Library/Caches/com.macromates.TextMate/BundlesIndex.binary
(there was no BundleIndex.plist)
--- I there no way in the interface to force a reloading of bundles ? (I use symbolic links to my bundles so that any edits
get automatically synchronised to my other machines)
Apologies if this has been covered elsewhere --- I have done the usual searches.
Many thanks for an excellent editing environment
Phil
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Phil Molyneux E: molyneux(a)pobox.com
T: 020 8549 0045
M: 07885 426 323
71 Deacon Road, Kingston upon Thames KT2 6LS, UK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi,
I'm having a problem with my GitHub bundle. Even though there are changes,
I'm getting a persistent message, "No changes to commit within the current
scope. (Try selecting the root folder in the project drawer?)" when I try
to commit.
>From the command line, if I do 'git status', the file is shown has having
modifications. In the project drawer, SCM status, the file is shown has
having Uncommitted Changes. (I followed the advice here:
https://github.com/textmate/git.tmbundle/issues/11)
I suspect there is something minor going on, but I'm at a loss. Any advice
is greatly appreciated.
Thanks!
kelle
--
Kelle Cruz, PhD — http://kellecruz.com/
Lets say I have a file on desktop called called test.csv¹. I discovered by
accident that if I drag test.csv¹ to an R file, this code is pasted into
the R file:
read.csv(file = "../../../../Desktop/test.csv", header = TRUE,
stringsAsFactors = FALSE)
But if the file is a .xls file, only this get pasted into the R file:
/Users/rossahmed/Desktop/test.xls
How can I add a command that, when I drag a .xls file into an R file, this
get pasted in:
read.xls("/Users/rossahmed/Desktop/test.xls")
I've been using TextMate for a couple years now and I just learned about
rmate. It is a true lifesaver, because now I can stop using Emacs in ssh
terminal and start using a normal editor.
This feature is worth bragging about.
If I have a project open, and create a new file (CMD+N), I notice when I
try to save it, it doesn't default to the projects directory. Is there a
way to adjust this?
I know you can create a new file with SHIFT+CMD+N, but that forces you to
give it a name there and then, which is rarely what I want.
Im wondering if its somehow related to projectDirectory in .tm_properties?
Most of mine are set to "$CWD" just because every example I saw uses that.
If this is the cause, Is there a way to set project directory to the same
location as .tm_properties, without having to provide an absolute path?
The todo bundle triggers this message:
Failure running "Insert TODO List".
env: ruby18: No such file or directory
When I run ruby -v, I get
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
I'm on TextMate 9547 and Os 10.9.3
Do I switch paths to get to ruby 1.8?
Thanks for any advice.
--Gildas
The last couple of days I've run into a problem with the Duplicate Line
command. Ctrl-Shift-D
When I press the key sequence I get a dialog that says:
Failure running "Duplicate Line".
env: ruby18: No such line or directory
I use this command a lot and have not noticed problems in the past. I
don't recall making an bundle changes recently.
Hey,
a quick bugreport: sometimes the border of the file browsers gets lost:
http://pbrd.co/1lGgOcr
After hiding and showing it again the border reappears. Unfortunately I haven’t found anything to reproduce this yet – Textmate stays open in background almost all the time for me and sometimes the border is missing after getting it back from it’s hidden state.
Regards
Jannes
There's some very old iPhone.tmbundle bundle w/o any description, I presume it is Objective-C extensions for iOS development, moreover there's no Git repo for this bundle, so we should either:
(1) remove it, because it is really confusing
(2) rename it to "Objective-C iOS" and describe it as "Objective-C iOS SDK support" or string like that.
Regards,
--
Adam
Hi all.
I’m back on a topic we discussed several months ago, here in the list.
The problem was about how to run a Python Script which involves some user interaction:
***
print “Hello world.”
age = input (“How are old, dear world?”)
print “Ohh,”, age, “ so aged?”
***
The script ends with an ErrorCode 1, EOF.
Is there something to do to fix, or, is this issue somehow within the todo list?
Thanks.
Gabriel.
—
Namasté!
Sent from my iMac27. (Libero)
And a second report, this time with detailed steps to reproduce it.
The rectangle which represents the Incremental search (Ctrl + S) highlight is rendered wrong when the a line with highlight gets yanked.
1) Create a new document with the following content:
DEFGH
E
F
Almost everything works but with tabs/indentation it’s much more visible.
2) Press Ctrl + S, search for „DEFG“
3) See
[DEF]GH
E
F
http://pbrd.co/1lGhTRu
4) Press Keyboard Shortcut for Bundles->Text->Delete Line (Cmd + K for me). It looks like it behaves correct when selecting the command with the mouse from the menu.
5) See
[ E]
[ F]
http://pbrd.co/1lGhT43
Regards
Jannes
thanks!
Am 19.06.14 14:00, schrieb textmate-request(a)lists.macromates.com:
> 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: Uppercasing swallows characters (Matt Neuburg)
> 2. Re: Uppercasing swallows characters (Allan Odgaard)
> 3. Re: How to use a subversion repository with version texmate
> version 2.0-alpha.9547 (Allan Odgaard)
> 4. Re: Auto-highlight all occurrences of selected word
> (Allan Odgaard)
> 5. Executing Python scripts. (Gabriele Battaglia)
> 6. Re: Executing Python scripts. (Allan Odgaard)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 18 Jun 2014 08:10:56 -0700
> From: Matt Neuburg <matt(a)tidbits.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Uppercasing swallows characters
> Message-ID: <68C4486C-F666-45B2-BB92-CDA15A2E784E(a)tidbits.com>
> Content-Type: text/plain; charset=utf-8
>
>
> On Jun 18, 2014, at 4:41 AM, Andreas U Schmidhauser <au(a)schmidhauser.us> wrote:
>
>> But the important thing is that it's not limited to iota subscripts. Take the following two words from the text quoted in the earlier post:
>> ?????? ?????
>>
>> Capitalized:
>> ??????? ????
> Actually I get is even more of a mess: the Y and T are superimposed upon one another. m.
>
> --
> matt neuburg, phd = http://www.apeth.net/matt/
> pantes anthropoi tou eidenai oregontai phusei
> Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
> iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
> RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 18 Jun 2014 21:15:02 +0200
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Uppercasing swallows characters
> Message-ID: <A4EAC2C5-A964-418F-85F4-BF7CF98B044F(a)textmate.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 17 Jun 2014, at 11:20, Andreas U Schmidhauser wrote:
>
>> In certain situations, TextMate (on my machine at any rate) deletes
>> one or more characters at the end of a selected text if one uppercases
>> that text [?]
> Thanks for the report. It will be fixed in next build.
>
> FYI the bug was introduced ~2 months ago during refactoring.
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 18 Jun 2014 21:51:18 +0200
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: How to use a subversion repository with version
> texmate version 2.0-alpha.9547
> Message-ID: <E7B3F29D-0E95-479F-B441-4A646F83643F(a)textmate.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 16 Jun 2014, at 7:55, Reto M?ller wrote:
>
>> Since I updated to the new version of textmate I am not able to
>> connect to my subversion repository. If I navigate to Bundles -
>> Subversion - Check Out I get the following error [?]
> I have pushed a fix for this:
> https://github.com/textmate/subversion.tmbundle/commit/4d5e480fcaf022a7493d…
>
> Your bundle should update shortly, but until then, if you have a file
> open when you select Subversion ? Checkout then it should not fail.
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 18 Jun 2014 21:53:08 +0200
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Auto-highlight all occurrences of selected word
> Message-ID: <C12C0CE1-BD99-4AA7-ADA1-EFC8960BCE40(a)textmate.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 3 Jun 2014, at 4:20, Kelvin Wu wrote:
>
>> TextMate 1 or 2, is there a way to auto-highlight all occurrences of
>> selected word? [?]
>>
>> With TextMate I have to additionally hit Opt+Cmd+F [?]
>>
>> Ctr-S not really meets what I need.
> Beyond the options you already listed, there is no way to highlight all
> occurances of current selection.
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 18 Jun 2014 21:57:37 +0200
> From: Gabriele Battaglia <iz4apu(a)libero.it>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Executing Python scripts.
> Message-ID: <9407BB9D-4260-46EE-90C0-6EF20A602AA4(a)libero.it>
> Content-Type: text/plain; charset="windows-1252"
>
> Hi all.
>
> I?m back on a topic we discussed several months ago, here in the list.
>
> The problem was about how to run a Python Script which involves some user interaction:
>
> ***
> print ?Hello world.?
> age = input (?How are old, dear world??)
> print ?Ohh,?, age, ? so aged??
> ***
>
> The script ends with an ErrorCode 1, EOF.
>
> Is there something to do to fix, or, is this issue somehow within the todo list?
>
> Thanks.
>
> Gabriel.
> ?
> Namast?!
> Sent from my iMac27. (Libero)
>
>
Hi all,
Since I updated to the new version of textmate I am not able to connect to my subversion repository. If I navigate to Bundles - Subversion - Check Out I get the following error
/Users/rmueller/Library/Application Support/TextMate/Managed/Bundles/Subversion.tmbundle/Support/bin/checkout.rb:9:in `dirname': can't convert nil into String (TypeError)
from /Users/rmueller/Library/Application Support/TextMate/Managed/Bundles/Subversion.tmbundle/Support/bin/checkout.rb:9
In the version before a window was shown to enter the path to the repository.
Where can I place the repository string to checkout my files from the repository?
Thanks for any hint.
Cheers,
Reto
Hello
In certain situations, TextMate (on my machine at any rate) deletes one or more characters at the end of a selected text if one uppercases that text. This happens e.g. with certain glyphs and also with certain ‘diacritics’ such as the Greek iota subscript.
Three illustrations:
(i) außer
AUSSE
(ii) ϲκοπῇϲ
ϹΚΟΠΗ͂ (i.e., back in lower case, ϲκοπῆ)
(iii) ὅταν τι τῶν ἐμῶν δι᾽ ἐρωτήϲεωϲ ϲκοπῇϲ, ἐὰν μὲν ὁ ἐρωτηθεὶϲ οἷάπερ ἂν ἐγὼ ἀποκριναίμην ἀποκρινάμενοϲ ϲφάλληται, ἐγὼ ἐλέγχομαι, εἰ δὲ ἀλλοῖα, αὐτὸϲ ὁ ἐρωτηθείϲ.
ὍΤΑΝ ΤΙ ΤΩ͂Ν ἘΜΩ͂Ν ΔΙ᾽ ἘΡΩΤΉϹΕΩϹ ϹΚΟΠΗ͂ΙϹ, ἘᾺΝ ΜῈΝ Ὁ ἘΡΩΤΗΘΕῚϹ ΟἿΆΠΕΡ ἊΝ ἘΓῺ ἈΠΟΚΡΙΝΑΊΜΗΝ ἈΠΟΚΡΙΝΆΜΕΝΟϹ ϹΦΆΛΛΗΤΑΙ, ἘΓῺ ἘΛΈΓΧΟΜΑΙ, ΕἸ ΔῈ ἈΛΛΟΙ͂Α, ΑΥ̓ΤῸϹ Ὁ ἘΡΩΤ
(i.e. in lower case: ὅταν τι τῶν ἐμῶν δι᾽ ἐρωτήϲεωϲ ϲκοπῆιϲ, ἐὰν μὲν ὁ ἐρωτηθεὶϲ οἷάπερ ἂν ἐγὼ ἀποκριναίμην ἀποκρινάμενοϲ ϲφάλληται, ἐγὼ ἐλέγχομαι, εἰ δὲ ἀλλοῖα, αὐτὸϲ ὁ ἐρωτ)
Other apps such as TextEdit show the expected behaviour i.e. nothing is deleted.
My current workaround is to select a number of additional empty lines following the text selected, so that the deletions apply to that part only.
Encoding (in Preferences) is UTF-8.
Anyone any ideas?
Best,
Andreas
OS 10.9.3, TM 2.0-alpha.9547
(Apologies for opening a new thread - I intended to read the list only online but now I see that if I do that I cannot hit reply…)
Thanks, Matt. So I suppose that means it doesn't happen only on my machine.
> Though I notice it isn't round-tripping correctly either, e.g. the iotas are not being re-subscripted... I suppose that's a limitation of Unicode itself, though.
Correct - that's actually (for me) the intended behaviour since it allows me easily to convert subscript iotas to adscript ones.
But the important thing is that it's not limited to iota subscripts. Take the following two words from the text quoted in the earlier post:
ἀλλοῖα αὐτὸϲ
Capitalized:
ἈΛΛΟΙ͂Α ΑΥ̓Τ
Decapitalized:
ἀλλοῖα αὐτ
These are not isolated cases. For example, any text from the Thesaurus Linguae Graecae (www.tlg.uci.edu/demoinfo/demoauthors.php) will do.
Take Matt's credo, as it appears on the website:
Πάντες ἄνθρωποι τοῦ εἰδέναι ὀρέγονται φύσει. σημεῖον δ’ (21) ἡ τῶν αἰσθήσεων ἀγάπησις· καὶ γὰρ χωρὶς τῆς χρείας ἀγαπῶνται δι’ αὑτάς, καὶ μάλιστα τῶν ἄλλων ἡ διὰ τῶν ὀμμάτων. οὐ γὰρ μόνον ἵνα πράττωμεν ἀλλὰ καὶ μηθὲν μέλλοντες πράττειν τὸ ὁρᾶν αἱρούμεθα ἀντὶ πάντων ὡς εἰπεῖν (25) τῶν ἄλλων.
Capitalization, followed by decapitalization, results in a net loss of two words and one period - and there were no iota subscripts:
πάντες ἄνθρωποι τοῦ εἰδέναι ὀρέγονται φύσει. σημεῖον δ’ (21) ἡ τῶν αἰσθήσεων ἀγάπησις· καὶ γὰρ χωρὶς τῆς χρείας ἀγαπῶνται δι’ αὑτάς, καὶ μάλιστα τῶν ἄλλων ἡ διὰ τῶν ὀμμάτων. οὐ γὰρ μόνον ἵνα πράττωμεν ἀλλὰ καὶ μηθὲν μέλλοντες πράττειν τὸ ὁρᾶν αἱρούμεθα ἀντὶ πάντων ὡς εἰπεῖν (25)
Hi,
since I’m running several scripts/programs/etc. simultaneously with TM2, today I came across with an issue. I started two scripts with the same name “build.sh” but stored in different folders. After a period of time I realised that I missed something in one of the “build.sh” scripts and I wanted to stop it but I couldn’t see which of the window I should close since the headers of both windows were identical.
Would it be possible to add an hover effect or a new line mentioning the path or … to the runner window?
Thanks in advance,
Hans
Hi,
often I’m dealing with very large text files (~ 1GB) which are listed in my working folder. It can happen by accident that I click at such a big file and TM2 will become unresponsive for a while.
Would it be possible to at least add an alert or warning - which can cancel the opening process - if TM should open a big file (let’s say larger than 150MB - since TM2 works better with larger files than TM1.5)? Another idea would be to allow the cancellation of such a opening process by pressing CMD+W or whatever.
In addition to that:
I had opened some files and by accident I opened such a 1.4GB file. Ok, I killed TM2, and I reopen it while pressing SHIFT to avoid restoring the opened files. Fine, but then if I choose to open my working folder again, TM2 remembers all opened files (which is really cool) but it tries again to load this big file. My only workflow I’m aware of was to rename that big file temporarily after killing TM2.
Kind regards,
Hans
> On 12 Jun 2014, at 8:57, David Hislop wrote:
>
> > These changes didn't fix the problem but at least showed that
> > SecItemImport was returning errSecAddinLoadFailed. On a hunch, I
> > changed both &type and &format to pass the "unknown" enum and that
> > fixed the problem.
> >
> > […] I have no idea why this was a problem for me and not for others.
>
> What OS are you using?
>
> And you’re correct about the errors you found, I’ll get that fixed,
> thanks!
OS X 10.8.5
regards - David
Hi,
A long while ago Michael Sheets presented some designs for new TM2 header (tabs). However long time passed and there is no advancements in this subject. I wish to ask whether can we expect some activity, especially when Yosemite is commit and TM2 tab bar looks really bad in 10.10.
Cheers,
--
Adam
Dear all, I'm having the following error after running. Does anyone know how I can work around it?
sh: plutil: command not found Traceback (most recent call last): File "/Users/daniel/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/texMate.py", line 479, in tmPrefs = tmprefs.Preferences() File "/Users/daniel/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/tmprefs.py", line 51, in __init__ self.prefs.update(self.readTMPrefs()) File "/Users/daniel/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/tmprefs.py", line 78, in readTMPrefs plist_str = open('/tmp/tmltxprefs1.plist').read() IOError: [Errno 2] No such file or directory: '/tmp/tmltxprefs1.plist'
Dear all,
First of all, thank you to the developers for the hard work they put on
Textmate! I have been using it since 2009, when you had to pay for it, and
since then I have convinced about 5 people to use it.
Say that I am editing a C/C++ file, with plenty of nested loops and "if"
conditions. Is there a command to show an outline of these scopes and at
which level the caret is in such hierarchy? For example, if the caret is
inside this nested loop:
void func (int N) {
if (N<10) {
for (int i=0, i<N, i++) {
for (int j=0, j<N, j++) {
for (int k=0, k<N, k++) {
printf ("%g\n", i*j*k);
<caret is here>
}
}
}
}
} // end of func
I know that I can find the function name in the status bar, or by pressing
cmd+shift+t, but I am not aware about a command that would tell me that I am
in the *k-j-i* loop of the *if(N<10)* branch. This would be very handy as
some codes make heavy use of nested loops.
Thank you for your attention,
Guido
--
View this message in context: http://textmate.1073791.n5.nabble.com/Show-current-scope-block-but-not-Text…
Sent from the textmate users mailing list archive at Nabble.com.
Thank you Gildas.
1. Regarding templates: I'm not sure the following method is helpful, but I
> keep LaTeX templates in ~/Library/Application Support/LaTeX/Templates
> and in TextMate simply save a new document as file.tex, type temp + tab to
> choose one of my templates.
Re #1: This was what I did for years. The temp + tab function no longer
works. I get the message ``Failure running ``Latex Template'' LaTeX
Template:11:in `to_plist': no implicit conversion of Array into String
(TypeError) from LaTeX Template:11:in `<main>' ''
Previous text mate list entries indicate that the template function is
discontinued and that snippets should be used instead.
2. For snippets: when you are in "Edit Bundle", hit Command N, choose
> snippet, enable the item on the right, name it what you want, scope
> selector is text.tex.latex, choose key or tab trigger, write your template
> in the window at the bottom, save.
Re #2: Thank you! This is exactly what I want.
It still seems that I cannot delete old snippets or move them to other
areas of the bundle?
On Thu, Jun 5, 2014 at 8:00 AM, <textmate-request(a)lists.macromates.com>
wrote:
> 1. Regarding templates: I'm not sure the following method is helpful, but
> I keep LaTeX templates in ~/Library/Application Support/LaTeX/Templates
> and in TextMate simply save a new document as file.tex, type temp + tab to
> choose one of my templates.
>
> 2. For snippets: when you are in "Edit Bundle", hit Command N, choose
> snippet, enable the item on the right, name it what you want, scope
> selector is text.tex.latex, choose key or tab trigger, write your template
> in the window at the bottom, save.
>
> --Gildas
>
I want to further add, how do I delete old snippets/commands/bundles as
well. This does not seem possible within the TextMate Edit Bundle item.
E
On Wed, Jun 4, 2014 at 2:47 PM, <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. How to Create a Snippet to Replace a LaTeX Template (E. Enriquez)
>
>
> ---------- Forwarded message ----------
> From: "E. Enriquez" <enriquez.elaine(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Cc:
> Date: Wed, 4 Jun 2014 14:47:07 -0400
> Subject: [TxMt] How to Create a Snippet to Replace a LaTeX Template
> Hello,
>
> I'm suffering without the ability to immediately insert a LaTeX template.
> I understand the recommended practice is to create a snippet (which, in
> this case, will be quite large). Could someone point me to the instructions
> to or provide me with the instructions to create snippets for LaTeX in TM2?
> Further, it is not clear how to enter a snippet into the document.
>
> I have got to the "Edit Bundle" menu item but there is nothing like the
> screenshot from the online TextMate (
> http://manual.macromates.com/en/snippets). I've attached what I see to
> this email.
>
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
Hello,
I'm suffering without the ability to immediately insert a LaTeX template. I
understand the recommended practice is to create a snippet (which, in this
case, will be quite large). Could someone point me to the instructions to
or provide me with the instructions to create snippets for LaTeX in TM2?
Further, it is not clear how to enter a snippet into the document.
I have got to the "Edit Bundle" menu item but there is nothing like the
screenshot from the online TextMate (
http://manual.macromates.com/en/snippets). I've attached what I see to this
email.
All of a sudden Textmate Version 1.5.11 (1635) stopped compiling LaTeX files. Comes back with the error:
javac: invalid flag: /Users/wgibson/Mexico/TMP.tex
I have been using it successfully under Mavericks for quite a few months and then…nothing.
Tried TM 2 and the same thing…won’t compile
Failure running typeset and view…
Typeset & View (PDF):4: undefined method `+' for nil:NilClass (NoMethodError)
So I am trying the new MacTeX 2013 distribution…
Any thoughts?
Many thanks. BG
Hi All,
I just signed up, and I don't see a way to search the list.
I'm guessing that y'all prefer not to answer the same questions over and
over and over ...
So there must be some way to search the list ...
Right?
Thanks,
Douglas
[I posted this on IRC but my internet connection is intermittent, so I probably missed any replies…]
I'm having trouble adding a "wordCharacters" bundle setting, as per https://github.com/textmate/textmate/wiki/FAQ#how-do-i-set-which-characters…
I created a settings bundle item in the Source bundle containing "{ wordCharacters = '\w_.-'; }" and applied a sope selector of "text" but it's not taking effect. I have a document containing "… [test] …" and when I hit ^W while the cursor is in the word test the selection is made including the brackets (but shouldn't be). =(
Quinn
I just stumbled on the text-based Taskpaper project management protocol
http://www.macdrifter.com/2014/01/deconstructing-my-omnifocus-dependency.ht…
and belatedly realized there's been a related Textmate bundle ("Tasks"?) for some time. A little Googling found this bundle by Jess Martin that upgrades the original by Henrik Nyh:
https://github.com/jessmartin/taskpaper-tmbundle
Anybody had experience with using this as task manager? Are there other bundles out there I should be looking at?
Thanks!
jon
On Twitter as @jonippolito
According to the manual:
Closing Tabs
A common problem is being left with too many open tabs. In an attempt to counter that, TextMate will automatically close tabs that hasn’t been used in a while, when the tab bar overflows.
Is there any way of disabling this behaviour via a .tm_properties or defaults command?
Ed
Hi list
I'm running the newest TM2 on OS X 10.9 and can't get the shortcut for Show
Invisibles (alt+cmd+i) to work. When pressing the combination textmate
actives filter through command (cmd+i) instead.
Other alt+cmd shortcuts like show/hide linenumbers (alt+cmd+l) works fine
and is not activated by pressing cmd+... alone.
Can there be some form of collision so that cmd+i is checked before
alt+cmd+i and so one shortcut effectively blocks the other?
--
Ask Holme - 28 76 98 87
Turn wrap column to 80 (or 40). Make sure you disable word wrap, then click
Show Wrap Column.
All is well when you're typing-- the line does not wrap, though you see the
wrap column. However, comment a line automatically (command /) and the line
will be soft-wrapped. Uncommenting the line using command / will then
revert to not wrapping.
I'm writing python, so I'm not sure if it's a bundle issue, but it seemed
odd to me. Not a big deal by any means.
--
Wells Oliver
wellsoliver(a)gmail.com
I like to develop with soft wrap disabled, which works fine for PHP code
But for comments beginning with //, it still soft wraps them anyway
Is there a way to disable this?
Example:
<?php
// this is a very long string which shouldnt wrap this is a very long
string which shouldnt wrap this is a very long string which shouldnt wrap
this is a very long string which shouldnt wrap
$foo = "this is a very long string which shouldnt wrap this is a very long
string which shouldnt wrap this is a very long string which shouldnt wrap
this is a very long string which shouldnt wrap";
?>
One of the most attractive features of TM is the Go To File (CMD+T) feature.
1) But I wonder, is there any way to tell TM that you do not want to demote
files in the list, which are already open?
Example, if tabset.js is already open, and I CMD+T to navigate to
tabset.js, but it has been demoted right to the bottom.
This makes sense if you only have a few tabs opens, but mostly I do not
care if its already open, I just want to jump to it regardless (but end up
accidentally opening some other file instead).
2) I also notice that the list shows the directory each file is in, but
this is only shown after the full list has been populated. Is there a
reason for this? In this example I have lots of gearman scripts (worker.php
and client.php), and so to open one I have to wait until it shows all the
directory paths before I can see which one I actually want.
Hello all,
In the last update to TextMate I saw two project scopes were added
(Jekyll and Vagrant). What are the chances of making the logic behind
these scopes be exposed to bundles so that a bundle could set a scope on a
project? If this is already available and I've just missed it, please let
me know where to find more information.
--
Take care,
Jeremy Whitlock (@whitlockjc on Twitter)
http://www.thoughtspark.org