you can do something like, by placing the following code into your global or folder specific .tm_properties file:
myExtraIncludes = ".*"
include = "{$include,$myExtraIncludes}"
== Feek
tl;dr Command-Z and Shift-Command-Z somehow stopped being associated with Undo/Redo, and instead caused the last file functions to be undone/redone (renaming a file, creating a file, creating a folder, etc.). Note that the menu still indicates those two keys as shortcuts to Undo/Redo
I’m editing a project, and I have multiple files open. I created a new folder and a new file within the new folder, and started typing text into the file. So far, so good. I made what I thought was a typing …
[View More]mistake and hit the “delete” key, then realized that it was not a mistake, so I hit Command-Z (the shortcut for Undo), and the filename reverted to the default “untitled.txt”. Then I hit Shift-Command-Z (the shortcut for Redo) and the filename reversion was undone. So I typed some more text and went to the Edit menu and hit “Undo” and the text disappeared (as I would expect).
[View Less]
Hi everyone,
There was once a time when I would press the spacebar on a tex file in the
Finder and I would see a Quicklook preview of it using the theme I used
when TextMate is open, complete with syntax highlighting, etc.
I'm not sure what I did, but now when I press the space bar, I see only a
picture of the document icon with the TextMate logo on it. It does
correctly label it "TeX" with that capitalization, though.
To experiment a little, I deleted the line <string>tex</string&…
[View More]gt; in the
TextMate.app Info.plist. Quicklook now works on tex files, but it looks
like it's using the built in macOS ql plugin for plain text. That is, it's
not using the default TM theme and thus there isn't any syntax
highlighting, etc.
When I put back <string>tex</string> in Info.plist and then do touch
TextMate.app, it goes back to the preview of the document icon as before.
I don't mind the Quicklook preview without the theme colors, but it would
be nice to restore TextMate's Quicklook, if possible.
I'm using TM 2.0.17 on macOS 10.15.7.
Best wishes,
Anthony
[View Less]
It's been great to see the incremental improvements in TextMate over
time. The recent 2.0.17 has a really nice fit and finish all-in and it's
still by far my preferred "fully native" text editor - a first choice
for development. Little things like the recently shuffled themes menu to
support dark/light mode switching are always very welcome and have a
surprisingly big "quality of life" impact.
Of course I've a niggle ;-) - I noticed in 2.0.6 (possibly earlier?)
that when switching …
[View More]between tabs (currently macOS 11.2.1, but it's done
it for a while) TextMate will sometimes shift the view scroll position
after a fractional delay. It seems to be related to any lines that
aren't of a fixed height; for example, comments in Ruby source code have
always word-wrapped even if word wrap is disabled and if there are any
of those in a piece of text above the caret position then there's a good
chance of scroll position jumps when switching between tabs.
The issue is especially pronounced in larger Markdown docs when I
usually edit with word wrap enabled - in that case, the jump can be
severe and disorientating as the view can end up somewhere very
different from "where you left it", but the caret position is unchanged
and might not even be on-screen anymore. As an example, a large
README.md file for our application was scrolled with line 656 at the
view midpoint with caret placed there, so that line 633 was at the top
of the view. I switched to another tab then back again and after a brief
delay the view jumped so that line 602 was at the top of the view and
line 656 wasn't even visible. This jump doesn't happen with word wrap
turned off, but *does* still happen if I've allowed the Textmate
configuration to change font sizes on headings.
It just "feels like" there's some kind of scroll position recalculation
happening on a thread whenever a tab regains focus, but this calculation
isn't accounting for "unusual line heights" due to line wrap or (maybe)
font sizes.
Just me?
--
TTFN, Andrew Hodgkinson
Find photos, software, music and more at my home site, Bandcamp and
GitHub:
https://pond.org.uk / https://pondnz.bandcamp.com /
https://github.com/pond
[View Less]
Hi, I'm doing a little housekeeping on my Rebol bundle. I've one command
that takes a selection, evaluates the content and replaces the selection
with the product. I'm using TM_SELECTION to determine the various selection
modes:
• No selection: use TM_CURRENT_LINE as input
• Regular selection: use TM_SELECTED_TEXT as input
• Columnar selection: use TM_SELECTED_TEXT splitting on LF
I don't currently handle multiple caret selection, though I see that I can
read from STDIN to obtain that input. …
[View More]The tricky part seems to be
discerning how to break that input to match the respective selections. I
could split by LF, though that doesn't work if any of the selections
themselves span multiple lines. Otherwise it seems it's a walk through each
line to match up with the TM_SELECTION entries (which I've not attempted
thus far, in fairness).
Am I missing anything obvious here? Has there been any consideration of
using some of the ASCII field separators (e.g. 0x1D-1F) to delimit these
and permitting use of said separators as a way of directing the response to
fill each of these selections respectively?
Thanks,
– Chris
[View Less]
I have the same problem as Curt Selmer with the Bundle Ediror — I am running macOS 10.14.6
Phil
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Phil Molyneux E: molyneux(a)pobox.com
T: 020 8549 0045
M: 07885 426 323
71 Deacon Road, Kingston upon Thames KT2 6LS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Is there some way to enforce a trailing newline on new file create (and update)? Is this a plugin-shaped problem, or a preference I can set?
Thanks,
Walter
Hi,
I saw on GitHub a new prerelease of TM was available (v2.0.17). But checking via update (I'am using v.2.0.16) no new version appears. See:
https://feek.d.pr/gHocSE/o9VvhS1Oam
Funny enough, on a testing machine via Homebrew installed 2.0.17... bit checking the prereleases it shows:
https://feek.d.pr/ckxZTJ/Mqyqbkjv6g
So pointing back to 2.0.16 ......
But when downgrading to 2.0.6 (the latest stable/regular version) and then checking the prereleases you can install 2.0.17.
So I think …
[View More]there is something wrong checking versions....
== Feek
[View Less]
Greetings all,
I received the familiar "update downloaded" notification for TextMate, and
installed it as per usual. Unfortunately it seems that it is only for
10.15+, as per the attached screenshot, and I'm running 10.14.6. I've
downloaded 2.0.6 from https://macromates.com/download, but that's a long
way behind the version I was recently using, and if I try upgrading it's
instantly back at the version that won't run. Could somebody please let me
know how to revert to something close to the …
[View More]previous (2.0.15?) version?
Thanks very much,
Paul
[image: tm_nogo.png]
[View Less]
Hi all! I was wondering, how can I (or we) integrate Language Server Protocol / Server to TextMate? For Python, Ruby, Golang etc... I tried every other editors but none of the makes me comfortable as TextMate does.
Uğur Özyılmazel
https://ugur.ozyilmazel.comhttps://github.com/vigo
Good morning *,
using TM2 as a (La)TeX editor most of the time, I’d like to add a few typesetting engines.
TeXShop holds its engines in ~/Library/TeXShop/Engines. When using TeXShop to typeset on Cmd-R (I made a script for that) it uses these which is quite convenient as I modified some of them and added others to reflect the way I work.
Could I use these via the “%!TEX TS-program =” attribution line when running TeX the “normal” TM2 way, probably with some adjustments?
Is there a …
[View More]directory where TM2 stores its engines so that I could create more?
Thanks for any helpful advice!
Regards,
-Moss-
--
Martin Wilhelm Leidig
Dante Member #1580
[View Less]
Ruby 3 has recently been released. Could we get support for Ruby 3 for using in bundle development? I’m referring to the shebang (#!/usr/bin/env ruby20) that one can specify for the language implementation of a bundle command. This shebang is somehow recognized by TextMate and it will automatically download the specified Ruby version if it’s not already installed.
--
/Jacob Carlborg
How about staring an official Slack/Discord/Gitter workspace/channel for TextMate?
I know about IRC and but it's an outdated technology that doesn’t preserve history.
--
/Jacob Carlborg
Hi everyone,
I am looking for a way to sort lines in a simple txt file for a
wordlist/dictionary project. I know that in Textmate there is the
>Bundles>Text>Sorting where I can sort the line alphabetically
according to latin based graphemes. My problem is that I am using IPA
symbols a lot in the wordlist, e.g. ɸ, ⁿt, ð. The sort order in the Text
bundle treats IPA characters as special symbols and puts them at the
end, which is not what I want. So I was wondering if there is …
[View More]way of
creating a custom sort order and apply it. For example:
"a,æ,b,ᵐb,d,ⁿd,e,ɸ ..." instead of "a,b,c,d,e,f ..."
Best
Christian
[View Less]
Hi,
Apple today announced a new event for october 13. So Big Sur will be released soon.
I was wondering if TextMate is compatible with Big Sur?
== Feek
Hello all,
Just a quick question. Sorry if this has been asked before, I searched and didn't find anything related.
I have the habit of keeping several untitled windows open with bits of text or notes. Right now I have 3 untitled windows, all minimized in the Dock. If I open an arbitrary file, it will open it as a tab in one of these untitled windows. This includes files that belong to a project in a folder containing a .tm_properties file. I find this pretty annoying, because these files end …
[View More]up grouped with the untitled document that contains something totally unrelated. When I close the tab that opens, I have to minimize the untitled document again.
Is there a way to force Textmate to always open files in either a window corresponding to their project, or otherwise just a new window?
Thanks!
Quinn
[View Less]
Hi,
I have had an issue building TextMate from the GitHub source for some time. I get the codesign error “resource fork, Finder information, or similar detritus not allowed” (introduced by Apple to enable notarization) for Dialog2.tmplugin:
Ians-MacBook-Pro:textmate ian$ ninja TextMate
[5/116] Sign ‘build/PlugIns/dialog/Dialog2.tmplugin’…
FAILED: build/PlugIns/dialog/Dialog2.tmplugin/Contents/_CodeSignature/CodeResources
xcrun codesign --options runtime --timestamp -fs "-" …
[View More]build/PlugIns/dialog/Dialog2.tmplugin && touch build/PlugIns/dialog/Dialog2.tmplugin/Contents/_CodeSignature/CodeResources
build/PlugIns/dialog/Dialog2.tmplugin: resource fork, Finder information, or similar detritus not allowed
[6/116] Sign ‘build/PlugIns/dialog-1.x/Dialog.tmplugin’…
build/PlugIns/dialog-1.x/Dialog.tmplugin: replacing existing signature
[10/116] Compile ‘Frameworks/FileBro...src/FileBrowserDiskOperations.mm’…
ninja: build stopped: subcommand failed.
Ians-MacBook-Pro:textmate ian$
I assume this happens for others, too, on a fresh clone → configure → build? If not, then any pointers as to what detritus Dialog2.tmplugin might have would be appreciated.
Ian
[View Less]
On August 25, 2020 at 9:13 PM, "Rob McBroom" <mailinglist0(a)skurfer.com> wrote:
It doesn’t auto-indent after (, but that’s probably the language grammar.
I had a quick look, and yes, it's the grammar. Around line 367 this pattern, that I don't claim to understand the purpose of, gobbles up ()
{ begin = '(\()';
end = '(\))';
patterns = ( { include = '$self'; } );
},
before the pattern matching tuples around line 392 get a chance to process it
{ …
[View More] name = 'meta.structure.tuple.python';
match = '(\()(\s*(\)))';
captures = {
1 = { name = 'punctuation.definition.tuple.begin.python'; };
2 = { name = 'meta.empty-tuple.python'; };
3 = { name = 'punctuation.definition.tuple.end.python'; };
};
},
so, effectively, tuples aren't recognized by the grammar.
I deleted the first entry and got expansion of () working without any obvious destructive side-effects. YMMV.
Cheers,
Per
[View Less]
On August 25, 2020 at 9:13 PM, "Rob McBroom" <mailinglist0(a)skurfer.com> wrote:
I forget the details of the behavior I didn’t like before, but I use
disableIndentCorrections = 'emptyLines'
Give that a try. Python is my primary language and it mostly does what I want.
Thanks, that did the trick! This behaviour should probably be the default for python.
The exceptions:
It doesn’t auto-indent after (, but that’s probably the language grammar.
I though it would be just a matter of …
[View More]adding ( and ) to increase/decrease indent patterns, but that doesn't seem to have any effect whatsoever. In fact, removing the part of the increase/decrease indent pattern regexes matching [{ and }] doesn't change the current behaviour, so it seems that it is handled differently. Googling, I found a thread that suggests that auto-indent of paired [] and {} is based a macro triggered by the return key when in a certain scope:
http://textmate.1073791.n5.nabble.com/txmt-dev-Working-with-indentation-rul…
(about half-way down the conversation)
I say we need some authoritative advice here ;)
After a block like
class MyClass:
def action(self):
pass
⇥
Hitting ⇥ at the location shown above will line up with pass and not the previous def. I guess it’s doing the thing that makes sense, even though it’s never what I want and bites me almost daily.
Yeah, I agree. A bit ugly workaround is to add a snippet that applies when caret is in the leftmost position, e.g.:
`printf "%*s" ${TM_TAB_SIZE} ''`$0
and setting the scope selector to L:(source.python dyn.caret.begin.line) and key equivalent to ⇥.
This would obviously only work if you use spaces for tabs...
Cheers,
Per
[View Less]
Hi,
I have noticed a weird behavior with indentation that I'm pretty sure hasn't always been present (as it would have driven me nuts). I've only seen this with python files, and since I keep my own python3 bundle I removed that and installed the default python bundle with the same results.
Let me try to illustrate.
Using the settings
increaseIndentPattern = '^\s*(class|((async\s+)?(def|with|for))|elif|else|except|finally|if|try|while)\b.*:\s*$|(\{|\[)\s*$';
decreaseIndentPattern = '^…
[View More]\s*(elif|else|except|finally)\b.*:|^\s*(\}|\])';
disableIndentCorrections = :true;
indentOnPaste = 'simple';
I see the following behaviour (annotations where strange things happen):
if 1:
pass
else: # Expected this line to decrease indent when typing ':' (not OK)
pass
def foo():
def bar():
pass
return bar # I back up caret one level and type return (OK)
If I change disableIndentCorrections to :false, I get the following behaviour:
if 1:
pass
else: # Did decrease indent when typing ':' (OK)
pass
def foo(): # back up caret to col 0 and type def => auto-indent to align with previous non-empty line (not OK)
pass
# <- Force alignment to col 0, and retry
def foo():
def bar():
pass
return bar # I back up caret one level and type return => auto-indent to align with previous non-empty line (not OK)
FWIW, I scoured the installed bundles for any setting that might interfere, but did not find anything suspicious.
Is anyone else seeing the same behaviour, and if so, has it always been that way?
Is there something I can do to fix it?
Regards,
Per
[View Less]
Hallo,
I work with large amounts of database-output (from 10 to 200 MB), that I usually paste into a new opened TextMate window. When it is pasted, all works as expected. But pasting takes minutes. TM freezes and it takes much, much longer than other editors I tested (VIM, Atom, VS) until the text is visible and useable.
I find out, that this is caused by the Clipboard History. I never heard of this before and do not use it, because I have the Clipy-App for that. Nonetheless the size of the …
[View More]clipboard history file was 1.3 GB. If I clear the clipboard history (control + option + command +v and then "Clear History") everything works normally, but in my case the CH grows really fast. So once a day I have to clear the history.
In my opinion there are some solutions:
- Decoupling the pasting process and the CH process. The CH process should run in background with lower priority.
- Adding a setting to deactivate the CH. But in this case everybody, who use large text insertions run into this problems.
- Limit the size of the CH. But if people rely on this, that can cause problems.
My hardware:
- Macbook Pro 2013 with i7 and 16 GB RAM
- Macbook Pro 2016 with i5 and 8 GB RAM
same behavior on booth.
Thanks in advance
Nils
[View Less]