I’m been starting to use go-to-definition commands more and more in TextMate. One thing that would be really nice is if there was a way to navigate back to the location where I invoked go-to-definition. I quite often look up the source code of a symbol that I’m using with the help of go-to-definition and then need to get back to where I was coding. If go-to-definition opens a new file it’s pretty easy to get back to the previous location by just closing the newly opened file. But if the definition is in the same file it’s not that easy to get back. One idea would be set a mark when go-to-definition is invoked, then use Jump To Next/Previous Mark. The problem with that is that there might be different marks, like marks set by compiling the code. These marks will now interfere with go-to-definition marks. It’s also quite difficult to build up a stack, allowing to navigate backwards and forwards with these marks. Since navigating between marks will, I think, in the order they’re located in the document, not the order they were created or any other user defined order.
Ideally this would be a built in feature in TextMate, making it possible to navigate backwards and forwards regardless if the “mate” command, the Jump to Line or any other feature was used to navigate the code.
--
/Jacob Carlborg
Hi all,
I can’t push/pull using the Mercurial bundle, I get the following error:
“abort: no suitable response from remote hg!” (In a tool tip.)
It works fine on the command line and other commands, like commit and diff, works fine from TextMate.
Any ideas about how to debug this?
Cheers,
Tuk
macOS 10.13.1
I've also tried changing the shebang of gen_html to so it uses ruby 2.4.2 (from Homebrew) and the result is the same. Anyone else hitting this? Any workaround?
[266/740] Generate ‘/Users/dfelicia/build/TextMate/Applications/TextMate/TextMate.app/Contents/Resources/Contributions.html’…
FAILED: /Users/dfelicia/build/TextMate/Applications/TextMate/TextMate.app/Contents/Resources/Contributions.html
bin/gen_html > /Users/dfelicia/build/TextMate/Applications/TextMate/TextMate.app/Contents/Resources/Contributions.html~ -h Applications/TextMate/templates/header.html -f Applications/TextMate/templates/footer.html Applications/TextMate/about/Contributions.md Applications/TextMate/references.md && mv /Users/dfelicia/build/TextMate/Applications/TextMate/TextMate.app/Contents/Resources/Contributions.html~ /Users/dfelicia/build/TextMate/Applications/TextMate/TextMate.app/Contents/Resources/Contributions.html
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/erb.rb:861:in `eval': (erb):18: syntax error, unexpected &, expecting end-of-input (SyntaxError)
; ></p>
^
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/erb.rb:861:in `block in result'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/erb.rb:862:in `result'
from bin/gen_html:29:in `expand_tpl'
from bin/gen_html:114:in `block in <main>'
from bin/gen_html:114:in `open'
from bin/gen_html:114:in `<main>'
[275/740] Compile xib ‘Applications/TextMate/resources/English.lproj/MainMenu.xib’…
ninja: build stopped: subcommand failed.
I tried completely cleaning up, and also worked around the annoying ns/ns.h issue that was previously reported to this list, but the results is the same:
rm -rf ~/build
rm -rf ~/github/local/textmate
cd ~/github/local
git clone https://github.com/textmate/textmate.git
cd textmate
git submodule update --init
sed -i.bak 's%<ns/ns.h>%"/Users/dfelicia/github/local/textmate/Frameworks/ns/src/ns.h"%g' /Users/dfelicia/github/local/textmate/Frameworks/OakFoundation/src/OakFoundation.mm
./configure
ninja
Hi,
I'm trying to fix the textmate2 port in MacPorts. It fails to build on OS X 10.10 and earlier, and I think the reason is that the code uses Objective-C lightweight generics, a feature introduced in the 10.11 SDK. So I would like to instruct the build to use the 10.11 SDK, but I can't figure out how to do that. Usually I would set environment variables:
CFLAGS='-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk'
CPPFLAGS='-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk'
CXXFLAGS='-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk'
LDFLAGS='-Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk'
OBJCFLAGS='-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk'
OBJCXXFLAGS='-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk'
But textmate's configure script isn't an autotools one and it doesn't appear to honor these environment variables. So how can I tell the build system I want to use a different SDK? I see that the configure script explicitly passes CC and CXX to bin/gen_build. Do I need to modify the configure script to also explicitly pass the other environment variables or is there an easier way that doesn't involve modifying the build system?
Dear all,
When parsing large amount of text from textmate2 to the terminal, it sometimes happens that strange parsing errors occur.
Line breaks, white space, or symbols are arbitrarily not send correctly to terminal.
For example; this line in textmate:
col <- ifelse(…
ended up like this in terminal:
col <col <cse(...
Hence, whenever I want to run multiple lines of code, I end up with errors, which makes it very difficult to work with textmate in combination with terminal.
I use the following command to parse the selected text to the terminal:
#!/bin/bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
rawText="$(cat | sed 's/ / /g;')"
#rawText="`cat`"
osascript -e 'on run(theCode)' \
-e 'tell application "Terminal" to activate' \
-e 'tell application "Terminal"' \
-e 'do script theCode in window 1' \
-e 'end tell' \
-e 'end run' -- "$rawText”
Thanks for any help and advice!
Dear TextMate,
Hello,
I can't find the advanced preferences menu indicated in the document below.
https://manual.macromates.com/en/saving_files.html
Where is it? Should I do something special to show it up? I am using
TextMate version 2.0.
Thank you
Hi,
is there a way to show git changes in the gutter (next to the line numbers)?
In the file browser you can see the changes of files, but it would be nice
you can also see the changes next to the line numbers in the gutter.
== Feek
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
Hi all,
I’ve been a loyal TM1 user for years who has resisted migrating to TM2 because I was waiting for key features like live, editable HTML preview. (I’m still on Firefox 56 too, so a bit of a plugin addict.)
A few restarts after migrating to High Sierra I noticed a "Software Update" prompt in TM1. (I’m now running 1634.) I thought that was odd as I assumed development had ceased on TM1, and am curious what that is.
I’ve also read that Apple will soon disallow 32-bit applications in a future MacOS update. Am I right in assuming that will force me to use TM2?
Since I’m a bit out of the loop about active TM development these days, has anyone added the ability to view and/or edit HTML in a live Web preview?
Thanks for any advice!
jon
Hi all, I am new to TextMate, and not sure if it's appropriate to ask a
question about embed language here.
I have a language needs to embed JSON language syntax highlight. However,
unlike most languages to have an specific identifier to mark the embed
language scope like Markdown:
```json
{"hello": "world}
```
Here, for markdown language, the begin is ```json, and the end is ```. The
contents between begin and end are real JSON.
However, in my own language I just treat a line starts the { and [ as a
JSON, since they are the begin characters of a valid JSON. And for my case,
the end is the empty line. So the difference is that the matched line of
begin regex also should be treat as the JSON language so that I can include
source.json. But I don't know how to achieve this.
Thanks in advance.
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
Hi,
is there a quick way to transform for instance
[Role, User, UserRole, SourceAddress, BulkMessage, Message, SingleSMSTemplate, Company, Contact]
into
[
Role,
User,
UserRole,
SourceAddress,
BulkMessage,
Message,
SingleSMSTemplate,
Company,
Contact
],
?
(In this case it's Python but it could be more or less any language.)
I do this so often manually, there must be a better way?
Thanks,
Tuk
Hello,
I absolutely love the feature introduced in TM 2 with Lion: being able
to reopen all the windows [1] after any expected or unexpected events
(rebooting, upgrading, crashes, ...).
What I miss in TextMate though is reopening the windows in the same
desktop where they were before closing the app.
I often have up to 100 files opened at the same time, spread across a
number of desktops and I only reboot the OS about once in a month. But
after every reboot or TM upgrade, I need to sort the windows manually
again which is a bit annoying.
Terminal windows open in exactly the same desktop where they were
closed, the web browser (Chrome) sadly doesn't respect that, about
other software I don't care. I would really love it if TextMate would
remember in which desktop the windows were last opened and reproduce
the exact state after relaunch. I don't know how difficult it would be
to implement that change though.
What do others think about it? Should I enter the feature request in
the tracker?
Thank you,
Mojca
[1] https://support.apple.com/en-us/HT204005
Hi all,
Having received some TeXLive updates recently, I am now unable to use cmd-R in TextMate to typeset. Whichever .tex I try (in this case Reason. tex), I just get
Command latexmk -pdf -f -r /tmp/latexmkrc -r '/Users/robertmilton/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/config/latexmkrc' Reason.tex exited with status 127
Is anyone else having this problem, or does anyone know how to fix it?
Regards
Robert
When I use Find In Project, the Replace and Replace & Find buttons are now
always grayed out. So that feature is completely unavailable to me.
Am I doing something wrong? Has something changed in TextMate regarding
this? Anyone else having this problem.
Hello,
Every so often the UI will hang. This is a new development and has started about a week or so ago. I don’t think anything has really changed on my end. It occurs when moving my text cursor around or when bringing up the find window. I’m sure there are other things that cause it to occur, but I can’t think of them at the moment. It doesn’t happen every time but it happens enough to be annoying.
Any help would be appreciated.
Thanks!
Hi all,
I have found (I think) an intermittent problem with the find panel in TextMate. I’m using 2.0-rc.4. What is happening is that the next button of the find panel always find (stay) on the same text search in the source instead of going to the next text selection. I’m using it for editing C Code.
Like I said is very intermittent, it happens only sometime in 1 in 40 each time I use the search function. Maybe I just not found out what is triggering this behaviour.
Thanks,
Yann Bourdeau, M.Ing.
Senior Software Developer
438-499-4607
yann.bourdeau(a)noviflow.com
I knew there was a reason I subscribed to this list—I’m not a power user; but once every few months a tidbit like this comes along. Thank you. I found the default response confusing and annoying. But no doubt others like this feature. Nice to know we have choices.
Greg
> Curt Sellmer <sellmerfud(a)gmail.com <mailto:sellmerfud@gmail.com>> wrote:
>
> You can change this default behavior by quitting TextMate and using the
> following command in Terminal:
>
>
> defaults write com.macromates.textmate alwaysFindInDocument 1
>
>
> When you restart TextMate it will always perform the find in the Document
> even if there is current a selection.
Apologies for the self-promotion but I thought this may be interesting to some of you. I’ve seen Atom and Sublime Text linting plugins and I was wanting something similar for TextMate so wrote my own plugin:
https://github.com/MikeMcQuaid/Linter.tmbundle
Give me a shout if you like this or have feedback. If there’s enough interest I’d like to try and submit this to be an official TextMate plugin in future.
Thanks!
Mike McQuaid
http://mikemcquaid.com
I see the file in ./Frameworks/ns/src/ns.h, perhaps that framework needs to be built first?
I am sure I can haxor it to work, but would rather not get onto that slippery slope, have been using mate for like 9 years now, and there are some things I would like to fix in 2.0rc4 or at least test to see if they are fixed in master.
Output:
UpLk Prod[textmate] $ ./configure && ninja
rm /Users/gplayer/build/TextMate/Frameworks/SoftwareUpdate/fixtures/secret.pem
bin/gen_build:477: warning: Insecure world writable dir /Applications/microchip/xc16/v1.22/bin in PATH, mode 040777
[1/1] Generate ‘build.ninja’…
bin/gen_build:477: warning: Insecure world writable dir /Applications/microchip/xc16/v1.22/bin in PATH, mode 040777
ninja: no work to do.
ninja: no work to do.
[1/9] Compile ‘Frameworks/OakFoundation/src/OakFoundation.mm’…
FAILED: /Users/gplayer/build/TextMate/Frameworks/OakFoundation/src/OakFoundation.o
xcrun clang++ -include /Users/gplayer/build/TextMate/Shared/PCH/prelude.mm -c -pipe -fPIC -gdwarf-2 -m64 -mmacosx-version-min=10.9 -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 -flto=thin -I"/usr/local/opt/libressl/include" -I"/usr/local/include" -fvisibility=hidden -std=c++14 -fobjc-abi-version=3 -fobjc-arc -fobjc-call-cxx-cdtors -o /Users/gplayer/build/TextMate/Frameworks/OakFoundation/src/OakFoundation.o -MMD -MF /Users/gplayer/build/TextMate/Frameworks/OakFoundation/src/OakFoundation.o.d -I/Users/gplayer/build/TextMate/include Frameworks/OakFoundation/src/OakFoundation.mm
Frameworks/OakFoundation/src/OakFoundation.mm:3:9: fatal error: 'ns/ns.h' file not found
#import <ns/ns.h>
^
1 error generated.
[8/9] Compile ‘Frameworks/updater/src/updater.cc’…
ninja: build stopped: subcommand failed.
hyperlink helper has been broken for some months
Failure running “Lookup Selection on Google and link” gets a forbidden redirect, “Lookup Selection on Wikipedia and link”.fails:
/Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:174:in `open_loop': redirection forbidden: http://en.wikipedia.org/w/api.php?format=xml&action=opensearch&search=Obitu… -> https://en.wikipedia.org/w/api.php?format=xml&action=opensearch&search=Obit… (RuntimeError)
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:518:in `open'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:30:in `open'
from Lookup Selection on Wikipedia and link:19:in `getWikiEntries'
from Lookup Selection on Wikipedia and link:31:in `getWikiDef'
from Lookup Selection on Wikipedia and link:37
Hi,
I'm using a bundle that runs a node process on save to run eslint, but now I've found a strange case where a certain piece of invalid javascript causes TextMate to crash.
From what I understand from the crashlog there's something going wrong in JavaScriptCore, which causes TM to crash. (crashlog "Anonymous UUID" A6388CF6-BEC3-74D3-1176-D1710B8004B0 (is this usable?))
I can imagine that even when a subprocess fails, TM should not crash?
The particular bundle is my modified version of the javascript-eslint bundle <https://github.com/koenpunt/javascript-eslint.tmbundle/tree/js/>. The problematic code is (and can be used to reproduce the crash):
switch (true) {
case 'background':
}
default:
}
– Koen
Sent from Mailspring (https://link.getmailspring.com/link/local-6f2fd5cb-35f7@Ks-MacBook-Pro-2.lo…), the best free email app for work
I recently purchased a new Mac. I copied Textmate along with the
Application Support folder over from my old Mac.
Everything works fine. I noticed that at the top of each editing window is
a button called "Add License".
When I click this button it Shows my Name and my License. However the
License textbox is greyed out and the "Add License" Button is disabled.
Is there a way that I can re-enter my license so that this button goes away?
There was this, which Infininight said is being patched, but I wasn’t
clear whether it was a fix in a bundle (looks like it is), or whether it
was in core.
13:01 mwilson: allan: https://twitter.com/_nb/status/91112623863850598914:05 allan: Infininight: are you seeing ↑
14:05 allan: I’m not on 10.13 yet
14:05 allan: and I can’t really think of what’s causing that…
14:16 Infininight: allan: hmm, not even sure how you would trigger a dialog like that if you wanted to?14:17 Infininight: outside of using tm_dialog that is
14:24 Infininight: ok, found the issue; will get a copy of 10.3 to fix
00:34 gina has joined (~gina(a)_192.30.252.41_)
00:34 gina: [bundle-support.tmbundle] infininight pushed 1 new commit to master: https://git.io/vdTxi00:34 gina: bundle-support.tmbundle/master 6e6188a Michael Sheets: Update ruby support for High Sierra...00:34 gina has left ()
--
Marc Wilson
msw(a)cox.net
On Mon, Sep 25, 2017, at 11:22 PM, Andrew Cohen wrote:
> Are there any known issues with Textmate on 10.13 or is it safe to
> upgrade? Are there concerns with APFS, for example?>
>
> Thank you,
>
> * -Andy*
>
> _________________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate