Hello,
when I am in a situation where I have identically named files in different directories open in TextMate, then the displayed path in the title bar doesn’t update to reflect the currently selected tab. Is this intended?
For example
> mkdir t
> cd t
> mkdir foo bar
> echo foo > foo/baz.txt
> echo bar > bar/baz.txt
> mate */baz.txt
leads to a situation where it is impossible to see whether I’m currently editing baz.txt in foo or bar, see http://www.maven.de/pics/tm2_path_bar.png vs http://www.maven.de/pics/tm2_path_foo.png .
I would have expected the title bar to reflect my currently active tab.
Thanks,
Daniel.
Is it possible with snippets to make a first option selection determine the choices displayed for a subsequent option?
An example would be with choosing version numbers, choose a major version number, then constraining minor version number based on the major version number selected.
So ${1|2,3,4|}.${2|<list here should be dependent upon first selection|}
Thanks,
John Joyce
I'm assuming somebody else has noticed.
But calling it out anyway.
Saving via command s no longer works in the bundle editor window.
Saving does work via the File menu.
When I've got a lot of tabs open, I sometimes want to go from the file whose contents I'm editing to the listing of that file in the file browser. Didn't there used to be a way to do this? I can't find it. What I want is that the outline in the file browser should open the triangles as necessary to reveal the file listing and select it and scroll to it.
Xcode does this with Navigate > Reveal in Project Navigator.
If TM doesn't do this, could this be a feature request? If it already does, could you remind me how?
Thx - m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 9! http://shop.oreilly.com/product/0636920044352.do
iOS 9 Fundamentals! http://shop.oreilly.com/product/0636920044345.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
I have two displays. If I have two TextMate projects open, one in each
display. When opening a file from the Terminal using the "mate" command
in the project located in the secondary display TextMate will correctly
open that file but set the focus on the project in the first display.
I'm not sure if this is a problem with TextMate or the OS X window
management but it can be quite annoying.
--
/Jacob Carlborg
I am working in a Rails project, and one of the files in the project tree is a catalog of books, exported from another system as a 1MB single-line file. When I engage multi-file search, I will end up in spinning-pizza-of-death until I force-quit the app. As a work-around, I have had to keep search from looking inside it by declaring it to be one of the non-text files (right after jpeg) in the preferences in order to be able to search for anything at all across files.
Is there a better way that I can handle this? It's non-ideal to never be able to look in a JSON file within TM. I can use BBEdit, which does not have any issue at all opening this file, but I'd like to keep it all together.
How else could I globally keep multi-file search from trying to read this file?
Thanks,
Walter
The new feature: mate --project $(uuidgen|tr -C $'\n-' 0) file.txt
is broken as it echoes:
$ mate --project 00000000-0000-0000-0000-0000000000000 xcrash.C
uuid_t: error parsing ‘00000000-0000-0000-0000-0000000000000’
and does not open in a new window. Also the alternative:
$ TM_PROJECT_UUID=00000000-0000-0000-0000-000000000000 mate xcrash.C
uuid_t: error parsing ‘00000000-0000-0000-0000-0000000000000’
does not work anymore.
In addition the —-project option is not documented in mate --help, where it still
is documented as —uuid.
Please fix as my workflow pretty much depends on it.
Cheers, Fons.
--------------------------------------------------------------------------
Dr. Fons Rademakers CERN - European Organization for Nuclear Research
Chief Research Officer 1211 Geneve 23, Switzerland
CERN openlab Tel: +41227679248 Mobile: +41754113742
--------------------------------------------------------------------------
Thanks. The recommendations worked. Adding L:(…) around all the injections selector does the trick. I don’t know why it didn’t work for me then, but probably because of the second problem. Simplifying the other selectors and not trying to follow the ERB syntax makes everything a little bit easier to understand (and correctly syntax highlight both languages in the same file).
Thanks a lot for the help!
El lunes, 30 de mayo de 2016 a las 14:36, textmate-request(a)lists.macromates.com (mailto:textmate-request@lists.macromates.com) escribió:
> On 16 May 2016, at 17:29, Daniel Rodr?guez Troiti?o wrote:
>
> > A simple version of my grammar looks like this:
> > [?]
> > 'source.swift.gyb - (meta.embedded.block.gyb)' = {
> The injection scope selector should use L:(?) so your injected rules
> go before Swift?s (as you also write yourself).
>
> > { begin = '(^|\s*)(?=%\{(?![^\}]*\}%))';
> This seems to be the problem, this rule doesn?t actually match
> anything as it?s a ?begin of line? assertion and then a ?look
> ahead? assertion.
>
> So while the rule ?matches? when you have `%{` at the beginning of a
> line, no characters are consumed, so we descend into the rule?s
> patterns, but here we also have the Swift rules, and the L:(?) only
> affects the priority of the root rules injected (not their children), so
> the Swift rule will consume the `%` character because it was not
> consumed by the parent rule?s begin pattern.
>
> A minimal version of your grammar that works would be this:
>
> { injections = {
> 'L:(source.swift.gyb - meta.embedded.block.gyb)' = {
> patterns = (
> { name = 'meta.embedded.block.gyb';
> begin = '%\{';
> end = '\}%';
> contentName = 'source.python';
> patterns = ( { include = 'source.python'; } );
> },
> );
> };
> };
> patterns = ( { include = 'source.swift'; } );
> }
>
> I understand you wanted to scope the leading/trailing whitespace and
> then re-use the actual matching of %{ and %}, but I don?t think this
> is possible, though I think it will be simpler to add optional matches
> like this:
>
> begin = '(^\s*)?%\{';
> end = '\}%(\s*$)?';
>
> Then name these captures for
> `punctuation.whitespace.embedded.[leading|trailing].gyb`.
I tried to open a folder in TextMate today (one I open often) and it
crashed. (It was already running, as always.) Ever since, I’ve been
unable to get it to launch.
It detects the crash and asks about restoring open documents. It crashes
no matter what I choose there.
I haven’t changed any preferences or bundles or installed any updates
today.
I’ve tried:
* `defaults delete com.macromates.TextMate.preview.LSSharedFileList`
* `defaults delete com.macromates.TextMate.preview`
* `mv ~/.tm_properties ~/foo`
* trashed `~/Library/Saved Application
State/com.macromates.TextMate.preview.savedState`
* trashed `~/Library/Caches/com.macromates.TextMate.preview`
* restored `~/Library/Applicaiton Support/Avian` and `TextMate` from
a backup taken this morning
* downloaded the app again from the web site
* tried an older version (beta 7.3)
* rebooting, like a poor beleaguered Windows user
The only thing that *did* work was launching it as a different user, so
it’s something with my account, but what’s left?
I haven’t tried deleting all my bundles, but from the dates, I don’t
think any have changed since March.
From the crash log:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_platform.dylib 0x00007fff94e40331
_platform_memmove$VARIANT$Ivybridge + 49
1 com.macromates.TextMate.OakTextView 0x000000010f92dfe1
oak::callbacks_t<ng::callback_t, false>::remove(ng::callback_t*) + 105
2 com.macromates.TextMate.OakTextView 0x000000010f8feeea
-[OakTextView setDocument:] + 437
3 com.macromates.TextMate.OakTextView 0x000000010f8f0584
-[OakDocumentView setDocument:] + 643
4 com.macromates.TextMate.OakTextView 0x000000010f8f01f4
-[OakDocumentView dealloc] + 457
5 libobjc.A.dylib 0x00007fff9676389c
objc_object::sidetable_release(bool) + 236
6 libobjc.A.dylib 0x00007fff96749e8f (anonymous
namespace)::AutoreleasePoolPage::pop(void*) + 575
7 com.apple.CoreFoundation 0x00007fff93a6b6f2
_CFAutoreleasePoolPop + 50
8 com.apple.Foundation 0x00007fff89f13762
-[NSAutoreleasePool drain] + 153
9 com.apple.Foundation 0x00007fff89f2d5cc
_NSAppleEventManagerGenericHandler + 121
10 com.apple.AE 0x00007fff8d45934c
aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned
char*) + 531
11 com.apple.AE 0x00007fff8d4590c9
dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 31
12 com.apple.AE 0x00007fff8d458fd3
aeProcessAppleEvent + 295
13 com.apple.HIToolbox 0x00007fff90935c6e
AEProcessAppleEvent + 56
14 com.apple.AppKit 0x00007fff8e357da2 _DPSNextEvent
+ 2249
15 com.apple.AppKit 0x00007fff8e356e58
-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
16 com.apple.AppKit 0x00007fff8e34caf3
-[NSApplication run] + 594
17 com.apple.AppKit 0x00007fff8e2c9244
NSApplicationMain + 1832
18 com.macromates.TextMate.preview 0x000000010f533f19 main + 840
19 com.macromates.TextMate.preview 0x000000010f51e914 start + 52
Thanks!
--
Rob McBroom
http://www.skurfer.com/
Hello,
I have a few questions about the gutter and status bar:
Is there a way to fully turn off the gutter?
Is there a way to theme the gutter?
Is there a way to customize the gutter and only show the line numbers but not the fold markers, for example.
Is there a way to customize what is shown in the status bar, for example, to remove the record button? (I know the full status bar can be turned off with a ‘default’ command.)
Is there a way to fully turn off the “control bar” at the bottom of the file browser?
If the above are not currently possible, are there any plans to add support for such? Also, is the application architected in a way that (some of) the above would be straight forward to implement? If so, I would be willing to do it.
Thank you,
Erik
Hi,
I was trying to create a composed grammar for Gyb (https://github.com/apple/swift/blob/master/utils/gyb.py). Gyb is mostly Swift code, with some snippets of Python embedded. For embedding the Python code you surround the code with `%{ }%` or start the lines with `%`.
For parsing Swift or Python code I’m using the official bundles (https://github.com/textmate/swift.tmbundle and https://github.com/textmate/python.tmbundle). For the injection I based my grammar on HTML (Rails) (https://github.com/textmate/ruby-on-rails-tmbundle/blob/master/Syntaxes/HTM…) which is mostly the same idea.
The grammar almost works. The embedded blocks are marked and the syntax highlight works, but I need to include a space before the percent signs for it to work, which is not ideal. It looks like the percent sign are interpreted as keyword.operator.remainder.swift (https://github.com/textmate/swift.tmbundle/blob/master/Syntaxes/Swift.tmLan…) before being able to be part of the injected grammar.
I found some references that “left scope match” (L:) might be able to help, but I cannot find a way to get it working.
A simple version of my grammar looks like this:
```
{ injections = {
'source.swift.gyb - (meta.embedded.block.gyb)' = {
patterns = (
{ begin = '(^|\s*)(?=%\{(?![^\}]*\}%))';
end = '(?!\G)(\s*$\n)?';
beginCaptures = { 0 = { name = 'punctuation.whitespace.embedded.leading.gyb'; }; };
endCaptures = { 0 = { name = 'punctuation.whitespace.embedded.trailing.gyb'; }; };
patterns = ( { include = '#tags'; } );
},
{ include = '#tags'; },
);
};
};
patterns = ( { include = 'source.swift'; } );
repository = {
tags = {
patterns = (
{ name = 'meta.embedded.block.gyb';
begin = '%\{';
end = '(\})%';
beginCaptures = { 0 = { name = 'punctuation.section.embedded.begin.gyb'; }; };
endCaptures = {
0 = { name = 'punctuation.section.embedded.end.gyb'; };
1 = { name = 'source.python'; };
};
contentName = 'source.python';
patterns = ( { include = 'source.python'; } );
},
},
},
}
```
A text like this will work:
```
class MyClass {
%{
a = 1
}%
}
```
If I remove the space before the first percent sign, the grammar will not create the embedded block at all.
I tried using several scope selectors with `L:` to see if they work:
- `L:(source.swift.gyb - (meta.embedded.block.gyb))`
- `source.swift.gyb - (meta.embedded.block.gyb), L:source.swift.gyb`
- `source.swift.gyb - (meta.embedded.block.gyb), L:source.swift`
- `source.swift.gyb - (meta.embedded.block.gyb), L:source.swift keyword.operator.remainder.swift`
- `source.swift.gyb - (meta.embedded.block.gyb), L:keyword.operator.remainder.swift`
None of them seem to work.
Does someone has any tips about what should I try next?
Thanks!
Hello,
I am working around in the code, and I was trying to determine where the row iterator object used in layout.cc is defined so I might study it’s properties? Could anyone point me in the right direction? Much appreciated.
Josh
I just tried the new indent guides. I think it looks pretty ugly that
the indent guides are render over the full width of the document. In
most editors I've used which support this feature the indent guides are
rendered up to the start of the text on a given line.
--
/Jacob Carlborg
Hi -
For the last week or so, the contents of the Go to Symbol window have been totally scrambled for me in all the languages I’ve tried. Sometimes (After restarting TM) the Go to Symbol window contains the entire file on one line without linebreaks. Other times there are many lines, each with several lines worth of source in them, but no clear relation to any of the function definitions in the file.
I suspect this is a corrupted settings file somewhere; I’ve got my TM settings synced to Dropbox so when two different machines are open at the same time a number of things go screwy. I wasn’t sure how to start debugging this one though short of going spelunking in the source.
Is anybody familiar enough with the inner workings of this command to point me to what settings might be corrupted?
Cheers,
Evan
Example:
In the C code at the bottom, I would usually expect to see 4 lines in the list of symbols:
```
#include <stdio.h>
void other();
int main(){
void other(){
```
Instead, I get the entire contents of the file on one line:
```#include <stdio.h>void other();int main(){printf("line 1 after 'main' symbol\n");printf("line 2 after 'main' symbol\n");other();}void other(){printf("line 1 after 'other' symbol\n");printf("line 2 after 'other' symbol\n");}```
Source file:
```
#include <stdio.h>
void other();
int main(){
printf("line 1 after 'main' symbol\n");
printf("line 2 after 'main' symbol\n");
other();
}
void other(){
printf("line 1 after 'other' symbol\n");
printf("line 2 after 'other' symbol\n");
}
```
Hi,
what is the best way to share snippets or entire plugins, so that they can easily be installed and updated automatically by TextMate?
I still do not completely understand the Avian / Bundles mechanism and having to check manually for updates and “git pull” them is not very user friendly…
Fabian
Hi,
Am I right refresh running browser CMD-R does not work in 10.11.5
(HTML-bundle)?
After updating this morning to 10.10.5 and it does not work anymore on both
updated Macs.
version 2.0-beta.9.1. and version 2.0-beta.9.0
Regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/Refresh-running-browser-CMD-R-does-no…
Sent from the textmate users mailing list archive at Nabble.com.
Cap’n Proto is now available in MacPorts (capnproto). It would be nice
if TextMate automatically could identify Cap’n Proto when it's installed
in MacPorts.
--
/Jacob Carlborg
I have a bundle item I would like to use by pressing a keyboard
shortcut. The problem is that there is another bundle item that is
invoked instead. Is there a way to find out which bundle item is invoked?
--
/Jacob Carlborg
Is there a way to change or remove the added/removed/modified backgrounds in Git Commit Message?
Looks like predefined colors don't play nicely with every theme out there.
Hi all,
I try to make a bundle command in order to find a php-function definition
within project folder.
What I want to do is a "macro/snippet/command" that do the following:
- with the TM_CURRENT_WORD or TM_CURRENT_SELECTION
- search the current project (like CMD-SHIFT-F) with a regex search
(something like: (function)(.*)($TM_CURRENT_WORD)(/s+\() )
- open the CMD-SHIFT-F window with the search-results so you can select the
found result.
So is there a way to 'call' the search window, with the values filled in and
run the search?
It would be even better if one result is present, directly via a simple
popup:
- if found one result goto file / and function
- if multiple functions / files are found => selection box in order to
select the file
Or does are there other suggestions?
Regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/Call-Find-in-Project-window-in-a-bund…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all,
I was wondering what php-debug workflow you use in combination with our
favorite texteditor TextMate.
I do not want to use a massive and expensive IDE (like phpStorm), just TM.
Now I've setup Xdebug (MAMP-PRO), with xdebug.file_link_format set in
php.ini. So on a error in the browser I can click on the link, and the
related file is opening in TM on the good position!
I did not found any TM-bundles for Xdebug in order to set breakpoints (via
markers?).
Maybe a suggestion is Codebug (http://codebugapp.com). But there is no
integration with TM like they have for Sublime Text
(http://codebugapp.com/using-codebug-sublime-text/ and
https://nateofnine.com/2014/05/30/sublime-text-xdebug-client/)
Do you have better suggestions for debugging PHP using TM and Xdebug?
Have a nice weekend,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/PHP-debug-workflow-suggestions-tp2994…
Sent from the textmate users mailing list archive at Nabble.com.
I've accidentally deleted the R bundle (which contained several of my own custom commands). Is it possible to reinstall bundle & my own custom commands?
Ross Ahmed
Ecologist
--
07875533906
Twitter: @RossAhmed
LinkedIn: Ross Ahmed
In the File Browser sidebar when I open a "project" (a directory), TextMate
always shows the same state where some directories are expanded (to
multiple levels) and others are not. Is there any rhyme or reason about why
TextMate remembers this particular state?
It's a bother to have to close things up each time I open a project.
I would even be happy with the File Browser starting with no directories
open.
I've tried doing
defaults write com.macromates.TextMate.preview disableFolderStateRestore
-bool YES
but that seems to have no effect.
I've tried opening or closing some "tabs" (open files) and then closing the
project. That has no effect.
I'm on Mac OS X 10.11.4. TextMate version 2.0-beta.9.
BTW, after recently upgrading to the above version of TextMate (from
previous beta version), the problem was solved for a while, but now it is
happening again.
Thanks,
--ErikN
How does one go about debugging values and the like in TextMate?I’m trying to iterate through rows and see the values associated with my iteration. Is there a special output area that code prints to, like a console or something?
Hi,
seems odd, but I really do not know what marks are and how to set them (and
how many)? It seems related to the keybinding setMark.
In the latest release version 2.0-beta.9.1 the jump to next/previous mark
shortcuts have been changed to F3/⇧F3. So I was wondering how to set them ;)
and what is the difference with bookmarks?
regards,
feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/What-are-marks-an-how-to-set-tp29938.…
Sent from the textmate users mailing list archive at Nabble.com.
Ah, thank you very much for that input. I will resend there.
On 4/18/16, 3:21 PM, "Jacob Carlborg" <textmate-dev-bounces+jjbernitt=gmail.com(a)lists.macromates.com on behalf of doob(a)me.com> wrote:
>On 2016-04-18 12:12, Joshua Bernitt wrote:
>> Hey all!
>>
>> I think this is the correct mailing list for this question;
>
>I recommend the general mailing list instead. There's barely any traffic
>at all in this mailing list.
>
>--
>/Jacob Carlborg
>
>_______________________________________________
>textmate-dev mailing list
>textmate-dev(a)lists.macromates.com
>http://lists.macromates.com/listinfo/textmate-dev
Hello
I use a lot of variables with @ in their names like
\rput@temp but a double-click on \rput@temp selects only
rput or temp. With TM1 I had the possibilities to
change but how can I do with TM2?
Thanks,
Best Regards,
Alain
Hi everyone,
I want to fold the following 'code'
# Section 1 ----
for (i in 1:30) {
y = i+1
}
# Section 2 ----
# a comment
x = y + 1
y = y^2
if (foo) {
a = b
for (j in 1:3) {
b = b + 1
}
}
# Section 3 ----
b = c
to fold in the following way:
- "sections" in the code are defined by #something----, everything
between two section titles should fold when the folding marker of the
title line is clicked
- blocks are defined with { (and a few other markers) and should fold
as expected.
With the following rules I can almost make it work
{
foldingStartMarker = '\{';
foldingStopMarker = '\}';
foldingIndentedBlockStart = '^#(.*?)\-{4,}';
foldingIndentedBlockIgnore = '^(?!#(.*?)\-{4,})';
}
the blocks fold, respecting nesting, the sections fold up to the next
section, *except* for section 1; there, the `for` block is not
indented and is at the same level as the section, therefore folding at
section 1 only folds until the start of the for block, not all the way
down to section 2.
It looks like I am searching for a way to the `foldingIndentedBlock`
rule to take precedence over the `foldingStartMarker` rule. Is it
possible?
To make it easy to take a stab at it, I created a new bundle and a
test file (the language is "testing") which you can get there:
https://dl.dropboxusercontent.com/u/1047321/Test.zip
PS: having comments which define sections in the code seems like a
general use case. The syntax is in that particular example is defined
in the R language by the RStudio IDE. This IDE is becoming common
enough that I am receiving code formatted this way a lot.
Thanks in advance for your help!
Good day,
I am interested in assisting with TextMate development. I really like the editor, and want to contribute to make it better! I want to help add newer and more modern actions to it similar to Sublime Text. I was wondering if you had any links for getting started? I’ve downloaded the source code and set up a dev environment and can compile it successfully. I’m reading through the source code and testing things; I was just wondering if you have any information on the Oak framework and the general layout of the application structure. Thank you for your help!
--
Josh Bernitt
Sent with Airmail
I was thinking that the context menu that shows up when you press
keyboard shortcut for a bundle command that is overloaded (multiple
commands for a single keyboard shortcut) can be quite long, especially
for the git commands.
What if we (I or someone) adds a text input field to the menu which
filters the menu items. And example of this can be found in Xcode [1].
Would that be a good idea?
[1] http://blog.manbolo.com/2012/05/24/filtered1.png
--
/Jacob Carlborg
I've been working for quite a while with trying to rewrite the grammar
for the D bundle to be more accurate to the official grammar. The
grammar for D is quite complex, that in the combination with the syntax
for grammars in TextMate doesn't allow any good ways to reuse or compose
rules making it very difficult to describe a grammar. I know it's
possible to reuse rules with the repository, but that seems to be mostly
useful when matching with "begin" and "end".
For example, this is the grammar for a function declaration from the
official D grammar:
FuncDeclaration:
StorageClasses(opt) BasicType FuncDeclarator FunctionBody
AutoFuncDeclaration
AutoFuncDeclaration:
StorageClasses Identifier FuncDeclaratorSuffix FunctionBody
FuncDeclarator:
BasicType2(opt) Identifier FuncDeclaratorSuffix
FuncDeclaratorSuffix:
Parameters MemberFunctionAttributes(opt)
TemplateParameters Parameters MemberFunctionAttributes(opt)
Constraint(opt)
Each of these parts/rules of the grammar consists of several other
rules, many levels deep.
It would be really nice if the TextMate grammar syntax allowed, somehow,
to define rules, or parts of a rule, which the other rules can be
composed of, similar to above.
Or is there a way to already do something similar with the current syntax?
--
/Jacob Carlborg
Hi,
I am a PhD student in final year and using Latex in TextMate for last 5-6
months to write my work, and I really like Textmate. I recently graduated
to use Sweave to include R elements into my Latex document.
However, I am unable to setup Sweave to compile and I get error : pdf file
not written to disk. I have tried advice on
http://article.gmane.org/gmane.comp.lang.r.mac/3953/match=sweave+pdf+file+n…
but no luck.
I am using Textmate 2.0-beta.9, with Texlive 2015 distribution and R 3.2.3
Please can anyone guide me to setup Sweave for Textmate. Yes, I have
installed Sweave Bundle.
Thank you.
Sri
I’m trying to integrate ternjs [0] into Textmate and am running into problems:
* if I use #!/usr/bin/env ruby18 -wKU I can’t
require(‘json’)
in my script, it gives me a loadError
* if I use #!/usr/bin/env ruby
then the lib/ui.rb message dialog won’t work because it utilises an old osx-plist function [1].
I even managed to recompile the old plist thing and made it work, but it won’t work when forked [2] with an error
dyld: lazy symbol binding failed: Symbol not found: _rb_gc_writebarrier_unprotect
Expected in: flat namespace
Can anyone give me pointers into a direction?
Textmate Bundle development is so frustrating :(
Thanks
Fabian
[0] ternjs.net/doc/manual.html
[1] https://stackoverflow.com/questions/6869463/in-textmate-i-cant-create-parti…
[2] https://github.com/textmate/bundle-support.tmbundle/blob/master/Support/sha…
Hi,
i would like to display popup / hints / overlays at certain position in code, so I can show the error where the occur.
Is that somehow possible with the current plugin API? Maybe with dialog2 and custom nibs?
Thank you
Fabian
Hello Everyone,
This has probably been discussed before when Apple's "El Capitan" came
out. I have only recently upgraded to this OS. I am using Textmate for
writing Latex documents. With the upgrade I loste the functionality of
having .sty-files stored in a dedicated folders (texmf in pre-capitan
times). Where do I put these files now? and more importantly: How to I
tell Textmate (or the Latex Bundle) where to find them?
Best,
Christian
I generally hate Microsoft Word, but I like the way it handles comments i.e. comments are in boxes in the right margin, separated from text. Is it possible to have TextMate handle comments in the same way i.e. hidden or somehow separated from text?
Ross Ahmed
Ecologist
--
07875533906
Twitter: @RossAhmed
LinkedIn: Ross Ahmed
When I go to Bundles > R Console (Rdaemon) > General Control > Start Rdaemon, the blue line goes right to the end put Rdaemon doesn't start up. Why is Rdaemon not starting up?
Ross Ahmed
Ecologist
--
07875533906
Twitter: @RossAhmed
LinkedIn: Ross Ahmed
Hi,
Today I wanted to try a new theme and noticed that the theme menu only
lists the theme's name, so I had to try them all, which is expected.
My issue is that I already knew I wanted a light theme, because I like
them better. I just asked around and at least with the small sample
of people around me, they already know if they prefer light themes or
dark themes.
It looks like themes are already identified as light or dark via their
Semantic Class, so my suggestion is to include this distinction in the
UI somehow. I know this is not something the user will do frequently,
but I think this improvement will cut the time to select a new theme
roughly by half.
--
:: dip
--
Hi all,
I've some strange issues with a shell script for a bundle command. Caused by
a "*" (Asterisk) at the end of the line.
Description:
In a folder I've the following files:
test.md
AAA-some-text.md
The content of test.md is:
In my bundle script I do a lot with the file. One of the things is that I
want to grep the first Header. In this case "# A header with star AAA*".
The shell code is (only the code causing the issue):
#!/bin/bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && .
"${TM_SUPPORT_PATH}/lib/bash_init.sh"
cd ~/Desktop
contenttitle=`grep -m 1 '^#\{1\}' test.md`
echo $contenttitle
When running "grep -m 1 '^#\{1\}' test.md" in Terminal I get as expected the
first header "# A header with star AAA*", but running the script in TextMate
I get "# A header with star AAA-some-text.md". Really strange..... there is
a replacement of "AAA*" by the filename "AAA-some-text.md" (from the current
folder). And even when more files with "AAA" exist, they also come in the
result of the script. It seems like there is a listing of the directory
performed like "ls AAA*".
Is this a TextMate issue? Or do I something wrong?
Regards,
Feek
NB1: when escaping the * in the markdown file (like \*), the script is
performed right.
NB2: when the AAA* text is in the middle of the line (some text on the
right), the error persists.
--
View this message in context: http://textmate.1073791.n5.nabble.com/Strange-issues-with-a-shell-script-fo…
Sent from the textmate users mailing list archive at Nabble.com.
I’ve never gotten the watch command to work in the LaTeX bundle, and I’d like to see if I can’t troubleshoot it. I’m running OS 10.11.3 and TextMate 2 beta .9. I typeset through the ps->dvips route. When I run the Watch Document command I get this error:
The command `osascript -e tell application "XQuartz" to launch' failed (error code 1).
Can someone point me to the next step?
Thanks,
Kyle
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