I had to reinstall OS X when upgrading to El Capitan I used to be able to use option-R to run an R script. It no longer works.
I’ve searched and tried various things but nothing works. The interface has changed and I can’t figure out the bundle process.
I need help. How do I fix this?
————————
Pete Versteegen
pitiur(a)gmail.com
I purchased STATA 14 yesterday and noticed that the Textmate 2 bundle no longer works as well with it. When I go to run (COMMAND-R) a program from within Textmate 2, it brings up a temporary file to run from within STATA (as opposed to just running it entirely). I don’t see a lot of options to change anything, so I’m unsure how to proceed. Any help would be appreciated.
Hi,
Is there a way to break, speed up or otherwise avoid Textmate from (temporary) hanging when opening a large file without line breaks (for example a large xml or json file without line breaks)?
It would’ve been nice if each window or tab ran independently from eachother, at least the one hanging window wouldn’t stop me from working… I’m waiting on a beachballing Textmate right now trying to open a 4,5MB xml file…
In comparison, the finder preview (cmd-I) opens and shows the file in under a second… syntax coloured and all…
Best regards,
Bas
Hello,
I’m working on textmate 2 command that will process data from a file and insert some some information into the activate textmate document
I’ve got the bulk of the job working pretty well except I’d like to ensure the data is allows added to the top of the file. Can anyone tell me how to ensure the cursor is at the top of the document before I insert my data?
Thanks for any help
Gary
Related to my other question:
http://textmate.1073791.n5.nabble.com/Bundle-editor-does-not-update-name-co…
Formerly I tried to sync my bundles via a symlinks to a Dropbox location,
but that was not reliable causing FSEvents to not always work. Wouldn't it
be nice that TextMate, when in a bundle a .git folder with remote is
present, makes automatically a git pull when there are changes in the
remote. In the same way it is done for the build in bundles! So you can
sync/update your (private / non build in) bundles in a proper way.
Regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/Suggestion-git-pull-for-private-perso…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
Came in yesterday to find that pdflatex had written a 256GB .log file (only stopped because that filled the space on my ssd… and dropbox was studiously uploading to my shared pals folders :-) ).
I had closed the typesetting window, saying yes to the resulting “kill processes dialog” (pdflatex was in an endless loop trying to process an errant latex script), but that doesn’t kill pdflatex (as can be seen in the activity monitor). You can end up with multiple pdflatex instances all ownerless, and only killing them manually works to end them.
Textmate obviously can’t kill processes spawned by bundles in case they are supposed to be continuing, but perhaps shutting the latex TypeSetting bundle could ensure that closing the typesetting window/ending watching could send a kill/quit signal to pdflatex?
Best, tim
Hi,
I'am updating/ organizing all my snippets and commands, because I want to
use git in order to "sync" my bundles between my Macs.
Digging into the Package Content, it seems that the Bundle Editor does not
update the [name].tmSnippet or [name].tmCommand when changing it's name! It
keeps the initial name (so sometimes untitled).
I assume this is not intended to be! Am I right this is a bug?
Can I for the time being change the name via Finder without any
consequences?
Regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/Bundle-editor-does-not-update-name-co…
Sent from the textmate users mailing list archive at Nabble.com.
Tweets can give the link to another site, for example, the wiki.
Greg
>
> From: fukurokujo <fukurokujoe(a)googlemail.com>
>
> we could make some kind of wiki or repository for TextMate tips and a bot for twitter that tweets them once in a while.
> That way everyone could look at the whole list, contribute and gets informed about new or random ones.
>
>
>> On 13 Feb 2016, at 12:32, Elia Schito <elia(a)schito.me> wrote:
>>
>> Just for the record I still have access to the tm2tips Twitter account if anyone's interested in reviving it.
>>
>> Elia Schito
>>
>> On 12 Feb 2016, at 13:18, George McGinley Smith <george(a)gsgd.co.uk <mailto:george@gsgd.co.uk>> wrote:
>>
>>> There was this tumblr a while back, but seems to have fallen by the wayside ? http://tm2tips.tumblr.com/ <http://tm2tips.tumblr.com/>
>>>
>>> On 12 February 2016 at 02:33, Carpii UK <carpii.uk(a)gmail.com <mailto:carpii.uk@gmail.com>> wrote:
>>> For me, the problem with tweets is they're too short to provide anything useful, at l least in terms of TextMate tips
>>> Likewise the mailing list isn't really an appropriate arena for them.
>>>
>>> New TM users are very unlikely to search the mailing list archive to find tips, so it would only be helping the userbase who were subscribed at the time of posting
>>>
>>> I'd much rather see a wiki, which everyone can contribute to, and develop it into a good TM guide.
>>> Right now the docs are a little outdated and ambiguous, with many articles referencing TextMate 1 (but not always making this clear)
>>>
>>>
>>> On 12 February 2016 at 00:16, Music <akakie(a)gmail.com <mailto:akakie@gmail.com>> wrote:
>>> If you go for tweets, please announce that on the list. I'm not a great fan of tweets, but a daily hint sounds interesting.
>>>
>>> --Lewy
>>>
>>>> On Feb 11, 2016, at 8:54 AM, Phil Schumm <pschumm(a)uchicago.edu <mailto:pschumm@uchicago.edu>> wrote:
>>>>
>>>> On Feb 11, 2016, at 10:34 AM, Tim Bates <timothy.c.bates(a)gmail.com <mailto:timothy.c.bates@gmail.com>> wrote:
>>>>> why not tweet it? That way it?s discoverable by many more people, will help promote Textmate, and won?t take over this list
>>>>
>>>
>>> Kind regards,
>>> George.
** Steps to Reproduce: **
1. Open a directory/project with one or more files
2. Rename any file from inside TextMate
3. Click on "Go > Go to File" or press CMD-T
4. Search for the old filename
5. Search for the new filename
** Expected Result: **
The old filename should not appear in the "Go to File" box, when searched.
The new filename should appear in the "Go to File" box, when searched.
** Actual Result: **
The old filename appears in the "Go to File" box, when searched.
The new filename does not appear in the "Go to File", when searched.
** Environment: **
- OSX 10.11.12 (El Capitán)
- TextMate 2.0-beta.8.5
- Code working in: PHP (tested with php files)
Would someone like to put out a Hint of the Day on this list? I’d appreciate it. Could include changes and improvements too. I know it would be some work, and wold require tracking old hints, but they could be accumulated in a web page for our reading.
Or maybe the others on the list would hate it.
Greg
Thanks to all the help from this list: my GitHub Markdown bundle now supports (in some form) all the functionality in GitHub Flavoured Markdown and has a preview feature that displays them all. Check it out:
https://github.com/mikemcquaid/GitHub-Markdown.tmbundle
I’m interested in working on what’s required to get this as an “official” bundle; what would that require? I’m happy to make changes and fix issues that may block this being changed.
Cheers!
Mike McQuaid
http://mikemcquaid.com
Hi,
When pressing CMD-SHIFT-D in a PHP-file (Jump to Included File), only files
with an absolute path to the file are recognized:
Tooltip error: file not found.
Also when pressing ESC when the CMD-SHIFT-D pop-up tooltip is active, the
following error occurs:
Failure running "Jump to include File"
Command return status code 1
I'am using TM 2.0 beta 8.6 and OSX 10.11.3n (also happens with TM beta 8.5)
regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/Jump-to-included-file-does-not-work-f…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I've just upgraded by Mac to El Capitan, using a clean install.
Now when pressing CMD-R (refresh running browser(s)) in a HTML-document,
TextMate keeps asking via a popup for the Google Crome and Camino App (both
not installed). See image.
<http://textmate.1073791.n5.nabble.com/file/n29767/textmate.jpg>
TM should not ask for this, because the Apps are not installed (and so not
running ;) ).
Is there a way to prevent the popup is showing?
I'am using TM 2.0 beta 8.6 and OSX 10.11.3
regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/HTML-refresh-running-browsers-issue-o…
Sent from the textmate users mailing list archive at Nabble.com.
Hi All-
TextMate looks terrific! Thanks Allan for making it available under the
GNU General Public License! I installed the binary and it works for me,
but I'd like to build it from source, and I'm having a bit of trouble
with that.
At https://github.com/textmate/textmate I see the following instructions:
==============
In the simplest case you would run:
$ git clone https://github.com/textmate/textmate.git
$ cd textmate
$ git submodule update --init
$ ./configure && ninja
==============
I did all the prerequisites using homebrew without apparent problems:
==============
$ brew install ragel boost multimarkdown hg ninja capnp
google-sparsehash libressl
$ brew install proctools
==============
But the last step in building TextMate (./configure && ninja) fails for
me with:
==============
...
[445/1150] Compile ‘Applications/commit/src/commit.mm’…
FAILED: xcrun clang++ -include
/Users/alpha/build/TextMate/Shared/PCH/prelude.mm -c -pipe -fPIC
-gdwarf-2 -m64 -mmacosx-version-min=10.7 -funsigned-char
-D'NULL_STR="\uFFFF"' -DREST_API='"https://api.textmate.org"' -Wall
-Wwrite-strings -Wformat -Winit-self -Wmissing-include-dirs
-Wno-parentheses -Wno-sign-compare -Wno-switch -IShared/include
-fcolor-diagnostics -DNDEBUG -Os -DCOMPILE_DATE=\"`date +%Y-%m-%d`\"
-fvisibility=hidden -std=c++1y -stdlib=libc++ -fobjc-abi-version=3
-fobjc-arc -fobjc-call-cxx-cdtors -o
/Users/alpha/build/TextMate/Applications/commit/src/commit.o -MMD -MF
/Users/alpha/build/TextMate/Applications/commit/src/commit.o.d
-I/Users/alpha/build/TextMate/include Applications/commit/src/commit.mm
Applications/commit/src/commit.mm:1:10: fatal error:
'CommitWindow/CommitWindow.h' file not found
#include <CommitWindow/CommitWindow.h>
^
1 error generated.
[445/1150] Run test ‘/Users/alpha/bu...TextMate/Frameworks/scm/test_scm’…
ninja: build stopped: subcommand failed.
==============
It's strange because the reportedly missing file is apparently present
(if not exactly where ninja seems to be looking for it):
==============
$ pwd
/Users/alpha/sources/textmate
$ find . -name "CommitWindow.h"
./Frameworks/CommitWindow/src/CommitWindow.h
==============
I didn't think I would need to set any of the variables:
=================
builddir — location of built files. Defaults to ~/build/TextMate.
identity — for Apple’s codesign. Defaults to ad-hoc signing, which
does not use an identity at all.
boostdir — location of boost includes. By default it will search
various locations including MacPorts and Homebrew.
sparsedir — location of sparsehash includes. By default it will
search various locations including MacPorts and Homebrew.
CC and CXX — C and C++ compiler.
=================
so I didn't, but maybe I need to set boostdir manually?
Any advice on this, or is this a bona fide bug in the build process
(seems unlikely)? I've never filed an issue in github. Is that how I
would go about reporting a bug?
Thanks!
Best,
Kevin
A couple of ideas here:
Simulate a command + up arrow keypress, with Applescript or other.
or
open a url; txmt://open/?url=file://[YOUR PATH HERE]&line=0
From the command line its just
open txmt://open/?url=file://[YOUR PATH HERE]&line=0
Thanks,
Graham Heath
On February 10, 2016 at 8:59:41 AM, Gary Ash (gary.ash(a)icloud.com ) wrote:
Hello,
I’m working on textmate 2 command that will process data from a file and insert some some information into the activate textmate document
I’ve got the bulk of the job working pretty well except I’d like to ensure the data is allows added to the top of the file. Can anyone tell me how to ensure the cursor is at the top of the document before I insert my data?
Thanks for any help
Gary
_______________________________________________
textmate mailing list
textmate(a)lists.macromates.com
http://lists.macromates.com/listinfo/textmate
Hello. Quicksilver is able to get the selected text and the currently
open document from TextMate using standard Cocoa stuff, but I’ve
always wanted a way to grab the file(s) selected in the File Browser.
This will require a new Quicksilver plug-in, but I can handle that end
of it.
Is there any way to ask TextMate for the selected file(s) when the
browser has focus?
And once I tell Quicksilver to use some app-specific selection behavior,
the currently working text selection is going to break, so I need a way
to get any selected text in the editor when it has focus as well.
If this isn’t currently possible, could it be added?
Thanks!
--
Rob McBroom
http://www.skurfer.com/
When using Command-R in the LaTeX bundle to typeset a document, the pdf opens at the page corresponding to the position of the cursor in the source. Watch Document, however, has the pdf open on the first page of the document, not the page corresponding to the position of the cursor in the source, and without the red dot on the precise passage. One needs to use Command-Option-Control-O to sync. Is it possible to have the Watch command sync the pdf right from the outset?
--Gildas
Hi,
thanks for the tip!
Command + [1-9] does the job, I wonder if that could be done
programmatically though.
I'm building a bundle to interact with Extempore, an environment used
(among other things) for audiovisual livecoding. More info here:
http://benswift.me/2012/09/26/interacting-with-the-extempore-compiler/
Essentially, the bundle [1] reads a scheme expression then sends its to the
Extempore server via TCP. The server returns some results which get printed
out to the HTML window (with some bells and whistles - that's why I'm not
using a simple tooltip).
The links you've suggested look very interesting but maybe a bit too
complex for my usecase? *Livereload* does not seem to be free though. I
should look more into *Browsersync*..
Thanks,
Michele
[1]
https://github.com/lambdamusic/xtm-utils/tree/master/textmate-bundle/Extemp…
(still a work in progress!)
----
Michele Pasin
http://www.michelepasin.org
On 4 February 2016 at 00:50, Graham Heath <heathg(a)google.com> wrote:
> You could use Command + [1-9] to reselect a tab.
>
> I don’t know what you’re building, but if you wanted to, you could add
> LiveReload <http://livereload.com/> or BrowserSync
> <https://www.browsersync.io/>, this would take care of auto refresh for
> you. This way you would only open the HTML output once, and refreshes would
> be triggered automatically on save.
>
> Graham Heath
>
> On February 3, 2016 at 3:42:44 PM, michele.pasin(a)gmail.com (
> michele.pasin(a)gmail.com) wrote:
>
> Ps: apologies for the email subject - sent too soon!
>
> Michele
>
>
> > On 3 Feb 2016, at 18:23, Michele Pasin <michele.pasin(a)gmail.com> wrote:
> >
> > Hi folks,
> >
> > I have a bundle command that generates some text and sends it to the
> 'HTML output' panel.
> >
> > That works wonderfully, however each time I do that the focus (cursor)
> switches to the 'HTML output' panel too.
> >
> > So I was wondering if there's a way to keep the focus on the main editor
> window (so to use the panel just as a nice 'feedback' window) and keep
> coding without interruptions.
> >
> > Any ideas?
> >
> > cheers
> > Michele
> >
> >
> >
> >
> >
> > <Screen Shot 2016-02-03 at 18.11.39.png>
> >
> >
> >
> >
> >
> >
> >
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
>
Hi,
I'm using TextMate 2.0-beta.8 on OS X 10.11.1 with v3.2.1 of the Go bundle
from:
https://github.com/syscrusher/golang.tmbundle
When I type "fmt." and press Option+Escape for code completion, it
uses TextMate::UI.complete with the :case_insensitive => false option.
That didn't seem ideal to me. All exported identifiers in Go begin with a
capital letter, but in terms of filtering, I would expect lowercase "p" to
filter to Print just as well as an uppercase "P".
So I modified the bundle, and then I saw why it is set the way it is.
In the completeAndInsertSnippet method of TMDIncrementalPopUpMenu.mm there
is a line that inserts the text being used for filtering rather than the
text from the choices.
insert_text([candidateMatch substringFromIndex:[[self filterString] length
]]);
The result is that fmt. [option+esc] [p] and pressing [Enter] gives me:
fmt.print
rather than the desired:
fmt.Print
I'm not really sure why it's done this way? Are there situations where
people want their filtering keys over the text present in the menu?
While I'm talking about code completion, and to drive the point home, I
noticed that TMDIncrementalPopUpMenu uses a BEGINSWITH predicate. Ideally
it would use a fuzzy match with similar logic to Go To File... That would
allow typing something like:
fmt. [option+esc] [p] [l]
to get Println from the list of candidates. In this case it becomes obvious
that "pl" is only for filtering and should not be inserted.
Finally, it would be great if it was possible to set an (additional) Key
Equivalent with a delay so that the popup menu came up when pressing ".",
or perhaps something more sophisticated based on the language grammar. I
realize that not everyone likes code completion popups automatically
appearing, but it would be nice to at least have the option.
Thanks,
Nathan.
--
Nathan Youngman
https://www.nathany.com
Hi folks,
I have a bundle command that generates some text and sends it to the 'HTML
output' panel.
That works wonderfully, however each time I do that the focus (cursor)
switches to the 'HTML output' panel too.
So I was wondering if there's a way to keep the focus on the main editor
window (so to use the panel just as a nice 'feedback' window) and keep
coding without interruptions.
Any ideas?
cheers
Michele
[image: Inline images 1]
Can see no templates in Textmate 2. Am I missing something?
How can I convert some Textmate 1 bundle templates (AS3) to work in TextMate 2?
Thank-you. Simon Lucas
My 2 cents. I’m not taking sides because I don’t use MD that much, but I noticed that the Michael Sheets version has more options, so we would need to have both of them installed which isn’t a big deal, but still. What are the differences between your version and his?
Greg
> On Jan 31, 2016, at 6:08 PM, textmate-request(a)lists.macromates.com wrote:
>
> GitHub Markdown Bundle (and making it official) (Mike McQuaid)
how to convert multiple lines into ordered or un-ordered list in TextMate2.
I have tried the funcitons under "Lists" submenu, but didn't work.
Any suggestion about the MarkDown bundle, or any other alternatives?
[image: 内嵌图片 1]
====================
*with best regards,*
Jacky Wu
*jacky.wucheng(a)gmail.com <jacky.wucheng(a)gmail.com>*
weibo: @object
====================
Hi,
Sometimes the scroll bar at the bottom of the window indicates that there is a very long line somewhere, but a visual scan scrolling from top to bottom of the file doesn't show any line going beyond (or even near) the right edge of the window. This isn't a show stopper of course, but it would be nice to have a command of the form "select the longest line in the file and scroll to show it". Is there such a thing? If not, is there an easy way to add on a user tool to do the trick?
Thanks,
Bill
Hello!
I notice that if I hit Cmd-S TextMate is smart about not saving files when that’s not necessary. There are some situations where this behaviour is not desired e.g. triggering a filesystem event for `guard`. Is it configurable at all or either a project or global level?
Thanks!
Mike McQuaid
http://mikemcquaid.com
Hi!
I’m trying to match the triple-backticks raw block Markdown extension e.g.:
```
this is a raw block
```
I’m using the following pattern:
{ name = 'markup.raw.block.markdown';
begin = '(^|\G)([`~]{3,})';
end = '(^|\G)([`~]{3,})';
beginCaptures = { 2 = { name = 'punctuation.definition.raw.markdown'; }; };
},
Unfortunately this just seems to never “end” and just matches the “begin” repeatedly.
Does anyone have any suggestions here?
Thanks!
Mike McQuaid
http://mikemcquaid.com
After the latest update, whenever I run ‘mate' from the command line, I get this message: 'Can’t launch TextMate.app (error -10810)’. Once I start Textmate, if I uninstall the command line support, and re-enable it, ‘mate’ works until the next reboot.
Anyone know why that might be?
Hi!
Another question about my GitHub Markdown bundle (which I’d like to propose become official when it’s good enough).
The underscore handling in GitHub Flavoured Markdown (https://help.github.com/articles/github-flavored-markdown/#multiple-undersc…) basically means I need to disable/override all of the existing underscore handling in the GitHub Markdown bundle. Is that possible somehow?
Thanks!
Mike McQuaid
http://mikemcquaid.com
Is there a way to highlight (or flash) the line the cursor is on
programmatically?
Something like this:
===+===
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
highlight(os.environ.get('TM_CURRENT_LINE', ""))
# ..do something else..
===+===
Many thanks in advance,
Michele
The current behavior of pasting each line in a different caret is a very
nice default, but sometimes I would need to paste a selection with multiple
lines and have it replicated into each caret. Is it possible to do this
right now?
Thanks in advance
--
José Manuel.
I have a 100+ files that were saved with "ISO-8851-1 Western” encoding. I need to convert and save them to “UTF-8”encoding. I can easily open all of them but when I attempt so perform a “Save as” it only saves the first document. Is there save all of them in a single step?
Thanks.
Another possible injection selection weirdness:
I’m injecting my text.html.markdown.github grammar into text.html.markdown using the (text.html.markdown) injection selector (was (L:text.html.markdown) until the fix in the last thread) and hidden from the user with hideFromUser in the tmLanguage file. I’m wanting to override the “Preview” menu action so that my GitHub Markdown bundle’s “Preview” menu action can take priority using the same shortcut. I’ve found a few possible options that I expected to work but don’t:
- setting the scope to text.html.markdown.github doesn’t seem to match the document scope so never actually matches and the Preview runs the old Markdown one
- setting the scope to text.html.markdown pops up a little menu to let me choose between the two
This may well not be possible in TextMate 2 as-is. Any thoughts on how to do this (beyond just using another shortcut, my current solution)?
Thanks!
Mike McQuaid
http://mikemcquaid.com
Can rmate be persuaded not to return focus to the terminal window when a tab/window it has opened closes?
I often open multiple tabs and windows over ssh using rmate. Whenever I close any of them focus reverts (after a short delay - probably the closing of the ssh tunnel after confirming a write or something) to the terminal window. If I also want to close the tab revealed by closing the first I hit Cmd+w, but the terminal gets the command because focus has switched! It's very annoying to have to get my terminals back in order so often.
Is this rmate's fault, or textmate? And can this behaviour be altered somehow?
--
Justin C, by the sea.
Hello,
I have a local mysql database that I try to connect to from Textmate 2.0.
When I define the connection setting in configuration dialog, and try to
submit to query, I get this error message:
undefined method `force_encoding' for #
I am on Mac OS X 10.11 and I installed the latest sql bundle from Github.
All that I have found are about Ruby and nothing specifically about SQL
bundle. Any suggestion on how to fix this problem?
Best,
Hooman
I’m working on a bundle to add Markdown Extra to the stock Markdown language grammar with an injection. I have some of it working, but can’t seem to build the right regex to find the added classes syntax.
Here’s the Markdown Extra in question:
{.image-right .image-33}When developing web sites on the Mac, we have a number of choices for serving the content and design we're working on.
I’m after the {.image-right .image-33} part and I’ve tried:
{ patterns = (
{ name = 'source.yaml.front-matter';
begin = '\A-{3}';
end = '-{3}';
patterns = ( { include = 'source.yaml'; } );
},
{ name = 'text.html.markdown.classes';
begin = '\{';
end = '\}';
},
{ name = 'markup.raw.block.markdown';
begin = '^`{3}';
end = '^`{3}';
},
);
}
and
{ patterns = (
{ name = 'source.yaml.front-matter';
begin = '\A-{3}';
end = '-{3}';
patterns = ( { include = 'source.yaml'; } );
},
{ name = 'text.html.markdown.classes';
begin = '\)\{';
end = '\}';
},
{ name = 'markup.raw.block.markdown';
begin = '^`{3}';
end = '^`{3}';
},
);
}
What did I get wrong?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com
Hi all,
I'm trying to develop a bundle for communicating with a TCP server, and
would like to create 1) a bundle command that opens the connection, and 2)
other commands that use that connection object (eg via grabbing text
selection in the editor window).
In Python, I've created a bundle command like this:
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
HOST = "127.0.0.1"
PORT = 7098
sock.connect((HOST, PORT))
sock.send("some command...")
print sock.recv(512)
That sets up the socket correctly, in fact you can send messages to the TCP
server.
However each time I send a command, the socket is obviously re-created; I
wondered if I TextMate provides a mechanism to save the 'sock' binding in
the current environment - so that I can reuse it later within other
commands.
Hope this makes sense - thanks in advance for any help.
Mike