For some reason, Cmd+T in TextMate insists on offering files _outside_
the project directory, in `..` - I absolutely do not want this at all.
Trying to exclude `..` via `.tm_properties` does not work.
How can I stop TextMate from doing this? I never want anything outside
the files and folders shown in the file browser.
Thanks `:-)`
--
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
Hello,
I’m currently trying to switch from PathFinder to ForkLift as Finder
replacement.
– I unticked the "Set as the default browser" option in PathFinder's
preferences.
– I removed PathFinder completely, i.e. including all the files in the
LaunchAgents etc.
– I ran the "defaults write" commands diven at the bottom of the page
<https://binarynights.com/manual>
– I also tried to use the "defaults delete" lines given there,
restarted, then the "defaults write" commands, and restartet again...
Still, whenever I use "Show in Finder" in TextMate’s FileBrowser, the
FileWill be shown in the Finder, not in ForkLift. (Before, it worked
with PathFinder just fine.)
Is it even possible to get TextMate to go to ForkLift by default? If so,
what do I have to do?
btw, for some applications on my system it works, but for some it
doesn’t. So far, I haven’t been able to figure out what’s the reason.
Kind regards,
Tobias Jung
Hello,
I needed to reinstall TexMate but I was surprised to see some variables like TM_FULLNAME etc. still present
as well as the previously opened files?
Everytime I reinstall textmate I always go back with my previous settings.
~/Library/Application Support/Textmate
~/Library/Caches/ ….
~/Library/Preferences/ ….
~/Library/HTTPStorage/ ….
Where is this data stored?
What to do?
Thanks,
Alain
Hi,
With Monterey on a Macbook Air (M1) when I try to insert a template,
I get the following error:
/Users/ego/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/command.rb:423:in `template_text': uninitialized constant OSX (NameError)
from /Users/ego/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/command.rb:430:in `insert_template'
from LaTeX Template:9
Is there a way around this?
Alain
Hi folks,
I’m developing a TextMate bundle for WakaTime [1]. It seems as though sufficient functionality is available now with Semantic Classes “callback.document.did-open” and “callback.application.did-activate” to trigger a call to the wakatime-cli [2]. (The goal here is to replace the WakaTime.tmplugin [3] which relies on a now-deprecated Python implementation of the WakaTime API, written in Python 2).
Cliff’s Notes on WakaTime: a shell script that can be called to update a web service with how much time has been spent viewing/editing a particular document.
The challenge I’m running into is that the Semantic Classes are triggering my tmCommand for every open window, and I’d like to limit that to the frontmost active tab.
TM_SELECTED_FILE doesn’t cut it, and TM_FILENAME, when populated, returns a value for the active tab of every open window.
I’ve started exploring AppleScript to get the frontmost window’s name and comparing that … but that’s a road I really don’t want to go down.
Is there another approach that I am just not seeing? I have looked through the source for “callback.document” and have dug into OakTabBarView looking for environment variables that may be set to indicate which window & tab is frontmost, and have also looked at the output from $TM_QUERY … and am not finding it anywhere.
Perhaps that’s the plugin I need to write to enable the behavior I want? Objective-C is sort of the final frontier for me, so I can go down that road … but will have questions. :)
Thanks in advance!
Best regards,
Clay
[1]: https://wakatime.com/
[2]: https://github.com/wakatime/wakatime-cli
[3]: https://github.com/wakatime/textmate-wakatime
I'm developing a TextMate bundle for Elm and implemented "Reformat Document" today. Unfortunately, I noticed a rendering glitch that seems to happen sporadically. I managed to record a video showcasing the behaviour. See https://i.fluffy.cc/JhkwfX3wxXvRFR9WPVdPhsLz3FPsfGg7.mov.
In the video, I add a couple of newlines, and elm-format removes them as expected. However, TextMate does not seem to like this (as can be seen in the video). Reopening the files shows that everything is in order and that it in fact was a rendering glitch.
Any ideas to why this happen?
Thanks,
Kevin
I’m seeing the same thing. Just tried to compile TextMate under Xcode 13.1, on macOS 12.0.1, and got the exact same error.
Allan have you bumped into this yourself yet?
Thanks,
Kevin
I just upgraded to 2.0.17 and now any bundle that uses pre-compiled binaries in Bundle Support bundle fails to load due to the incompatible architectures:
> /Users/christos/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': dlopen(/Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle, 9): no suitable image found. Did find: (LoadError)
> /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle: no matching architecture in universal wrapper
> /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle: no matching architecture in universal wrapper - /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle
> from /Users/christos/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
> from /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/textmate.rb:4:in `<top (required)>'
> from /Users/christos/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
> from /Users/christos/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
> from /Users/christos/Library/Application Support/TextMate/Bundles/Linter.tmbundle/Support/lib/linter.rb:1:in `<top (required)>'
> from /Users/christos/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
> from /Users/christos/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
> from Lint/Strip/Ensure on Save:2:in `<main>'
I checked and the builds don't contain arm_64 architectures:
> [~]> file "/Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle"
> /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle: Mach-O universal binary with 3 architectures: [ppc_7400:Mach-O bundle ppc_7400] [i386:Mach-O bundle i386] [x86_64:Mach-O 64-bit bundle x86_64]
> /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle (for architecture ppc7400): Mach-O bundle ppc_7400
> /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle (for architecture i386): Mach-O bundle i386
> /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle (for architecture x86_64): Mach-O 64-bit bundle x86_64
I can't even find the source for those binaries to try and build them. Any ideas?
TextMate 2.0.23 on Mac OS 12.1 has recently (last few restarts) not re-opening with all my other apps after login. I have not changed any preferences in this area, and all the other apps that were open before restart seem to come back just fine, but TM requires that I click the Dock icon instead. All my previous documents (saved and unsaved) are opened as I would expect, it's just the app itself that doesn't seem to want to start up.
Are there any preferences I could fiddle around this?
Anything that might have become corrupted that I could jostle awake somehow?
Thanks in advance,
Walter
In the LaTeX bundle, I use a TM_LATEX_REFTEX_FILTER and a TM_LATEX_CITE_SNIPPET to insert bib data into my files without having to open the .bib files (thanks to René Schwaiger).
I recently changed the .tex preamble that I input at the top of all my files into a .sty package. It works fine, except for the insertion of word-based citations from my bib files.
Is it possible to get the insertion working again via the .sty package?
--Gildas
Hey everybody
I've been a TM user since the very early days. I had a license for TM1, and I kept using TM2 through all these years while many fellow devs switched to fancy coding IDEs.
I love the simplicity of TM2, and it does just what I want it to do, nothing more.
But since a while, I experience that TM2 has some scrolling issues. When I switch between the tabs (opened text files), the scrolling jumps quite unpredictably. I always have to move the cursor (arrow key), so the current line is in the viewport again. This is annoying, and for the first time in my life I'm tempted to abandon TM2 and move to some other simple editor.
Can anyone tell me whether there is a way to fix this? Or that it will be fixed soon?
Thanks a log
Josua
Hi,
After many grateful years with Textmate on my Macs, I also installed it on my new MBP with M1 CPU, running Monterey. Everything seems to run smooth until I hit cmd+/ to toggle/comment a region ;-)
What I think I’ve learned is that:
1. Monterey doesn’t ship a 1.8 ruby version anymore (at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby where the bundle-support bundle’s ruby18 shim looks for it).
2. The “downloaded” 1.8.7 version (from https://archive.textmate.org/ruby/ruby_1.8.7.tbz at ~/Library/Application\ Support/TextMate/Ruby/1.8.7/bin/ruby isn’t compatible with the M1 arch).
So the error is pretty “correct” :
/Users/.../Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin/ruby18: line 43: /Users/.../Library/Application Support/TextMate/Ruby/1.8.7/bin/ruby: Bad CPU type in executable
/Users/.../Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin/ruby18: line 43: /Users/.../Library/Application Support/TextMate/Ruby/1.8.7/bin/ruby: Undefined error: 0
To get around it (for now) I first tried to install a 1.8 version of ruby using rbenv, which didn’t succeed - quick guess it isn’t supported in any way anymore ?! ;-)
So I resorted to adding a prefix to the $PATH variable pointing to ~/bin and adding a small shell script there pointing to a 2.x version
% cat ~/bin/ruby18
#!/bin/bash
RBENV_VERSION=2.7.4 ruby "$@“
So that “resolved” my urgent need ;-) Once I get into areas/bundles with ruby18 code that doesn’t play nice with ruby 2.x (IANARubyKnowledgeablePersonSorry) I’ll probably bump into a new set of issues - fingers crossed for my limited Bundle needs ;-)
Is there anything I can look into to help out here? Or have I simply missed the obviously better approach to solve this?
Thanks and regards,
Christophe
Previously, I enjoyed the small chitchats and conversations we've had in the Freenode IRC channel. Then the Freenode fiasco happened. We're now a small bunch in the Libera.Chat #textmate channel, and I'd love if we could get the community back together. For instance, I miss hearing about what you're up to, Allan.
Thanks,
Kevin
How do I get GitHub flavored Markdown working? I installed the bundle but when I try to preview I see:
Please install the Redcarpet and Pygments.rb RubyGems by running the following:
/usr/bin/gem install --user redcarpet pygments.rb
I did that, but it's not helping. Note that my ruby is installed with rbenv, and TextMate is pointed to it. My gems are installed using rbenv-gemset. For example, if I install redcarpet without saying `--user`, it goes into
/Users/mattmobile/.rbenv/versions/2.6.3/gemsets/rubyfrontier/gems/redcarpet-3.5.1/lib/redcarpet.rb
Thanks - m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 14! https://www.oreilly.com/library/view/programming-ios-14/9781492092162/
iOS 14 Fundamentals! https://www.oreilly.com/library/view/ios-14-programming/9781492092087/
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
If I modify the configuration script to enable debug mode [1] and run the script with a relative build directory:
mkdir build
builddir=build ./configure
ninja TextMate
The build fails with an assertion:
2021-11-06 09:34:58.256923+0100 bl[34313:190611] ------------------------------------------------------------
ASSERTION FAILURE: b[0] == '/'
‘build/debug/_CreateBundlesArchive/Applications/TextMate/resources/Managed/Bundles/Apache.tmbundle’ - ‘build/debug/_CreateBundlesArchive/Applications/TextMate/resources/Managed’
------------------------------------------------------------
path::relative_to(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in bl) (path.cc:0)
bundles_db::save_index(std::__1::vector<std::__1::shared_ptr<bundles_db::bundle_t>, std::__1::allocator<std::__1::shared_ptr<bundles_db::bundle_t> > > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in bl) (updater.cc:420)
__main_block_invoke.30 (in bl) (bl.cc:269)
__wrap_dispatch_async_block_invoke (in libclang_rt.asan_osx_dynamic.dylib) + 203
_dispatch_call_block_and_release (in libdispatch.dylib) + 12
_dispatch_client_callout (in libdispatch.dylib) + 8
_dispatch_lane_serial_drain (in libdispatch.dylib) + 606
_dispatch_lane_invoke (in libdispatch.dylib) + 417
_dispatch_queue_override_invoke (in libdispatch.dylib) + 425
_dispatch_root_queue_drain (in libdispatch.dylib) + 326
_dispatch_worker_thread2 (in libdispatch.dylib) + 92
_pthread_wqthread (in libsystem_pthread.dylib) + 244
start_wqthread (in libsystem_pthread.dylib) + 15
Process 34313 exited with status = 1 (0x00000001)
(lldb) q
I release mode the build completes, I assume because assertions are disabled. If I run the configuration script in debug mode with a full build path the build completes as well:
builddir=$(pwd)/build ./configure
[1] https://github.com/textmate/textmate/blob/346b52b108b387462d4b3def481fb7498…
--
/Jacob Carlborg
I’ve been right clicking text on OS 12 and choose the language I want it translated into, instead of going to Google translate. But this is only available on Apple apps like Pages, it seems, and not on other applications like TextMate, MacVim, or Atom. Will it be possible to have it work on TextMate?
—Gildas
Just got M1 MBP yesterday and everything in not fully set up.
But if I save a Ruby file, it’s as if Cmd-A, Cmd-X is run first. Cmd-Z brings it all back. Doesn’t matter whether I use Cmd-S or File>Save
Occurred to me it might be a git issue (no reason to think so, but I’m grasping0. I ran git commit from TM and the same thing happened, the front file was cleared.
However copying the contents to a new file and saving in a different place works as expected.
New install of TM.
I know requireCommands can accept static paths or variables, but is it possible to define paths existing of both? E.g., $CARGO_HOME/bin/$TM_CARGO_NAME?
This is something that come up over and over again when I do bundle development and right now I have to sort it out in Ruby instead.
Thanks,
Kevin
I am trying to filter the search down to just .php, .phl, and .inc files, and despite trying a bunch of different regex flavors, I cannot divine what the magic key is to only get those hits. When I try to combine them, I get no results. What kind of syntax is that 'matching' field expecting. I have read the online documentation without any joy.
Thanks,
Walter
Hi all,
I use for years now the following bundle command.
So create in your own (or new bundle) the following command:
- Go to Bundle Editor (⌃-⌥-⌘-B) (CTRL-OPT-CMND-B)
- Into your own (or new) Bundle, create new command (⌘-N): choose command (see: https://feek.d.pr/7L7Yiq/ZvMqhk8685)
- place in the code part the following code (see my gist): https://gist.github.com/feekApp/3d29b035d839b2665b921ac84f08fc52
- on the right side set the following settings: https://feek.d.pr/B07GgG/2gFInPLbwQ
- on the "Semantic Class" set "callback.document.did-save, callback.document.did-open, callback.document.did-change-scm-status" in order to let the colors in the gutter update on save and change of the file
- Add "source.css, source.css.less" to scope (or add other scopes you want)
Works perfectly for me:
https://feek.d.pr/JCJiOM/85fpg8RAOp
== Feek
Hi everyone,I've googled for that for days, but I can't find any solution. Is there any possibility to color hexadecimal values (e.g. #FF0000) with it's value? Like on the screenshot. I know how to colorize the pattern, but I can't set the color value in the theme.
Hello All.
My name is Lucas nadolskis, this is my first email to this list.
I have a current issue that every time that I try saving a file on TextMate I get:
Setting Extended Attributes.
And does not allow me to save the file.
I am using TextMate 2.0.23 and macOS 11.6
Any advice is appreciated.
Kind regards.
Lucas nadolskis.
Hi,
if you do a find, the first found string is marked and you need to
manually unmark it. I usually hit ESCape but this will then delete the
marked text, which I find inconvenient.
Is there key or combination that closes the search window, withough
deleting the found/marked text?
If not, would that be a helpful feature to have?
el
--
Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist
el(a)lisse.NA / * | Telephone: +264 81 124 6733 (cell)
PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP
10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply
Book your Covid-19 Vaccination at https://c19.idtoday.com.na
Hello
I’ve been using textmate for a while and love it. Ran into a snag today. When I have multi-level nested code, I don't get syntax highlighting.
I’m writing a PHP WordPress function that dynamically builds JSON-LD in a <script> tag and then adds that code to <head> using the wp_head hook. The problem is that JSON-LD and PHP code is not being syntax highlighted when it’s nested like this. It just shows up as a single color (white in my case).
Here’s a truncated example of the code:
<?php
add_action('wp_head', ‘works_jsonld_header');
function works_jsonld_header() {
***variables are being set here***
if (is_singular()){
?>
<script type="application/ld+json”>
{
"@context": "https://schema.org”,
"@type": "CreativeWork”,
"@id": "<?= $works_link ?>”,
"name": "<?= $w_title ?>”,
"about": "<?= $w_descript ?>”,
"accessMode": ["auditory", "textual", "visual”],
"creator": {
"@type": "Person”,
"name": "<?= $short_name ?>”,
"image": "<?= $auth_img_url[0] ?>”,
"sameAs": [
"<?php echo $auth_link . '"’;
if (isset($auth_wiki_p) && $auth_wiki_p !== '' && isset($auth_wiki_s) && $auth_wiki_s !== ''){
echo '"' . $auth_wiki_p . '",’;
} else if (isset($auth_wiki_p) && ($auth_wiki_p !== '') && $auth_wiki_s == ''){
echo '"' . $auth_wiki_p . '"’;
}
if (isset($auth_wiki_s) && $auth_wiki_s !== ''){
echo '"' . $auth_wiki_s . '"’;
}
?>
]
},
*** extra code here***
}
</script>
<?php
}
}
?>
As you can see, this is PHP nested in JSON-LD, that is nested in HTML, that is nested in PHP :) Code works, but there is no syntax highlighting for JSON-LD or PHP within JSON-LD.
Not sure if there is a way to enable this in TextMate or if it would have to be added as a new feature. Since using schema is quickly becoming a standard, and WordPress powers so many sites, I think it would be very useful if this worked.
Thanks
Hi,
I can set `saveOnBlur` in a properties declaration, like so
# File .tm_properties
[ text.scratch ]
saveOnBlur = true
but it seems I cannot set it in a bundle (for the text.scratch type)?
Maybe I'm missing something obvious here?
More generally, what is the relation between bundle settings (other than shell vars) and properties (.tm_properties)?
Cheers,
Per
Since Freenode decided to destroy both their reputation and their network, is there an alternative channel for TextMate now? I visited #textmate on https://libera.chat <https://libera.chat/> but it doesn’t look “official” in the sense that Allan isn’t there, and no motd is set.
Hi all,
Montery/MacOS12 no longer includes php and this breaks some bundle commands.
Does the group have suggestions about a preferred way for a user who just wants it to work without hassles to use going forward?
Options seem to be
homebrew, e.g. https://github.com/shivammathur/homebrew-php
or https://www.macports.org
port install php
Thoughts?
t
On 25 May 2021, at 16:28, Roberto Avanzi wrote:
> So, to summarize:
>
> - The /opt/homebrew is the new location for APple Silicon based macs
> - On macos 11.00 the default behaviour of ibtool seem to have changed,
> since I made no specific change to default configuration myself
> - For two nib's the directory is still created, and there seems to be
> a big sur special version inside
It turns out the issue is with xib files that contain a custom view (no window), a table view, and which has a deployment target (presumably less than macOS 11), for those, ibtool will create a directory.
Hard to believe this is anything but a bug in latest Xcode, but as a workaround, I have now removed deployment target from all xib files.
Regarding `/opt/homebrew`: If you run `./configure` then it now creates a default `local.rave` containing:
add FLAGS "-I/usr/local/include"
add LN_FLAGS "-L/usr/local/lib"
Then it complains that it cannot find dependencies.
Edit `local.ninja` with your M1 homebrew paths and then re-run `./configure`, and it should hopefully work.
Personally I get build dependencies from nixpkgs, there are people who use MacPorts, and then there is non-M1 homebrew, so I think it is fair that if dependencies are not in `/usr/local` then the user will have to manually edit the file, because `./configure` can quickly become a mess if it has to try everything.
Hello
Already last december I was ablt to build TextMate on a M1 MacBook (I
shared this with Michael Sheets) but at the time and still now I
encounter some errors during the build. For instance
FAILED: /Users/mocenigo/build/textmate/release/Applications/TextMate/TextMate.app/Contents/Resources/English.lproj/GrammarProperties.nib
/bin/cp -Xp /Users/mocenigo/build/textmate/release/_CompileXib/Frameworks/BundleEditor/resources/English.lproj/GrammarProperties.nib
/Users/mocenigo/build/textmate/release/Applications/TextMate/TextMate.app/Contents/Resources/English.lproj/GrammarProperties.nib
&& touch /Users/mocenigo/build/textmate/release/Applications/TextMate/TextMate.app/Contents/Resources/English.lproj/GrammarProperties.nib
cp: /Users/mocenigo/build/textmate/release/_CompileXib/Frameworks/BundleEditor/resources/English.lproj/GrammarProperties.nib
is a directory (not copied).
ninja: build stopped: subcommand failed.
Now, if i continue to issue the command "ninja TextMate" it will
eventually build and sign a working application. But this should not
happen, I guess.
How can I set up the environment to just build properly, with "ninja
TextMate" and not stopping on the cp commands?
Roberto
Is there any change that I can set something like NSToolTipsFont ? I can set NSToolTipsFontSize via;
defaults write com.macromates.TextMate NSToolTipsFontSize 24
How can I set font-family for ToolTips?
Thanks
Uğur Özyılmazel
https://ugur.ozyilmazel.comhttps://github.com/vigo
Hello
I have been able to compile TextMate a few times already, but for some
reason I have to issue the command dozens of time because the build
often halts with errors like
[2/150] Copy ‘/Users/mocenigo/build/textmate/release/_CompileXi...BundleEditor/resources/English.lproj/FileDropProperties.nib’…
FAILED: /Users/mocenigo/build/textmate/release/Applications/TextMate/TextMate.app/Contents/Resources/English.lproj/FileDropProperties.nib
/bin/cp -Xp /Users/mocenigo/build/textmate/release/_CompileXib/Frameworks/BundleEditor/resources/English.lproj/FileDropProperties.nib
/Users/mocenigo/build/textmate/release/Applications/TextMate/TextMate.app/Contents/Resources/English.lproj/FileDropProperties.nib
&& touch /Users/mocenigo/build/textmate/release/Applications/TextMate/TextMate.app/Contents/Resources/English.lproj/FileDropProperties.nib
cp: /Users/mocenigo/build/textmate/release/_CompileXib/Frameworks/BundleEditor/resources/English.lproj/FileDropProperties.nib
is a directory (not copied).
but I am following the instructions on the github page to the letter.
What could this be and how do I fix it? It semes that t "-r"
(recursive) flag is missing or something from the cp command.
Roberto
Hi,
Firstly, Allan et al, thank you for everything you do. We’ve been using TextMate 1 and then 2 for years at my company.
Recently a bug has cropped up in the Find in Files list, for example:
I haven’t worked out what causes it, but parts of the previous searches are left in the list and overlay subsequent searches. A restart clears it obviously, but nothing else - the fragments just linger and accumulate making it gradually more and more difficult to see the results.
I’m on 2.0.19 on Big Sur. I’m guessing that the bug started occurring around version 2.0.16. There seem to have been quite a few changes in the Find dialog in version 2.0.16.
Regards,
Jonathan.
Anyone can help here?
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 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
I’ve noticed there are some minor graphical bugs in TextMate. I think most of these bugs are new in Big Sur.
* The icon in the toolbar (or whatever it’s called) above the file browser could use some left margin:
* The selection for the tab buttons in the About window are a bit off:
* The text in the completion dialog (triggered by some bundle command) is not centered vertically:
* The size of the completion dialog (triggered by some bundle command) doesn’t always increase to match the content:
I’ve included screenshots for each bug, I hope they show up.
I’m running TextMate 2.0.21 on macOS Big Sur 11.1.
--
/Jacob Carlborg
I have hunted through the interface, and I can't find a setting that would allow hidden files to appear in the list in the file browser. I can find those files by using File / Open, which shows me a standard file dialog, and the options in that allow me to see hidden files (that option is checked on, and stays on). But the list never shows them. How is this preference meant to be governed?
Thanks in advance,
Walter
Hi,
There's a severe data loss bug in recent releases, including 2.0.16, where trying to undo an edit operation in the editor results instead in an undo of an operation in the file browser pane. If the sound is not muted, you may hear the sound of a file/folder being moved to the trash. But instead the file/folder just vanishes, loosing the work in those files/folders. When this bug occurs, restarting TextMate offers a temporary workaround. Until it happens again. I'm using macOS 11.2 if that's relevant. I'm a registered user of TextMate since version 1.x. Never until the latest releases I have come across this bug.
Cheers,
Paulo
-----------------------------------------------------------------
Paulo Moura
Logtalk developer
I am using Textmate for writing LaTex texts and I recently found that I can used a shortcut for completing environments (the help says "by default to cmd and < " but it turned out to be ctrl and <). Still, I get an error message that I did not find in the mailing list:
Failure running “Environment Based on Current Word”.
Users/andreasloeffler/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/configuration.rb:29:in `load': Unexpected character { at line 1 (OSX::PropertyListError)
from /Users/andreasloeffler/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/configuration.rb:29:in `load_file'
from /Users/andreasloeffler/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/configuration.rb:28:in `open'
from /Users/andreasloeffler/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/configuration.rb:28:in `load_file'
from /Users/andreasloeffler/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/configuration.rb:38:in `load_user_file'
from /Users/andreasloeffler/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/configuration.rb:20:in `load'
from Environment Based on Current Word:6
Unfortunately, I do not understand the source code so I do not know what to do. If I edit the command I see
#!/usr/bin/env ruby18
SUPPORT = ENV['TM_BUNDLE_SUPPORT']
require ENV['TM_SUPPORT_PATH'] + '/lib/ui'
require ENV['TM_SUPPORT_PATH'] + '/lib/exit_codes'
require SUPPORT + '/lib/Ruby/configuration.rb'
@plist = Configuration.load
shortcuts = @plist['environments']
lshortcuts = @plist['labeled_environments']
if ENV['TM_SCOPE'].match('beamer') then
shortcuts.update(@plist['environments_beamer'])
lshortcuts.update(@plist['labeled_environments_beamer'])
end
name = STDIN.read
cmd = nil
if name == "" then
arr = ["custom…",nil] + (shortcuts.keys+lshortcuts.keys).sort
ind = TextMate::UI.menu(arr)
TextMate.exit_discard if ind.nil?
if ind == 0 then
name = ""
else
name = arr[ind]
end
end
options = Array.new
for key in shortcuts.keys do
if shortcuts[key]['triggers'].index(name) then
options << {:cmd => key, :setting => :no_label, :content => shortcuts[key]['content']}
end
end
for key in lshortcuts.keys do
if lshortcuts[key]['triggers'].index(name) then
options << {:cmd => key, :setting => :label, :content => lshortcuts[key]['content']}
end
end
opt = case options.length
when 0
nil
when 1
options[0]
else
ind = TextMate::UI.menu(options.map { |opt| opt[:cmd] })
ind.nil? ? nil : options[ind]
end
if !opt.nil? then
print "\\begin{#{opt[:cmd]}}"
print "\n" if opt[:setting] == :no_label
print opt[:content] || "\t$0"
print "\n\\end{#{opt[:cmd]}}"
elsif name == ""
print "\\begin{${1:env}}\n\t$0\n\\end{${1:env}}"
else
print "\\begin{#{name}}\n\t$0\n\\end{#{name}}"
end
Can anybody point me to something I understand?
Twice this afternoon I have inadvertently deleted the current file I am editing.
0. I am using Mac OS 10.15.7 with all available updates.
1. I am in 2.0.19
2. I am editing an existing, previously-saved SCSS file in a Rails project
3. I have used the keyboard shortcut Command Delete to delete all text on the current line, left-wise.
4. There were previously two spaces on the line (not sure if this is important)
When I hit this combination of keys, I hear the Trash sound, and the file I am editing disappears from the file list in the sidebar. It does not join its peers in the Git deleted state (there are other files I have previously deleted in the same folder, awaiting their ultimate fate of having that delete committed.
Luckily, the file is still open and focused in the editor's buffer when I do that, so simply saving restores the file where it was. If I were listening to a podcast or similar, this could have gotten ugly.
I am in 2.0.19 -- I triple-checked. The sidebar file list is in no manner of speaking in "focus" when this happens, my text cursor is blinking at the insertion point where I expect to delete-leftwards.
Please let me know if there are any commands I can run while the editor is in this state that might give you further insight into this issue. I'm gonna keep editing for now until I hear from you (fingers crossed) and then I'm gonna restart the whole Mac to be certain.
Walter
Hi,
Today while using TM (version 2.0.19 on macOS 10.15.7), I noticed that
the title case style doesn't seem to work for words of three letters or
less that are not conjunctions or prepositions. I wanted to convert a
sentence to title case with the Crtl + Opt + U keys and in the sentence
the three letter word 'use' didn't become upper case while the longer
words did. It appears that conjunctions and prepositions become title
case only for four letter words or longer. Is there a particular style
that title case adheres to in TM? The two main style types listed on
Wikipedia are the AP style and the Chicago style. Does TM use something
different?
Title case - Wikipedia <https://en.wikipedia.org/wiki/Title_case>
Cheers,
Angelo
After updating to v2.0.17, when I open the Bundle Editor, it looks like this (screenshot):
https://i.imgur.com/4Xhewxw.png
The browser section is shrunk down to a few pixels. I'm unable to use the drag handle to resize the panels to reveal the browser section. Any secret tricks to restore the panels to their default size?
😅
Quinn
Of course the solution of Allan is much better :)
Reason why I post my solution, is that I always want to see some of my dot-files, I've done that like:
myExtraIncludes = ".tm_properties,.htaccess,.gitignore,.gitlab-ci.yml"
fileBrowserGlob = "{*,$myExtraIncludes}"
include = "{$include,$myExtraIncludes}"
Use something like this in your main .tm_properties:
# ---------------------------------------------------------
# Exclude files in the file browser
# ---------------------------------------------------------
exclude = "{$exclude,*.doc*,.DS_Store,.gitkeep}"
Thanks so much for the fix, Andrew. That one cost me a couple hours of work when it deleted a new file.
> On Mar 5, 2021, at 8:02 AM, textmate-request(a)lists.macromates.com wrote:
>
> Send TextMate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via email, send a message with subject or
> body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of TextMate digest..."Today's Topics:
>
> 1. Re: Data loss bug in 2.0.16 (Paulo Moura)
> 2. Re: Data loss bug in 2.0.16 (Andrew Hodgkinson)
> 3. Failure running “Environment Based on Current Word”.
> (andreas.loeffler(a)googlemail.com)
> 4. Strange Behavior of Command-Z/Shift-Command-Z (Jack Royal-Gordon)
> 5. Re: Strange Behavior of Command-Z/Shift-Command-Z
> (Andrew Hodgkinson)
> 6. Hidden files in the file browser? (Walter Lee Davis)
> 7. Re: Hidden files in the file browser? (Staf Campforts)
>
> From: Paulo Moura <pmoura(a)logtalk.org>
> Subject: [TxMt]Re: Data loss bug in 2.0.16
> Date: February 25, 2021 at 1:07:43 PM PST
> To: TextMate users <textmate(a)lists.macromates.com>
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Thanks for quick fix! Would it be possible to highlight somehow the file browser when it gains focus?
>
>> On 25 Feb 2021, at 20:37, Allan Odgaard via TextMate <textmate(a)lists.macromates.com> wrote:
>>
>> On 25 Feb 2021, at 20:52, Andrew Hodgkinson via TextMate wrote:
>>
>> If there is an OS behaviour change, it's presumably down to the cascade of events from one child of a parent window to another, when one of them doesn't handle a key press.
>>
>> That made it click: The key equivalent is in a context menu, context menus are outside the regular view hierarchy, so that is what is causing the problem.
>>
>> I have pushed v2.0.19 which contains a fix for this. Hold option (⌥) when checking for new build. Though it will be promoted to regular release shortly, given the severity.
>>
>> I am terrible sorry for anyone who has been affected by this!
>>
>> _______________________________________________
>> TextMate mailing list -- textmate(a)lists.macromates.com
>> To unsubscribe send an email to textmate-leave(a)lists.macromates.com
>
> -----------------------------------------------------------------
> Paulo Moura
> Logtalk developer
>
>
>
>
>
>
>
> From: "Andrew Hodgkinson" <ahodgkin(a)rowing.org.uk>
> Subject: [TxMt]Re: Data loss bug in 2.0.16
> Date: February 25, 2021 at 2:44:35 PM PST
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 26 Feb 2021, at 9:12, Matt Neuburg via TextMate wrote:
>
>> But then wouldn’t reverting to 2.0.6 fail to solve it? m.
>
> Heh! Yes, of course, that's right, I didn't think of that... And then Allan wrote:
>
>> That made it click: The key equivalent is in a context menu, context menus are outside the regular view hierarchy, so that is what is causing the problem.
>> I have pushed v2.0.19 which contains a fix for this
>
> Great! That's awesome - thanks for such a quick fix. I've tried fiddling around for a while and cannot seem to persuade anything untoward to happen with Cmd+Z in text editor views now :-)
>
> --
> 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
>
>
>
> From: andreas.loeffler(a)googlemail.com
> Subject: [TxMt] Failure running “Environment Based on Current Word”.
> Date: February 27, 2021 at 5:26:08 AM PST
> To: textmate(a)lists.macromates.com
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> I am using Textmate for writing LaTex texts and I recently found that I can used a shortcut for completing environments (the help says "by default to cmd and < " but it turned out to be ctrl and <). Still, I get an error message that I did not find in the mailing list:
>
> Failure running “Environment Based on Current Word”.
>
> Users/andreasloeffler/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/configuration.rb:29:in `load': Unexpected character { at line 1 (OSX::PropertyListError)
> from /Users/andreasloeffler/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/configuration.rb:29:in `load_file'
> from /Users/andreasloeffler/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/configuration.rb:28:in `open'
> from /Users/andreasloeffler/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/configuration.rb:28:in `load_file'
> from /Users/andreasloeffler/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/configuration.rb:38:in `load_user_file'
> from /Users/andreasloeffler/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/configuration.rb:20:in `load'
> from Environment Based on Current Word:6
>
> Unfortunately, I do not understand the source code so I do not know what to do. If I edit the command I see
>
> #!/usr/bin/env ruby18
> SUPPORT = ENV['TM_BUNDLE_SUPPORT']
> require ENV['TM_SUPPORT_PATH'] + '/lib/ui'
> require ENV['TM_SUPPORT_PATH'] + '/lib/exit_codes'
> require SUPPORT + '/lib/Ruby/configuration.rb'
> @plist = Configuration.load
> shortcuts = @plist['environments']
> lshortcuts = @plist['labeled_environments']
> if ENV['TM_SCOPE'].match('beamer') then
> shortcuts.update(@plist['environments_beamer'])
> lshortcuts.update(@plist['labeled_environments_beamer'])
> end
> name = STDIN.read
> cmd = nil
> if name == "" then
> arr = ["custom…",nil] + (shortcuts.keys+lshortcuts.keys).sort
> ind = TextMate::UI.menu(arr)
> TextMate.exit_discard if ind.nil?
> if ind == 0 then
> name = ""
> else
> name = arr[ind]
> end
> end
> options = Array.new
> for key in shortcuts.keys do
> if shortcuts[key]['triggers'].index(name) then
> options << {:cmd => key, :setting => :no_label, :content => shortcuts[key]['content']}
> end
> end
> for key in lshortcuts.keys do
> if lshortcuts[key]['triggers'].index(name) then
> options << {:cmd => key, :setting => :label, :content => lshortcuts[key]['content']}
> end
> end
> opt = case options.length
> when 0
> nil
> when 1
> options[0]
> else
> ind = TextMate::UI.menu(options.map { |opt| opt[:cmd] })
> ind.nil? ? nil : options[ind]
> end
> if !opt.nil? then
> print "\\begin{#{opt[:cmd]}}"
> print "\n" if opt[:setting] == :no_label
> print opt[:content] || "\t$0"
> print "\n\\end{#{opt[:cmd]}}"
> elsif name == ""
> print "\\begin{${1:env}}\n\t$0\n\\end{${1:env}}"
> else
> print "\\begin{#{name}}\n\t$0\n\\end{#{name}}"
> end
>
>
> Can anybody point me to something I understand?
>
>
>
> From: Jack Royal-Gordon <jackrg(a)pobox.com>
> Subject: [TxMt]Strange Behavior of Command-Z/Shift-Command-Z
> Date: March 2, 2021 at 11:23:30 AM PST
> To: textmate(a)lists.macromates.com
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> 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 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).
>
>
> From: "Andrew Hodgkinson" <ahodgkin(a)rowing.org.uk>
> Subject: [TxMt]Re: Strange Behavior of Command-Z/Shift-Command-Z
> Date: March 2, 2021 at 11:29:27 AM PST
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 3 Mar 2021, at 8:23, Jack Royal-Gordon via TextMate wrote:
>
> 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
>
> Yes, it happens when there are no longer any undo/redo steps left in the text view - the shortcuts were dropping through to the file browser.
>
> Happily yhis was fixed in v2.0.19, so check for updates :-)
>
>
> --
> 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
>
>
>
>
> From: Walter Lee Davis <waltd(a)wdstudio.com>
> Subject: [TxMt]Hidden files in the file browser?
> Date: March 5, 2021 at 5:58:36 AM PST
> To: TextMate users <textmate(a)lists.macromates.com>
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> I have hunted through the interface, and I can't find a setting that would allow hidden files to appear in the list in the file browser. I can find those files by using File / Open, which shows me a standard file dialog, and the options in that allow me to see hidden files (that option is checked on, and stays on). But the list never shows them. How is this preference meant to be governed?
>
> Thanks in advance,
>
> Walter
>
>
> From: Staf Campforts <sc(a)anitafleerackers.be>
> Subject: [TxMt]Re: Hidden files in the file browser?
> Date: March 5, 2021 at 8:02:13 AM PST
> To: TextMate users <textmate(a)lists.macromates.com>, Walter Lee Davis <waltd(a)wdstudio.com>
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Hi,
>
> In a MAC you’ll make the hidden files visible as follows:
> In the terminal, execute these two commands:
>
> defaults write com.apple.finder AppleShowAllFiles TRUE
> killall Finder
>
> Best regards,
> Staf
> __________________________________
> Staf Campforts
> Hemeldonk 9
> B-2275 Gierle Belgium
> mob; +32 (0)497 47 07 82
> email: sc(a)anitafleerackers.be <mailto:sc@anitafleerackers.be>
> www.anitafleerackers.be
>
> Please consider your environmental responsibility before printing this email.
>
>> Op 5 mrt. 2021, om 14:58 heeft Walter Lee Davis via TextMate <textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>> het volgende geschreven:
>>
>> I have hunted through the interface, and I can't find a setting that would allow hidden files to appear in the list in the file browser. I can find those files by using File / Open, which shows me a standard file dialog, and the options in that allow me to see hidden files (that option is checked on, and stays on). But the list never shows them. How is this preference meant to be governed?
>>
>> Thanks in advance,
>>
>> Walter
>> _______________________________________________
>> TextMate mailing list -- textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>
>> To unsubscribe send an email to textmate-leave(a)lists.macromates.com <mailto:textmate-leave@lists.macromates.com>
>
>
>
> _______________________________________________
> TextMate mailing list -- textmate(a)lists.macromates.com
> To unsubscribe send an email to textmate-leave(a)lists.macromates.com
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 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).
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> 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
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 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
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. 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
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 there is something wrong checking versions....
== Feek
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 previous (2.0.15?) version?
Thanks very much,
Paul
[image: tm_nogo.png]
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 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
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 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
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 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
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 "-" 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
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
{ 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
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 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
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 = '^\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
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 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
I'm trying to create a language bundle where it will not be possible to identify all the scopes correctly using regular expressions. Is there a way to generate the scope dynamically somehow?
I see there is a TextMate Ctags bundle (https://github.com/textmate/ctags.tmbundle). Does TextMate use CTags to locate and syntax color both functions and variables? Where does the file go and what name does it need to have?
Thanks,
John DeSoi, Ph.D.
Hey there,
I'm trying to figure out how to get back to a command's HTML window after
the command has finished. What I currently have works fine:
#!/usr/bin/env ruby18
require "#{ENV['TM_SUPPORT_PATH']}/lib/tm/executor"
ENV['EDITOR'] = 'mate --wait'
TextMate::Executor.run("eyaml", "edit", "#{ENV['TM_FILEPATH']}")
I have Output set to show in a new HTML window and I do get the output
there. I'm just wondering if there's a way to get TM to automatically
return to the HTML window after I've closed the modified eyaml (so I don't
miss any error output for example).
Thanks,
George
I’ve been seeing things where a search gives what I know are incorrect
results, or worse, I’ll go for days thinking I’ve identified all the
references to some string in a project then find out I missed a few. I
think I’ve somewhat figured out how to reproduce it.
Selecting a folder in the File Browser and hitting ⇧⌘F mostly works
as expected, but if the Find dialog is already open, the “In:” field
doesn’t update.
If you perform the search anyway, it seems to sometimes search the
original location (still displayed) and sometimes search what you had
selected in the File Browser, even though that isn’t displayed. I
swear it searches the entire project sometimes as well, but I could be
wrong about that.
In any case, something isn’t quite right. Thanks.
--
Rob McBroom
I updated a PostgreSQL bundle with new keywords for the latest version. As far as I can tell there is no difference except the the new version has quite a few more keywords. But the bundle editor syntax coloring now indicates there are errors after this specification. Is there a string length limit or some other way to fix it? As far as I can tell the bundle is working find and all keywords are recognized.
John DeSoi, Ph.D.
old
<key>match</key>
<string>(?xi)\b(abort|absolute|access|action|add|admin|after|aggregate|all|also|alter|always|analyse|analyze|and|any|array|as|asc|assertion|assignment|asymmetric|at|attribute|authorization|backward|before|begin|between|bigint|binary|bit|boolean|both|by|cache|called|cascade|cascaded|case|cast|catalog|chain|char|character|characteristics|check|checkpoint|class|close|cluster|coalesce|collate|collation|column|comment|comments|commit|committed|concurrently|configuration|connection|constraint|constraints|content|continue|conversion|copy|cost|create|cross|csv|current|current_catalog|current_date|current_role|current_schema|current_time|current_timestamp|current_user|cursor|cycle|data|database|day|deallocate|dec|decimal|declare|default|defaults|deferrable|deferred|definer|delete|delimiter|delimiters|desc|dictionary|disable|discard|distinct|do|document|domain|double|drop|each|else|enable|encoding|encrypted|end|enum|escape|event|except|exclude|excluding|exclusive|execute|exists|explain|extension|external|extract|false|family|fetch|first|float|following|for|force|foreign|forward|freeze|from|full|function|functions|global|grant|granted|greatest|group|handler|having|header|hold|hour|identity|if|ilike|immediate|immutable|implicit|in|including|increment|index|indexes|inherit|inherits|initially|inline|inner|inout|input|insensitive|insert|instead|int|integer|intersect|interval|into|invoker|is|isnull|isolation|join|key|label|language|large|last|lateral|lc_collate|lc_ctype|leading|leakproof|least|left|level|like|limit|listen|load|local|localtime|localtimestamp|location|lock|mapping|match|materialized|maxvalue|minute|minvalue|mode|month|move|name|names|national|natural|nchar|next|no|none|not|nothing|notify|notnull|nowait|null|nullif|nulls|numeric|object|of|off|offset|oids|on|only|operator|option|options|or|order|out|outer|over|overlaps|overlay|owned|owner|parser|partial|partition|passing|password|placing|plans|position|preceding|precision|prepare|prepared|preserve|primary|prior|privileges|procedural|procedure|program|quote|range|read|real|reassign|recheck|recursive|ref|references|refresh|reindex|relative|release|rename|repeatable|replace|replica|reset|restart|restrict|returning|returns|revoke|right|role|rollback|row|rows|rule|savepoint|schema|scroll|search|second|security|select|sequence|sequences|serializable|server|session|session_user|set|setof|share|show|similar|simple|smallint|snapshot|some|stable|standalone|start|statement|statistics|stdin|stdout|storage|strict|strip|substring|symmetric|sysid|system|table|tables|tablespace|temp|template|temporary|text|then|time|timestamp|to|trailing|transaction|treat|trigger|trim|true|truncate|trusted|type|types|unbounded|uncommitted|unencrypted|union|unique|unknown|unlisten|unlogged|until|update|user|using|vacuum|valid|validate|validator|value|values|varchar|variadic|varying|verbose|version|view|volatile|when|where|whitespace|window|with|without|work|wrapper|write|xml|xmlattributes|xmlconcat|xmlelement|xmlexists|xmlforest|xmlparse|xmlpi|xmlroot|xmlserialize|year|yes|zone)\b</string>
new
<key>match</key>
<string>(?xi)\b(abort|absolute|access|aclitem|action|add|admin|after|aggregate|all|also|alter|always|analyse|analyze|and|any|anyarray|anyelement|anyenum|anynonarray|anyrange|array|as|asc|assertion|assignment|asymmetric|at|attach|attribute|authorization|backward|before|begin|between|bigint|binary|bit|bool|boolean|both|box|bpchar|by|bytea|cache|call|called|cascade|cascaded|case|cast|catalog|chain|char|character|characteristics|check|checkpoint|cid|cidr|circle|class|close|cluster|coalesce|collate|collation|column|columns|comment|comments|commit|committed|concurrently|configuration|conflict|connection|constraint|constraints|content|continue|conversion|copy|cost|create|cross|cstring|csv|cube|current|current_catalog|current_date|current_role|current_schema|current_time|current_timestamp|current_user|cursor|cycle|data|database|date|daterange|day|deallocate|dec|decimal|declare|default|defaults|deferrable|deferred|definer|delete|delimiter|delimiters|depends|desc|detach|dictionary|disable|discard|distinct|do|document|domain|double|drop|each|else|enable|encoding|encrypted|end|enum|escape|event|event_trigger|except|exclude|excluding|exclusive|execute|exists|explain|extension|external|extract|false|family|fdw_handler|fetch|filter|first|float|float4|float8|following|for|force|foreign|forward|freeze|from|full|function|functions|generated|global|grant|granted|greatest|group|grouping|groups|gtsvector|handler|having|header|hold|hour|identity|if|ilike|immediate|immutable|implicit|import|in|include|including|increment|index|index_am_handler|indexes|inet|inherit|inherits|initially|inline|inner|inout|input|insensitive|insert|instead|int|int2|int2vector|int4|int4range|int8|int8range|integer|internal|intersect|interval|into|invoker|is|isnull|isolation|join|json|jsonb|jsonpath|key|label|language|language_handler|large|last|lateral|leading|leakproof|least|left|level|like|limit|line|listen|load|local|localtime|localtimestamp|location|lock|locked|logged|lseg|macaddr|macaddr8|mapping|match|materialized|maxvalue|method|minute|minvalue|mode|money|month|move|name|names|national|natural|nchar|new|next|no|none|not|nothing|notify|notnull|nowait|null|nullif|nulls|numeric|numrange|object|of|off|offset|oid|oids|oidvector|old|on|only|opaque|operator|option|options|or|order|ordinality|others|out|outer|over|overlaps|overlay|overriding|owned|owner|parallel|parser|partial|partition|passing|password|path|pg_attribute|pg_auth_members|pg_authid|pg_class|pg_database|pg_ddl_command|pg_dependencies|pg_lsn|pg_mcv_list|pg_ndistinct|pg_node_tree|pg_proc|pg_shseclabel|pg_subscription|pg_type|placing|plans|point|policy|polygon|position|preceding|precision|prepare|prepared|preserve|primary|prior|privileges|procedural|procedure|procedures|program|publication|quote|range|read|real|reassign|recheck|record|recursive|ref|refcursor|references|referencing|refresh|regclass|regconfig|regdictionary|regnamespace|regoper|regoperator|regproc|regprocedure|regrole|regtype|reindex|relative|release|rename|repeatable|replace|replica|reset|restart|restrict|returning|returns|revoke|right|role|rollback|rollup|routine|routines|row|rows|rule|savepoint|schema|schemas|scroll|search|second|security|select|sequence|sequences|serializable|server|session|session_user|set|setof|sets|share|show|similar|simple|skip|smallint|snapshot|some|sql|stable|standalone|start|statement|statistics|stdin|stdout|storage|stored|strict|strip|subscription|substring|support|symmetric|sysid|system|table|table_am_handler|tables|tablesample|tablespace|temp|template|temporary|text|then|tid|ties|time|timestamp|timestamptz|timetz|to|trailing|transaction|transform|treat|trigger|trim|true|truncate|trusted|tsm_handler|tsquery|tsrange|tstzrange|tsvector|txid_snapshot|type|types|unbounded|uncommitted|unencrypted|union|unique|unknown|unlisten|unlogged|until|update|user|using|uuid|vacuum|valid|validate|validator|value|values|varbit|varchar|variadic|varying|verbose|version|view|views|void|volatile|when|where|whitespace|window|with|within|without|work|wrapper|write|xid|xml|xmlattributes|xmlconcat|xmlelement|xmlexists|xmlforest|xmlnamespaces|xmlparse|xmlpi|xmlroot|xmlserialize|xmltable|year|yes|zone)\b</string>
Hello,
I am using TextMate along with nvALT. I will open a file in Textmate from nvALT with the edit with functionality. If I accidentally modify the file in nvALT while it's open in TextMate, TextMate doesn't reload the file.
BBEdit does do this though.
I really don't like BBEdit that much, so I don't want to use that. Is there an option somewhere to enable this functionality? If not, is it possible to submit a feature request to enable the functionality?
Thanks
I've been using TextMate for years and I'm productive and happy with it. However, I like to try other editors from time to time to see if I'm missing anything. Recently I spent some time learning Vim and I discovered a few things that I particularly liked.
1) Split windows -- not the kind of split windows you normally get in Mac applications, but the Vim style ones. In Vim you can easily navigate from the keyboard to your different splits and choose what files to display in each. Additionally, you don't have to reach for your mouse to create a split. When you split, Vim divides the space up for you which is what you want most of the time. I found that it is very handy when needing to view more than 1 file at a time, which in my case is most of the time. Closing splits is about as easy as they are to create -- all from the keyboard. Multiple windows isn't really the same thing because they are slow to setup and tear down.
2) Selective multifile grep -- in Vim you can use a regular expression to open a set of files, and then just grep across the open files.
3) Don't need arrow keys -- after years of editing with the mouse; I find it painful to reach for it. It hurts my right shoulder and shoulder blade. It even hurts to have to move my hand down to the arrow keys. However, in Vim it is easy to keep your hands resting on your keyboard with your shoulders relaxed. No reaching for the mouse or arrow keys.
1. clear history
2. copy the digits 9:1 one at a time:
EXPECTED: 1:9 timeline
OBTAINED: the list won’t scroll above line 5
OS = Big Sur beta2 11.0 Beta (20A5323l)
TextMate 1 or 2, is there a way to auto-highlight all occurrences of
selected word?
I was from Windows using EditPlus, when I double-click or Ctrl+W to select
a word, EditPlus is able to automatically highlight all occurrences in a
different background colour, very nice and useful feature.
With TextMate I have to additionally hit Opt+Cmd+F, and highlighting colour
is same as selected word, not eye-catching. I use 'soft' and light
background for selection background but I prefer bright background (eg
yellow) for highlighted words.
Ctr-S not really meets what I need.
Thanks.
--
Sent from my mobile. Ignore the typos unless they're funny.
Hi all,
I've written a custom action in order to compete my PHP functions. By default only functions inside a file are completed, but my action can complete all functions inside a project folder!
I use theRuby TextMate::UI.complete to show the completion list.
Is there a way to have a fuzzy search? Now you have to type the all letters of a function. This is annoying when al lot of functions have the same (long) prefix.
Example function names:
prefix_more_name_1
prefix_more_name_2
prefix_more_name_3
It should be nice when you type pr3 you get prefix_more_name_3. No you have to type "prefix_more_name" completely...
== feek
What is the newest macOS version that will run (or “support") TextMate 1.5[.11 (1635)]?
(Reason to ask: I never bothered to update my customized LaTeX bundle to TextMate 2, shame on me!)
Is there a version of TM2 that runs on macOS 10.11.6? I have an older computer and that is the newest OS supported by Apple. I don’t yet feel like buying a new computer just run a particular program.
Jerry
[OT minirant]
My late 2008 MacBook Pro has the following features missing on recent models:
* Keys that move when you strike them.
* Keys that never, ever, jam or stick or fail to record a strike.
* Replaceable RAM. I have doubled my RAM twice. It’s super easy.
* Replaceable battery. I have replaced it twice. It’s super easy.
* Replaceable hard drive. I replaced the original with a SSD. It’s super easy.
* An ExpressCard 32 slot by which I do nightly backups to cycled micro SD cards.
* Wired ethernet; WiFi is considerably slower, as my ISP explained in a lengthy note.
* Audio in. I use it nearly daily.
* MagSafe power connector.
* Theft prevention attachment slot.
* DVD drive. (OK, I’ll grant that one might be obsolete but I still rip CDs.)
Is there a way to have a file type automatically use a different theme that is not the default one?
If I create a language bundle and include a theme, is there a setting to make the language files default to the theme included with the bundle?
Thanks,
John DeSoi, Ph.D.
Hi,
Because I can't keep my hands off utilities and am on a constant quest to understand development processes, I attempted to clone the latest git
repository and build TextMate. It seems that everything goes well until I reach the part where I build the actual executable, and get the following
errors:
[1/1] Generate ‘build.ninja’…
[159/923] Compile xib ‘Frameworks/OakAppKit/resources/English.lproj/CustomizeEncodings.xib’…
FAILED: /Users/Greg/build/TextMate/Frameworks/OakAppKit/resources/English.lproj/CustomizeEncodings.nib
xcrun ibtool --errors --warnings --notices --output-format human-readable-text --minimum-deployment-target 10.12 --compile
/Users/Greg/build/TextMate/Frameworks/OakAppKit/resources/English.lproj/CustomizeEncodings.nib
Frameworks/OakAppKit/resources/English.lproj/CustomizeEncodings.xib
xcrun: error: unable to find utility "ibtool", not a developer tool or in PATH
[161/923] Compile xib ‘'Frameworks/OakAppKit/resources/English.lproj/Pasteboard Selector.xib'’…
FAILED: /Users/Greg/build/TextMate/Frameworks/OakAppKit/resources/English.lproj/Pasteboard Selector.nib
xcrun ibtool --errors --warnings --notices --output-format human-readable-text --minimum-deployment-target 10.12 --compile
'/Users/Greg/build/TextMate/Frameworks/OakAppKit/resources/English.lproj/Pasteboard Selector.nib'
'Frameworks/OakAppKit/resources/English.lproj/Pasteboard Selector.xib'
xcrun: error: unable to find utility "ibtool", not a developer tool or in PATH
[162/923] Compile xcassets ‘Frameworks/OakAppKit/resources/OakAppKit.xcassets’…
FAILED: /Users/Greg/build/TextMate/Frameworks/OakAppKit/resources/Assets.car
xcrun actool --errors --warnings --notices --output-format human-readable-text --platform macosx --minimum-deployment-target 10.12 --compile
"$(dirname /Users/Greg/build/TextMate/Frameworks/OakAppKit/resources/Assets.car)" Frameworks/OakAppKit/resources/OakAppKit.xcassets
xcrun: error: unable to find utility "actool", not a developer tool or in PATH
ibtool and actool exist in /usr/bin and also a link to /usr/local/bin, both of which are in my shell path. I enter 'which ibtool' from the shell and
it can find the tool. Is there another path needed for the build which I don't have set? Generally Homebrew builds compile and run OK on my system...
--
| Greg Dunn | this is slowly taking me apart. |
| gregdunn(a)indy.net | grey would be the color if i |
| The Sultan of Slack(tm) | had a heart. |
| http://www.indy.net/~gregdunn/ | Trent Reznor |
I am using AS3 Bundle.
There is a difference between how the indentation rules work with TM1.5 and TM2.0.
In TM2.0 a new indent is applied each time I type a carriage return - where there was no ending ‘;'
In TM1.5 is lined up with the previous line - even where there was no ending ‘;’
The new behaviour (TM2) is quite annoying and really slows down my work, as I do not use the optional ‘;’ in as3.
I have checked the AS3 bundle rules on TM1.5 and TM 2.0 and they are the same.
Why is it different, or rather how can I fix it, please?
These are the rules. They are the same, just in a different order – and I have swapped order to see if it makes any difference. it does not.
//IN TM1.5
{
decreaseIndentPattern = '^(.*\*/)?\s*\}([^}{"'']*\{)?[;\s]*(//.*|/\*.*\*/\s*)?$|^\s*(public|final|dynamic|internal):\s*$';
increaseIndentPattern = '^.*\{[^}"'']*$|^\s*(public|final|dynamic|internal):\s*$';
indentNextLinePattern = '^(?!(.*[};:])?\s*(//|/\*.*\*/\s*$)).*[^\s;:{}]\s*$';
}
//in TM2
{ increaseIndentPattern = '^.*\{[^}"'']*$|^\s*(public|final|dynamic|internal):\s*$';
decreaseIndentPattern = '^(.*\*/)?\s*\}([^}{"'']*\{)?[;\s]*(//.*|/\*.*\*/\s*)?$|^\s*(public|final|dynamic|internal):\s*$';
indentNextLinePattern = '^(?!(.*[};:])?\s*(//|/\*.*\*/\s*$)).*[^\s;:{}]\s*$';
}
Hello
I’ve noticed a strange bug in Textmate when using an artist's Wacom Tablet.
Sometimes if I quickly click on a tab to select it, and the stylus moves slightly (as if the tab is only dragged a few pixels), the tab clicked becomes light in color and gets stuck. All tabs in the window become non-functional at that point, no text can be selected, other windows can be brought to the front but they are also frozen short of being draggable.
Quitting the app and restarting fixes it.
It's an easily reproducible problem if you have a tablet to test with.
Just felt I should point it out so maybe you guys can fix it.
Thanks
How do you get the Finder preview to show the syntax colored code as seen in TextMate? This seemed to work automagically for an older bundle I created. I'm working a new bundle and the Finder only shows the generic document icon.
Thanks,
John DeSoi, Ph.D.
Say what?
Your comment makes little sense. I can guess but if it’s important spell it out. Maybe this is some Ruby/TextMate/internet code I don’t know. But if I don’t others don't
> On Jun 4, 2020, at 5:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Date: Wed, 3 Jun 2020 13:18:28 -0400
> From: Ronald Wampler <rdwampler(a)gmail.com <mailto:rdwampler@gmail.com>>
> To: TextMate users <textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>>
> Subject: [TxMt] Re: Large file does not properly paint text when
> scrolling in v2.0 on MacOS Catalina
> Message-ID:
> <CAL3wmMO8TgYAK8A0puvoNSTw0Z9gocF8Y61n1u2c_3gSV_AupQ(a)mail.gmail.com <mailto:CAL3wmMO8TgYAK8A0puvoNSTw0Z9gocF8Y61n1u2c_3gSV_AupQ@mail.gmail.com>>
> Content-Type: text/plain; charset="UTF-8"
>
> Oops. s/has/hasn't.
>
> On Wed, Jun 3, 2020 at 1:17 PM Ronald Wampler <rdwampler(a)gmail.com <mailto:rdwampler@gmail.com>> wrote:
>>
>> Same here. The issue has appeared since with the 10.15.5 update.
>>
>> -Ron
>>
>> On Sun, May 31, 2020 at 8:43 AM mocenigo <roberto.avanzi(a)gmail.com <mailto:roberto.avanzi@gmail.com>> wrote:
>>>
>>> Is it me or has this bug disappeared under 10.15.5? So far not able to
>>> reproduce. Fingers crossed.
>>>
>>>
>>>
>>> --
>>> Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html <http://textmate.1073791.n5.nabble.com/textmate-users-f3.html>
>>>
>>> _______________________________________________
>>> TextMate mailing list
>>> TextMate(a)lists.macromates.com <mailto:TextMate@lists.macromates.com>
>>> https://lists.macromates.com/listinfo/textmate <https://lists.macromates.com/listinfo/textmate>
I created an issue for this in github.com/textmate/bugs (https://github.com/textmate/bugs/issues/33), but perhaps that issue tracker isn’t monitored any longer.
After upgrading to MacOS 10.15 (Catalina), scrolling through a large file (>6000 lines) often does not properly paint the text. This can be temporarily corrected by dragging a selection over the missing text.
• OS version: MacOS 10.15 (Catalina)
• Textmate version: 2019-09-15 (v2.0)
• Affected file: https://github.com/w3c/json-ld-api/blob/master/index.html.
• File language: HTML
Most recently, I noticed this when moving to line 3500 in the referenced file and scrolling downwards.
Gregg Kellogg
gregg(a)greggkellogg.net
I am seeing the same thing in the Finder on Catalina. My output is the same:
🦊 qlmanage -m plugins | grep TextMate
public.source-code -> /Applications/TextMate.app/Contents/Library/QuickLook/TextMateQL.qlgenerator (1.0)
public.text -> /Applications/TextMate.app/Contents/Library/QuickLook/TextMateQL.qlgenerator (1.0)
Off topic (apologies in advance if I am stating the obvious):
When a message is being composed as rich text (depends on your email client settings; but I believe the default is to reply in the same format is as them message that was received); with a simple copy and paste (⌘ + V) the OS carries the style information and pastes the contents using that formatting. This is what you are seeing. If you don’t want the formatting to happen you paste the content using the “Paste and Match Style” option in the Edit menu (⌥ + ⇧ +⌘ + V).
Best,
Farhan
> On May 31, 2020, at 8:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> From: "Marc Wilson" <posguy99(a)gmail.com <mailto:posguy99@gmail.com>>
> Subject: [TxMt] Re: TM's QuickLook plugin
> Date: May 30, 2020 at 12:18:26 PM EDT
> To: "TextMate Mailing List" <textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>>
> Reply-To: TextMate users <textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>>
>
>
> No, just Finder here. Well, Finder and Forklift, but Forklift is not replacing anything, it’s just the OFM I use.
>
> I’ve been poking around and TM’s QL generator on Catalina is not being registered for the same filetypes that it is on Mojave. I’ve collected a bunch of resources and am trying to make time to see if I can do some investigation.
>
> Can I ask you, what filetypes does your Catalina install have registered to the TM plugin?
>
> [ 9:16 AM][ttys000][/Users/mwilson]
> mbp13 $ qlmanage -m plugins | grep TextMate
> public.source-code -> /Applications/TextMate.app/Contents/Library/QuickLook/TextMateQL.qlgenerator <http://textmate.app/Contents/Library/QuickLook/TextMateQL.qlgenerator> (1.0)
> public.text -> /Applications/TextMate.app/Contents/Library/QuickLook/TextMateQL.qlgenerator <http://textmate.app/Contents/Library/QuickLook/TextMateQL.qlgenerator> (1.0)
> [ 9:16 AM][ttys000][/Users/mwilson]
>
> (unrelated side comment… wow, that was weird… I didn’t expect a c-n-p from Terminal into my email client to bring the Terminal theme with it)
>
> --
> Marc Wilson
> posguy99(a)gmail.com <mailto:posguy99@gmail.com>
Am I missing something? On my old laptop, running Mojave, on which I've been upgrading TM forever, I QL any file TM recognizes and the OS uses TM's parser, I get my theme, etc.
On my shiny new Catalina laptop, I get what I think is the built-in basic text QL plugin, no TM.
It's been a while, I admit... is there something somewhere that has to be turned on?
--
Marc Wilson
posguy99(a)gmail.com
Nice to see Touch Bar improvements: Thank you!
Be nice if the "open recent project" touch bar button _closed_ this window if touched while window is already open.
Can touch bar icons respond to which window is frontmost?
If so, it would be helpful when the Find window is frontmost, to have
1. A touch icon for the "regex" check box (what is the short cut for that?)
2. Tie the “<" and “>" touch icons to window "previous" and "next" buttons.
Having a touch icon to select surrounding braces {} for selecting surrounding braces would be useful.
Having touch icons for "the Ts" would be helpful:
1. a touch bar icon ("fun”?) for cmd-cntr-T ("Select bundle item")
2. a touch bar icon "TODO" for cntrl-shift-T (TODO list)
3. a touch bar icon "symbol" for cmd-shift-T (symbol jump)
Best, tim
> On 18 Aug 2019, at 16:49, Ronald Wampler <rdwampler(a)gmail.com> wrote:
>
> On Sat, Aug 17, 2019 at 6:14 PM Curt Sellmer <sellmerfud(a)gmail.com> wrote:
>>
>> I have been playing with the touchbar support in texmate and have noticed the following.
>>
>> If I set bookmarks in my document the touchbar buttons with up/down chevrons will correctly take me to the previous or next bookmark respectively.
>>
>> However, if I make a change to the document and save it. I now get a change marker showing that it is different than what is in the git repository. That is to be expected.
>>
>> But now the up/down buttons on the touchbar stop at all of the git markers as well as the bookmarks. Is this by design?
>
> Yeah, I wanted to make it easier to navigate other marks (not necessary
> the git markers) without adding yet another up/down arrows button in the Touch
> Bar. But, I agree it probably should have been just to navigate the bookmarks.
> I'll submit a PR to change the behavior.
>
>> It makes jumping back and forth between a couple of bookmarks painful if there are a lot of edits in the file.
>>
>> I can still hold down the fn button and use F2/Shift F2 to achieve this, but that sort of defeats the purpose of having the nifty touch bar buttons.
>>
>>
>>
>> _______________________________________________
>> TextMate mailing list
>> TextMate(a)lists.macromates.com
>> https://lists.macromates.com/listinfo/textmate
>
> _______________________________________________
> TextMate mailing list
> TextMate(a)lists.macromates.com
> https://lists.macromates.com/listinfo/textmate
So, this is odd. Notice the white when the cursor flashes, the change in
background when text is added, and the other stuff.
https://skurfer.com/files/TextMate_Custom_Theme.mov
I thought it was an issue with light themes since it wasn’t happening
with most files. (My default theme for most things is dark, but Markdown
files use a light background and my default for new documents is
Markdown.) Anyway, it appears to be theme-specific. I tried another
light theme as my default for Markdown and didn’t see these problems.
The (unfinished) theme I’m using in the video is attached. Maybe
there’s something wrong with the theme, but I’ve been using it for
years. (Yes, and it’s still unfinished.)
Thanks.
--
Rob McBroom
Hi:
When I use Mac’s recent TextMate version (2.0.6) to edit my latex file (a .tex file), TextMate rolls the screen up randomly away from the cursor so that the screen will not stay in one place. Do you know there is any way to fix this annoying problem? Older versions of TextMate did not have such a problem.
Thanks,
Tao
Hi,
After updating form 2.0.13 to 2.0.14, I cannot use the keyboard, TouchBar icons appear as white boxes, and menu shortcuts are not rendered. After downloading TextMate from GitHub and reinstalling 2.0.14 a couple of times, TextMate started working again. Today, I updated from 2.0.14 to 2.0.15 and same problem again. But this time I have been unable to solve it by reinstalling 2.0.15 using the GitHub download. I'm on 10.14.6 with a MacBook Pro with a Portuguese keyboard.
Suggestion on how to get back to a working installation with 2.0.15 appreciated. Downgrading to 2.0.12 also doesn't work: TextMate crashes on startup.
Cheers,
Paulo
-----------------------------------------------------------------
Paulo Moura
Logtalk developer
I’m really enjoying all of the improvements to the Find dialog, but I
noticed the ‘g’ in Ignore Case is being cut off.

This is a minor thing, but I thought I should mention it since it
continues to be there despite several recent updates.
Thanks!
--
Rob McBroom
More weirdness (in addition to page blanking multiple time s day)... files appear empty (empty window, line 1 only, no characters...).
Quick look at file on disk: yep, all there.
I do a lot of find using the "In Folder" setting.
A hassle is that actions often move the Find window to be not frontmost.
The only easy way to bring it to the from is cmd-F, but this re-sets the "In: <where>" dropping down to the default, which is document.
If possible, I'd love this behavior to change to leave things as they were. Preferably even between open/close of the Find window, but certainly when the only actin of cmd-F is to bring the window frontmost, not toggling to a default state would be GREAT.
thoughts?
When I say (in ruby)
`"#{ENV['TM_SUPPORT_PATH']}/bin/mate" '#{p}'`
where p is the pathname of a folder, what appears in the project browser is that folder plus (hierarchically down from it) all its contents.
But when I open a folder using TextMate, directly, what appears in the project browser is just the contents of the folder; the folder itself is not in the project browser.
How can I make the former (`mate`) behave like the latter (TextMate itself)?
Thx - m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 13! http://shop.oreilly.com/product/0636920310075.do
iOS 13 Fundamentals! http://shop.oreilly.com/product/0636920310068.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
Hi all,
I'm a die-hard TextMate 1 user who upgraded to Catalina and am finally migrating to TextMate 2. That being said, I spent a lot of time in TextMate 1 on custom bundle snippets, themes, languages, macros, etc., so I'm hoping not to lose them.
Clicking on my original bundle brings up a TextMate 2 dialog box that asks if I want to install, but if I click "OK" it doesn't appear in the File menu, Bundle editor, or Preferences.
The TextMate wiki (https://github.com/textmate/textmate/wiki/FAQ), and past correspondence on this list, says this could be a problem with fs-events support, and suggests this fix:
rm ~/Library/Caches/com.macromates.TextMate/BundlesIndex.plist
Unfortunately there doesn't appear to be a plist in this directory--just BundlesIndex.binary. I tried deleting that to no effect.
After double clicking on my old personal bundle, a copy appears in ~/Library/Application Support/TextMate/Pristine Copy/Bundles. There is no error dialog box, and I see no errors or faults when I search for "textmate" in the Console after attempting the install.
Any help greatly appreciated!
jon
______________________________
Jon Ippolito
Professor of New Media
Co-director, Still Water
Director, Digital Curation graduate program
Does Anyone Actually Read These Titles
The University of Maine
1. open markdown document
2. select a word, say “multivariate”
2. Select Lookup Word / Selection on Wikipedia and link
EXPECTED: link to wikipedia wrapped about the selection
OBTAINED: Command error
/Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/net/http.rb:586:in `connect': SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version (OpenSSL::SSL::SSLError)
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/net/http.rb:586:in `connect'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/net/http.rb:553:in `do_start'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/net/http.rb:542:in `start'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:242:in `open_http'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:162:in `catch'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
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
The command is:
#!/usr/bin/env ruby18
require "#{ENV['TM_SUPPORT_PATH']}/lib/progress.rb"
require "#{ENV['TM_SUPPORT_PATH']}/lib/exit_codes.rb"
require "#{ENV['TM_SUPPORT_PATH']}/lib/ui.rb"
require 'cgi'
require 'open-uri'
require 'erb'
require 'rexml/document'
def select_link(links)
linklist = links.map { |p| p['Text'] }
item = TextMate::UI.request_item :title => "Multiple Definitions", :prompt => "Please select a definition", :items => linklist
TextMate.exit_discard if item.nil?
return links[linklist.index(item)]
end # select_link
def getWikiEntries(phrase)
res = []
response = open("https://en.wikipedia.org/w/api.php?format=xml&action=opensearch&search=#{CG… <https://en.wikipedia.org/w/api.php?format=xml&action=opensearch&search=#{CG…>", "User-Agent" => "TextMate 2.0")
doc = REXML::Document.new(response.read)
doc.elements.each('SearchSuggestion/Section/Item') do |item|
hash = { }
%w[ Text Url Description ].each { |tag| item.elements.each(tag) { |inner| hash[tag] = inner.text } }
res << hash
end
res.sort { |a, b| a['Text'].downcase <=> b['Text'].downcase }
end
def getWikiDef(phrase)
entries = getWikiEntries(phrase)
TextMate.exit_show_tool_tip "No definition found" if entries.empty?
entry = entries.size > 1 ? select_link(entries) : entries.first
return entry['Url'], "Wikipedia Entry: #{entry['Text']}", phrase
end
url, title, input = getWikiDef(STDIN.read)
print ERB.new(ENV['TM_LINK_FORMAT']).result
The column interface that you use to select a bundle item is very short
and can’t be resized.

The cursor changes when you hover over the resize handle, but I can’t
move it. Resizing the window makes no difference, no matter which side I
resize from.
I don’t use the Bundle Editor very often, so I’m afraid I can’t
say when this started. I’m currently on 2.0.8, macOS 10.14.6.
Thanks.
--
Rob McBroom
Hi, I just updated to 2.0.8, and there are a few bugs:
• Running a Python script with ⌘R hangs, producing no output in the HTML
output window – the spinny thing continues to spin throughout
– the Ruby stacktrace you get when closing the window with ⌘W – which
comes up in a modal window alert – specifies an exception in a “kill”
method, which is not an evidently obvious visible part of the bundle
command text to which the window alert offers to take you
• Starting up immediately after updating from TextMate 2.0.6 reset the
theme of every open code window to plain black-and-white (this was easily
remedied and wasn’t a showstopper in any way, though)
• There have been a number of odd hard-crashes – the “Submit Crash Log”
dialog would come up, saying that TextMate crashed, but the TextMate UI
would still appear to be up and running; in some cases a part of the UI
would prove to have been rendered unresponsive; in any case a force-quit
was always necessary.
Here are logs from two of these hard-crash events:
• https://gist.github.com/fish2000/2b6957a0f722d006b5673b7440767a9a
Let me know if I can be of further assistance w/r/t this. 2.0.8 looks like
it’ll be awesome, once some of these kinks are ironed out. Yes!
-fish (née Alexander Böhn)
Opened a file from an email attachment
On save from textmate, I get this error:
The document “BadFactorScoresExample.R” could not be saved.
Failed replacing BadFactorScoresExample.R with /var/folders/66/wrbbw2d11gzds_76wqw367f00000gn/T/TemporaryItems/(A Document Being Saved By TextMate)/BadFactorScoresExample.R: You don’t have permission to save the file “BadFactorScoresExample.R” in the folder “7DBA5AD0-07BF-4399-B649-CDE020317A4B”.
FYI, it also generates errors from commands that need to read/write
Hi,
just installed TM Test Build 2.0.7.
It seems like that the file browser behaves a bit strange. Namely the
"toplevel" is not any more the Project root, but the folder current file is
locates
> ProjectFolder
> ProjectFolder > Include
> ProjectFolder > Include > FileName.php
When having FileName.php open, the file browser select Include als "top"
folder and not the ProjectFolder. It seems related to "Keep Current Document
Selected".
When returning to 2.0.6 the file browser behaves as expected again (top
level is Project Folder).
== feek
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
BBEdit has a feature to auto-create backup files. I just tripped over this, it seems like a great thing that I'd like to figure out how to do with Textmate.
This is from BBedit 9's release notes:
The options and behavior for backing up files at save have changed, as follows:
* "Make backup before saving" is now a global preference only, and is no longer controlled per file. The "Make Backup when Saving" and "Make Backup Now" options have been removed from the File menu.
* The settings controlling backup location (in the Text Files prefs) have been removed. Backups are always made to a specific location, as follows:
* If "Keep historical backups" is turned on, backups are kept in `~/Documents/BBEdit Backups/`. Within that folder is one folder for each day's backups. The format of the dated folder name is static and non-localized: `YYYY-MM-DD`. Inside of each day's backup folder will be all of the backups made on that day, each named using the 8.7.x timestamp format.
If you want the backups to live somewhere else, lay down a folder alias named "BBEdit Backups" in `~/Documents/` and BBEdit will follow the alias.
* If "Keep historical backups" is turned *off*, BBEdit makes only a single backup, located in the same directory as the original, so "backup creep" is a thing of the past. The backup is named according to current OS conventions (which themselves follow the old Emacs convention): the backup file is named as the original file, with a tilde appended: "`foo.html~`" is the backup of "`foo.html`".
If you want the backup to have the same file name extension as the original, turn on the "Preserve file name extension" in the Text Files prefs. This will cause BBEdit to place the tilde after the "base" name of the file: "`foo~.html`".
Is there already support for anything similar to this somewhere? A bundle maybe? It'd be a save-hook, obviously.
Thanks!
--
Marc Wilson
posguy99(a)gmail.com
Hello,
Every time i start up TextMate (2.0.6.) a message box appears with the
following error:
Could not bind to socket: /tmp/textmate-501.sock
Error: Undefined error: 0
After closing the message box, the application works just fine.
I use macOS Mojave 10.14.6
Thanks in advance!
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
FYI: When I run selected lines of R code in textmate, I now get this pane of errors: (code runs fine)
PS: The blank-regions bug is way worse with current catalina (10.15.4 (19E264b))
Hi,
Textmate (version: 2.0.6 ) on macOS Hign Sierra (10.13.6)
I use electron-vue to automatically reload the page if file modified, and every time I close the tab, textmate automatically update mtime of the file. Are there any configuration option that do not modify the mtime of the file when the tab is closed?
The Post HO CHI MINH city , ditrric 2
DC : 223 Nguyen Duy Trinh , phuong binh trung tay, quan 2 .
Telephone : 0583802935
Full name : luc Tai Nguyen
Company : anh van hoi viet my
I have put off upgrading to Catalina because of people here reporting
TextMate issues after upgrading. Problems with menus, etc.
Could anyone who is using Catalina offer any advice on whether it would be
best to stay with Mojave or if the problems with Catalina are minor and no
big deal. I use TextMate daily for work and don't want to upgrade if it is
going to cause prblems with my productivity.
Thanks.
When I have multiple tabs opened with soft wrap enabled Textmate loses the
focus on cursor after switching tabs.
The same does not happen when soft wrap is disabled.
How to fix that?
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
Hi
My question is perhaps stupid … When I edit my source section with the latex bundle, section, subsection, etc.…use a different style.
How to use the same style for all the text ?
Thanks,
Alain
Hello,
I have a project and inside I have a folder with several files .tex.
I would like to compile all the files at the same time how I can proceed ?
I think with a ruby script but I’m not an expert.
Regards,
Alain
If I open a Plain Text window and paste in the following line of text, TextMate 2.0.3 CPU usage goes to 100% and never stops. Syntax highlighting ends at the line containing the text. Here's the string:
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=
Since updating to Catalina, I notice that some of the bundle menus are double-spaced. Not all of them, but some. It also seems like any option that has sub-options does not behave this way.
Walter
I have encountered a problem running bundle commands that are implemented as ruby scripts with a shebang line
#!/usr/bin/env ruby18
I get an alert like this:
Here I was trying to use Insert Color… from the CSS bundle, but the same thing happens with other commands, including from bundles I made myself.
I am pretty sure that this only started when I upgraded to Catalina. (Presently on 10.15.1, TM 2.0.3. It doesn’t happen with 2.0.3 running on another machine with High Sierra.) Possibly this is related to the problem of loading plug-ins that was fixed in 2.0.1.
If I change the shebang to point to the version of ruby I installed with Homebrew commands work fine, but I don’t much want to edit every command in every bundle.
Has anybody else seen this? Do you know of any workrounds?
Hi all,
after a few months not using TextMate, I have returned to it, updated the version, and upon running LaTex cmd-R, consistently get the error message
/bin/sh: /Users/robertmilton/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin/find_app: Bad CPU type in executable Preview does not appear to be installed on your system.
This is indepependent of the pdf viewer (I prefer to use skim, but get the same error). Any idea what is wrong, and how I can fix it?
Thanks
Robert
I’ve had this issue pop up often, but not currently. I am never quite sure what I do to fix it. PATH issues or gem issues?
> On Dec 2, 2019, at 4:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Date: Sun, 1 Dec 2019 13:10:19 -0700 (MST)
> From: feek <feekdiv(a)gmail.com <mailto:feekdiv@gmail.com>>
> To: textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>
> Subject: [TxMt] Re: Problem running ruby commands
> Message-ID: <1575231019120-0.post(a)n5.nabble.com <mailto:1575231019120-0.post@n5.nabble.com>>
> Content-Type: text/plain; charset=us-ascii
>
> I just updated to Catalina today...
>
> is this message also related to not bundled Ruby in Catalina :( ?
>
> https://feek.d.pr/Y1mSwd/3q2OYQOmNo <https://feek.d.pr/Y1mSwd/3q2OYQOmNo>
>
> == Feek
Same here with current Catalina and TM 2.0. I had noticed it, but was focusing on whatever needed doing and forgot about it.
> On Dec 2, 2019, at 4:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Subject: [TxMt] Re: Double-spaced menus in Catalina
Hello
The command « set master file » does not seem to work anymore.
I may have forgotten something.
How should I use this command?
Best regards,
Alain Matthes
This won’t be very helpful.
But Markdown preview works on my MBP with Catalina and I installed Python for QGIS. HomeBrew install didn’t work with QGIS, so ended up using the installer at https://www.python.org/downloads/ <https://www.python.org/downloads/>
> On Nov 11, 2019, at 10:19 AM, textmate-request(a)lists.macromates.com wrote:
>
> Send TextMate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of TextMate digest..."
>
>
> Today's Topics:
>
> 1. Problem with Markdown Preview (Tao Zha)
> 2. Re: Problem with Markdown Preview (Graham Heath)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 11 Nov 2019 11:39:53 -0500
> From: Tao Zha <zmail(a)tzha.net>
> To: tm-support(a)macromates.com, textmate(a)lists.macromates.com
> Subject: [TxMt] Problem with Markdown Preview
> Message-ID: <A7A0E9C7-ACE3-4176-8210-2225D3B72375(a)tzha.net>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi:
>
> After I updated macOS Catalina, Markdown Preview no longer works. I got the following error message:
>
> Please install the Redcarpet and Pygments.rb RubyGems by running the following:
> /usr/bin/gem install --user redcarpet pygments.rb
>
> After I ran the above command, I received the following error message from the Terminal:
>
> $ /usr/bin/gem install --user redcarpet pygments.rb
> Building native extensions. This could take a while...
> ERROR: Error installing redcarpet:
> ERROR: Failed to build gem native extension.
>
> current directory: /Users/tzha/.gem/ruby/2.6.0/gems/redcarpet-3.5.0/ext/redcarpet
> /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20191111-836-11oqvm2.rb extconf.rb
> mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/include/ruby.h
>
> You might have to install separate package for the ruby development
> environment, ruby-dev or ruby-devel for example.
>
> extconf failed, exit code 1
>
> Gem files will remain installed in /Users/tzha/.gem/ruby/2.6.0/gems/redcarpet-3.5.0 for inspection.
> Results logged to /Users/tzha/.gem/ruby/2.6.0/extensions/universal-darwin-19/2.6.0/redcarpet-3.5.0/gem_make.out
> Successfully installed pygments.rb-1.2.1
> Parsing documentation for pygments.rb-1.2.1
> Done installing documentation for pygments.rb after 0 seconds
> 1 gem installed
>
> Can someone help me to resolve this issue?
>
> Thanks,
>
> Tao
>
Hello TM2 users,
just created a miniconda environment called `py37` which I activate via `conda activate py37`. In my endeavour to tell TM2 how to execute a python code with this environment I found this stackoverflow "solution": https://stackoverflow.com/a/8989779
If this is the way to go – I am a novice and need some help:
- assuming I put this into `/usr/local/bin/`
- I guess the file extension is sh and I call it via `sh wrapperscript.sh`? -- is this somehow affected by the new shell in Terminal in Catalina?
- is "MY-ENV" = "py37" in my case? -- or should this be replaced with `conda activate py37`?
- what does "$@" mean
If this is not the way to go, then what should I do? ;-)
Thanks for your help.
Cheers,
Claus
I’ve been getting this abnormal exit issue with the latest TM (2.0.3). There seems to be a problem saving the opened tabs state in projects on closing of the App.
When I reopen TM, the Disable Session Restore dialog appears. I click on Restore Documents and the tabs from a previous state (before 2.0.3) is always brought back.
Anyone else have this issue?
My Info.plist ~/Library/Application Support/TextMate/Session remains dated Oct. 26 so isn’t being updated.
Ed Wong
As seen in screen shot the Stats for selection menu item of the text bundle is garbled too wide, I guess (at least under 10.15.1 Beta (19B77a) & TM version 2.0.3)
Hi:
After I updated macOS Catalina, Markdown Preview no longer works. I got the following error message:
Please install the Redcarpet and Pygments.rb RubyGems by running the following:
/usr/bin/gem install --user redcarpet pygments.rb
After I ran the above command, I received the following error message from the Terminal:
$ /usr/bin/gem install --user redcarpet pygments.rb
Building native extensions. This could take a while...
ERROR: Error installing redcarpet:
ERROR: Failed to build gem native extension.
current directory: /Users/tzha/.gem/ruby/2.6.0/gems/redcarpet-3.5.0/ext/redcarpet
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20191111-836-11oqvm2.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.
extconf failed, exit code 1
Gem files will remain installed in /Users/tzha/.gem/ruby/2.6.0/gems/redcarpet-3.5.0 for inspection.
Results logged to /Users/tzha/.gem/ruby/2.6.0/extensions/universal-darwin-19/2.6.0/redcarpet-3.5.0/gem_make.out
Successfully installed pygments.rb-1.2.1
Parsing documentation for pygments.rb-1.2.1
Done installing documentation for pygments.rb after 0 seconds
1 gem installed
Can someone help me to resolve this issue?
Thanks,
Tao
Hello,
After installing the latest security update on macOS 10.13 I no longer
seem to be able to launch TextMate.
When I try to open it, a number of windows get opened in the launchpad
(those that were "hidden"), but before opening all other windows
finishes, the program crashes (crash log is in attachment).
Does anyone have any idea how I could do any of the following:
- find the contents of unsaved snippets
- potentially "purge" the open windows and at least try to see if I
can start TM in a clean fashion.
The only "useful" information I see in the crash log is:
Application Specific Information:
old selected document ‘nil’, new selected document ‘Portfile’
I most definitely had a lot of files called "Portfile" opened when
TextMate still worked, but I don't know where 'nil' comes into play.
The rest looks the same as the garbage I get when mixing libc++ and
libstdc++, but it's probably completely unrelated anyway.
Thank you very much,
Mojca
PS: A bit of background information, in case it is relevant in any way
(probably not).
I usually had quite some windows open, very often using TextMate as a
"random notes, TODO lists, temporary copy-and-paste snippets which I
get from somewhere and plan to use later, ...", a bunch of documents I
had opened might no longer exist after the system reboot (I put a lot
of stuff under /tmp/), a lot of them were never saved, but were
automatically reopened every time when I rebooted the system (which
has worked very reliably ever since Lion), ...
Mac has been nagging me to install security updates for quite a while,
and I kept pushing "remind me again tomorrow", until I finally did it,
but ever since I wasn't able to fire up TextMate again, and this is
one of my top programs I use. I'm still on 10.13, I did download both
10.14 and 10.15, but never decided to actually upgrade. Curious
enough, during the last security update the computer suddenly notified
me that it failed to upgrade the OS (gosh, I never asked my mac to do
even do that, but at least I'm happy that it didn't do an automatic
upgrade). I don't know if any of that has anything to do with
TextMate, but I would be grateful for any advice or hint about
proceeding.
Hi *,
sometimes I open some text file just for reference or to copy something from it. I’d like to open those read-only to avoid erronously introducing changes. Could not find some easy way up to now. Which bright red button in front of me did I miss?
-Moss-
--
Debugging? Klingons do not debug. Our software does not coddle the weak.
– not by Peter Dyballa (as he vows)
Hi,
I experience lately on a regular base a high CPU usage of TextMate (TextMate
version 2.0-rc.23, macOS 10.14.3 18D109). I did not install new plugins
(besides of regular updates TM-build in plugins). TM does not crash so I
cannot provide a crash log.
Could it be related to performing a search in a project folder with a large
number of files?
== feek
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
I’ve noticed this a lot and I’m wondering if there is anyway to fix it.
If I have this code:
function findEnvironmentConfig(environment, config) {
if (!Array.isArray(environment)) {
environment = [environment];
} else {
// Clone the array so any mutations aren't received on the other end
environment = [...environment];
}
}
And try to code fold on the line "if ( !Array.isArraty(environment)) {“ then it ends up folding the entire function declaration.
How can I make this work as expected? I have a sneaky suspicion that this is a fatal flaw with TextMate.
Note, this works if the “else {“ is on its own line.
Thanks!
Hello there,
I would like to make my bundle (grammar and theme) to work for C and C++ sources only. How can I achieve it?
This is my actual Grammar configuration, but I would need to restrict the theme to C and C++ too (Since my custom changes are not good for other source files too).
Best
[cid:3E4A02AB-3066-4D86-83D5-51DEB58B0BD9@home-life.hub]
Let's suppose I have a command written in Ruby, that is outputting to HTML
in a new window.
Is there a way to create a link in the HTML output that, when clicked, will
actually execute a Ruby function that I define in the command?
For example, something like:
def do_something(x)
# do something with x
end
puts "<a href=\"command:do_something(42)\">Edit X</a>"
My end goal is to provide an interface for manipulating the current
document; maybe the answer is to do the logic in JS within the HTML window,
and then update the document from there, but I'm equally unsure of how to
do that.
Hi everyone,
I love TM but since I upgraded to v2.0 (also occurs in 2019-10-07 (v2.0.1)) the code folding arrows in the margin have disappeared!
I miss them, how can I get them back?
Thanks,
Ian
Howdy, I maintain the EditorConfig plugin for TextMate (https://github.com/Mr0grog/editorconfig-textmate <https://github.com/Mr0grog/editorconfig-textmate>). I haven’t had much time to work on it recently, but I was trying to update it for the latest TextMate this morning. However, MacOS won’t actually load my bundle inside TextMate. I see this message when TextMate starts:
Failed to load ‘editorconfig-textmate’ (~/Library/Application Support/TextMate/PlugIns/editorconfig-textmate.tmplugin): The bundle “editorconfig-textmate” couldn’t be loaded because it is damaged or missing necessary resources.
I’m fairly certain the cause is that TextMate now uses the hardened runtime (https://github.com/textmate/textmate/commit/412e6798ca206b15cdc8f86a1387835… <https://github.com/textmate/textmate/commit/412e6798ca206b15cdc8f86a1387835…>).
I saw Allan’s message about a similar issue with the Emmet plugin on July 13th: https://lists.macromates.com/textmate/2019-July/041039.html <https://lists.macromates.com/textmate/2019-July/041039.html>
…but enabling the hardened runtime when signing the bundle doesn’t solve the issue for me.
I think the actual problem in this case is that TextMate (not my plug-in) is missing the `com.apple.security.cs.disable-library-validation` entitlement for hardening. Apple’s docs (https://developer.apple.com/documentation/bundleresources/entitlements/com_… <https://developer.apple.com/documentation/bundleresources/entitlements/com_…>) say:
> Typically, the Hardened Runtime’s library validation prevents an app from loading frameworks, plug-ins, or libraries unless they’re either signed by Apple or signed with the same team ID as the app. The macOS dynamic linker (dyld) provides a detailed error message when this happens. Use the Disable Library Validation Entitlement to circumvent this restriction.
Obviously I can’t and shouldn’t sign the plug-in with TextMate’s team ID! So it sounds like this is probably required for third-party plug-ins. Are there other third-party plug-ins that are functioning with the latest version of TextMate? Something else I might be missing here?
Thanks,
Rob Brackett
rob(a)robbrackett.com <mailto:rob@robbrackett.com>
@Mr0grog
I am using the latest 2.0 release of Textmate on a 2017 Macbook Pro. MacOS
10.14.6
I have experienced this only twice in the last two days.
Both times, I had three open documents in Textmate and with the project
drawer visible.
I clicked in the Tab bar to select a different document. And the program
becomes unresponsive. I cannot type any characters and clicking on any
part of the editor view in Textmate has no effect.
Clicking on Tabs has not effect Clicking in the File Browser has no effect.
Interestingly, dragging a Tab to the desktop will make a copy of the
Document on the desktop.
Clicking on the "Menus" at the bottom of the window such as Tabs, or
Language, or the GoTo menu will show the menu. Clicking on an item in the
Goto Menu does not move the editor that that location.
If I switch to another app I cannot use Cmd-Tab to bring TextMate to the
front. The TextMate icons is visible when I press Cmd-Tab but selecting it
has not effect.
I can bring TextMate to the front by clicking on it.
Activity Monitor shows that TextMate is not using any CPU.
I have to Force Quit TextMate.
Now that TextMate is at version 2.0 could I ask what the status of the Bundle editor is ? A lot of functionality that was available in v1.x is missing — for example:
(1) Moving an item from Other Actions to Menu Actions (eg BibDesk Completion)
(2) Moving items within a menu
(3) Creating submenus
(5) Deleting an item
(6) Inserting a separator in a menu
Phil
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Phil Molyneux E: molyneux(a)pobox.com
T: 020 8549 0045
M: 07885 426 323
71 Deacon Road, Kingston upon Thames KT2 6LS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In the preview column in Finder, and when I use spacebar to have a quick look, the color coding that used to show up either in my .tex or .text files doesn’t show anymore. Not much of a problem, but my attempts to touch TextMate.app or clean up the Quick Look cache (qlmanage -r cache) led nowhere. Suggestions?
I’m on OS 10.15 and TextMate 2.0.1.
—Gildas
Has anyone seen this situation (see screenshot). `Quit TextMate` is not selectable, with nothing apparent to block the quit: no open windows or dialogs. This happened once yesterday, and once a few weeks ago. 🤔
TextMate v2.0
macOS 10.14.6
Hello,
I've recently updated to Mojave and I noticed that a TextMate theme I
use called iPlastic doesn't allow a transparency for the background. For
the same background setting in High Sierra the background now is solid.
I've tried modifying the theme directly in the Bundle editor and tried
different color codes for the background entry, which was
background = '#EEEEEEEB';
before the OS update, but I haven't been able to add any transparency.
Does anyone have suggestions?
Angelo
Hi,
Is there a function to make TextMate 2 opens a certain file type using a specific theme? e.g. there is the default theme and then you can set TM to open html files using another theme.
Best, u
PS:
I need it!! I do not know why only few Text Editors have this feature…
Hello,
I would like to change the highlighted part to the same (pink) color of the rest.
What I have tried by now (all day) is by adding a new grammar and then change the color in the theme.
I tried many things like this one:
{
name = 'meta.new-line';
match = '\}\n.’;
}
[cid:99DEEF18-FC21-4A16-8AC7-0F38A367FAB0@home-life.hub]
[cid:00EDC7C9-E951-40B0-BE0F-DC45FB718038@home-life.hub]
Anyway, finally my idea is to make each block ( {...} ) of a different color.
I hope this is the correct place to post about this; the TextMate GitHub
repo doesn't seem to let anyone add issues. This setting:
defaults write com.macromates.TextMate.preview disableTabAutoClose
-bool YES
...is being ignored by RC 29, 30 and 31 (if not earlier, I didn't try).
The last "mainstream" release appears to be RC10, which works fine.
The setting is absolutely vital to me, so I'd really love to see this
issue fixed. In the mean time I'll stick to RC10.
To be honest, I'm surprised it isn't the default. This is of course just
a subjective opinion! For me, having tabs close and lose tab ordering
and positioning is quite destructive to workflow, especially when
working in projects with large numbers of files. I have to go scrolling
up and down in the file browser trying to relocate something I'd opened
for reference but has now closed again. The behaviour feels rather
arbitrary / random too; the threshold depends on window dimensions, so
it isn't very user-predictable. I never remember to right-click and
choose "Sticky"; it's not something I've ever had to do in any other
text editor or IDE, so it's just not in my muscle memory.
Has there been any consideration to using the current macOS system-wide
tab bar instead? This "compresses" tabs when the tab bar gets full &
automatically expands tabs towards the side of the tab bar most recently
selected (at least in Finder or Safari, but maybe Apple implemented
special subclasses and this isn't out-of-box Cocoa behaviour). If it's
good enough for web browsers, where having very large numbers of tabs
open is common, it's hopefully good enough for a text editor too. The
"hide if overflowing" behaviour, if it were kept, could then become
opt-in instead of opt-out. While other editors seem to be adopting
Sublime's "temporary tab" approach, I've never been sure I like it; and
going with the best-practice OS X core system approach has always felt
like the TextMate ethos.
--
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
Hello,
I've noticed that sometimes files that are not empty sometimes appear so
when I open them in TextMate. If I close and reopen them, they still appear
blank. If I open them in TextEdit, they don't appear empty. The problem
goes away, though, when I quit TextMate and reopen it.
This is a little inconvenient, because I sometimes have several files open
and then have to close and reopen all of them, too.
Would anyone know how to have the file open properly without having to quit
TextMate?
Thank you and best wishes,
Anthony V. Pulido
Hi Quinn,
Perhaps this issue is related to this bug report (opened over a year ago) for the bundle: https://github.com/hiltmon/Gist.tmbundle/issues/13
Best,
Farhan
> On Sep 20, 2019, at 8:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Send TextMate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of TextMate digest..."
> Today's Topics:
>
> 1. Background transparency no longer works in 2.0 (Sam Scherer)
> 2. Gist.tmbundle - tlsv1 alert protocol version (Quinn Comendant)
> <mime-attachment>
> <mime-attachment>
> _______________________________________________
> TextMate mailing list
> TextMate(a)lists.macromates.com
> https://lists.macromates.com/listinfo/textmate
I have been using the Gist.tmbundle from https://github.com/hiltmon/Gist.tmbundle, but today I tried to create a public Gist and got this error. Anybody know if this is a quick fix? The bundle hasn't had updates to its repo in 5 years, so it may be dead.
Thanks,
Quinn
-------------------------------------------------------
/Users/quinn/Library/Application Support/TextMate/Bundles/Gist.tmbundle/Support/bin/gistmate.rb:368:in `api_post_request': undefined method `code' for nil:NilClass (NoMethodError)
from /Users/quinn/Library/Application Support/TextMate/Bundles/Gist.tmbundle/Support/bin/gistmate.rb:203:in `create_temp_gist'
from /Users/quinn/Library/Application Support/TextMate/Bundles/Gist.tmbundle/Support/bin/gistmate.rb:177:in `create_from_selection'
from Gist from Selection:5
Received exception: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version
At line 586 in ‘http.rb’ (inside method ‘connect’)
At line 586 in ‘http.rb’ (inside method ‘connect’)
At line 553 in ‘http.rb’ (inside method ‘do_start’)
At line 542 in ‘http.rb’ (inside method ‘start’)
At line 1035 in ‘http.rb’ (inside method ‘request’)
At line 364 in ‘gistmate.rb’ (inside method ‘api_post_request’)
At line 38 in ‘progress.rb’ (inside method ‘call’)
At line 38 in ‘progress.rb’ (inside method ‘call_with_progress’)
At line 67 in ‘progress.rb’ (inside method ‘call’)
At line 67 in ‘progress.rb’ (inside method ‘call_with_progress’)
At line 22 in ‘ui.rb’ (inside method ‘dialog’)
At line 42 in ‘progress.rb’ (inside method ‘call_with_progress’)
At line 360 in ‘gistmate.rb’ (inside method ‘api_post_request’)
At line 203 in ‘gistmate.rb’ (inside method ‘create_temp_gist’)
At line 177 in ‘gistmate.rb’ (inside method ‘create_from_selection’)
At line 5 in ‘TextMate_command.44v9Kk’ (top level)
I’d really like TextMate to support the Language Server Protocol for
code completion, navigation etc. for various languages (in my case
primarily Ruby, but LSP as such is language-agnostic).
To be honest, I don't have any clue (yet) what exactly needs to be done.
However, there’s a already a vast amount of editors supporting LSP (see
https://langserver.org/#implementations-client ) and I’m quite sure that
investigating some of these implementations would give hints about how
to add LSP support to TextMate.
Is there anyone else interested in this topic? Maybe we could team up?
s.
Hi Phil,
Don't know the status of the Bundle Editor, but I had the same issue with menu items in my own tmBundles and whipped up a quick (drumroll...) tmBundle to help me with that. Not a full Bundle Editor, but available right away.
https://github.com/persquare/BundleMenuEditor.tmBundle
Hope that helps,
Per
On September 18, 2019 at 12:33 PM, Phil Molyneux <molyneux(a)pobox.com> wrote:
Now that TextMate is at version 2.0 could I ask what the status of the Bundle editor is ? A lot of functionality that was available in v1.x is missing — for example:
(1) Moving an item from Other Actions to Menu Actions (eg BibDesk Completion)
(2) Moving items within a menu
(3) Creating submenus
(5) Deleting an item
(6) Inserting a separator in a menu
Phil
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Phil Molyneux E: molyneux(a)pobox.com
T: 020 8549 0045
M: 07885 426 323
71 Deacon Road, Kingston upon Thames KT2 6LS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
TextMate mailing list
TextMate(a)lists.macromates.com
https://lists.macromates.com/listinfo/textmate
I'm sorry to lose the feature where there was a pref to keep the tabs from appearing above the project browser. I'm not used to having to reach way over to the side, and I find the tab above the browser confusing visually. m.
If you create an empty file with no file extension (on your desktop for
example), then right click it, OSX/Finder offers various app choices to use
to 'Open With..'
A lot of other text and code editors appear in this list (Atom, Visual
Code, Sublime Text), but TextMate does not
It would be very useful if TM would register itself with OSX in the same
way.
I guess there's some way to do this manually, but if so, I haven't found it
yet
Hello,
I'm running TextMate version 2.0-rc.27.
It seems that I'm no longer able to edit files that are not owned by
me by using `sudo mate` or plain `mate`.
Steps:
1. Run `sudo mate /etc/hosts`
2. Enter my username and password in the terminal
3. Make a change
4. Save the file
Expected: The file is saved with the new contents
Actual: an error modal is show with the following contents:
Title: The document “hosts” could not be saved.
Body: Failed replacing hosts with
/var/folders/w8/0pc0dw1d4zd9knf_qm4ls1bc0000gn/T/TemporaryItems/(A
Document Being Saved By TextMate)/hosts: You don’t have permission to
save the file “hosts” in the folder “etc”.
So far I have tried:
- Granting "Full Disk Access" to TextMate in System Preferences ->
Security & Privacy -> Privacy
- Uninstalling and reinstalling `mate`
Please let me know if there's any more information I can provide.
Thanks!
Hello list,
when opening (existing) files from Terminal.app using the `mate` command, it occasionally (but not always) takes a fairly long time (more than 5secs) to open the file in TextMate. TM in all these instances is already running, but doesn't necessarily have any open windows.
This is for small files (e.g. 30 short lines of code), so it cannot be the file size making a difference. If I open the files directly through TM's File -> Open... menu, no such delay happens.
During such a delay, if I click on the already running TM in the dock to activate it, the desired document that `mate` is trying to open immediately appears.
If I close the document and retry immediately afterwards, then no delay seems to exist for a while. Swap also doesn't seem to be an issue, my swapfile has size 0 on a 32GB Macbook Pro, with 16GB free. If TM hasn't been activated in a while (even though supposedly running according to the Dock dot) then this seems more likely.
It seems to be the communication / connecting between mate and TM that causes this delay somehow. I've tried removing and reinstalling the `mate` command.
This is on TextMate version 2.0-rc.10, but is not new behavior, I've seen this for quite some time.
Does that sound familiar to anyone or have any diagnosis tips?
Thanks,
Daniel.
(I just asked this to irc so sorry for the duplicate)
I'm looking for guidance on how to change the javascript grammar so it'll
syntax highlight both, e.g., "if (...)" and "if(...)". Currently, only the
former works, and I believe this is for most control statements, e.g., if,
for, while, etc.
In java, for example, both work, and I tried to compare the grammars to
make my own edits, but found them too complicated and different, and
anything I tried didn't work.
Any guidance would be appreciated.
Thanks-
Robert
Hi,
Does anybody have problems with pushing to the remote repositories on Github?
What I see:
Pushing to remote source 'origin' for branch 'master'
Output:
fatal: could not read Username for 'https://github.com': Device not configured
This is the latest TM 2.0-rc.27 on OSX 10.14.6 (18G87). Configuration is set as before (user.name, user.email, github.user).
Yesterday late I’ve been pushing quite a lot and had no problems. Very weird, hence my question.
Of course, Github desktop works fine, I wonder...
Rob J Goedman
goedman(a)icloud.com
Hello everyone,
Who can explain me what these settings are for?
Specifically: Scope Selector, Key Equivalent, Tag Trigger options.
I’m in “Edit Bundles… > Themes”
[cid:AC15C356-0CB2-46DA-BB4D-71356BD035FC@home-life.hub]
Best, u
I have been playing with the touchbar support in texmate and have noticed
the following.
If I set bookmarks in my document the touchbar buttons with up/down
chevrons will correctly take me to the previous or next bookmark
respectively.
However, if I make a change to the document and save it. I now get a
change marker showing that it is different than what is in the git
repository. That is to be expected.
But now the up/down buttons on the touchbar stop at all of the git markers
as well as the bookmarks. Is this by design?
It makes jumping back and forth between a couple of bookmarks painful if
there are a lot of edits in the file.
I can still hold down the fn button and use F2/Shift F2 to achieve this,
but that sort of defeats the purpose of having the nifty touch bar buttons.
I think `ruby “file”` can be slow too. Don’t know if it’s related
> On Jul 18, 2019, at 5:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Re: `mate <file>` from Terminal is occasionally very slow to
> open <file> in TextMate
Hey all,
I tried to pull a new patch from master and found an error;
./configure && ninja
rm
/Users/heathg/build/TextMate/Frameworks/SoftwareUpdate/fixtures/secret.pem
ninja: error: build.ninja:17: loading '/build.ninja': No such file
or directory
include $builddir/build.ninja
^ near here
ninja: error: build.ninja:17: loading '/build.ninja': No such file
or directory
include $builddir/build.ninja
I did a `git bisect` and narrowed it down to b42cbb1f.
I don't know if I missed a memo (obviously it was still building for
Allan :) ) or if this is a bug.
I unblocked my self by reverting the commit locally.
Thanks,
Graham
Thank you Matt. That did it.
My knowledge hadn’t gone beyond Preferences and Application Support. Learned something today. Will I remember it tomorrow?
> On Jul 24, 2019, at 22:09, textmate-request(a)lists.macromates.com wrote:
>
> Date: Wed, 24 Jul 2019 22:09:35 -0700
> From: Matt Neuburg <matt(a)tidbits.com <mailto:matt@tidbits.com>>
> To: TextMate users <textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>>
> Subject: [TxMt] Re: Keyboard gone crazy in TM 2.0-rc.10
> Message-ID: <34E15DA4-6383-4318-B99B-CC1EEF22A1B8(a)tidbits.com <mailto:34E15DA4-6383-4318-B99B-CC1EEF22A1B8@tidbits.com>>
> Content-Type: text/plain; charset="utf-8"
>
> Yes, it?s in Caches. m.
>
> --
> matt neuburg, phd = http://www.apeth.net/matt/ <http://www.apeth.net/matt/>
> pantes anthropoi tou eidenai oregontai phusei
> Programming iOS 12! http://shop.oreilly.com/product/0636920208662.do <http://shop.oreilly.com/product/0636920208662.do>
> iOS 12 Fundamentals! http://shop.oreilly.com/product/0636920208655.do <http://shop.oreilly.com/product/0636920208655.do>
> RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html <http://www.apeth.com/RubyFrontierDocs/default.html>
>
>> On Jul 24, 2019, at 10:07 PM, Greg <web(a)web.knobby.ws <mailto:web@web.knobby.ws>> wrote:
>>
>> Matt
>>
>> Maybe that?s what started it, but I wiped the app and ~/Library/Application Support/TextMate and the problem persists. Is the cache elsewhere?
>>
>>> On Jul 24, 2019, at 05:00, textmate-request(a)lists.macromates.com <mailto:textmate-request@lists.macromates.com> wrote:
>>>
>>> Message: 2
>>> Date: Tue, 23 Jul 2019 11:18:45 -0700
>>> From: Matt Neuburg <matt(a)tidbits.com <mailto:matt@tidbits.com>>
>>> To: TextMate users <textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>>
>>> Subject: [TxMt] Re: Keyboard gone crazy in TM 2.0-rc.10
>>> Message-ID: <7C4A3A59-3EE9-47CC-9D79-2C12782E679A(a)tidbits.com <mailto:7C4A3A59-3EE9-47CC-9D79-2C12782E679A@tidbits.com>>
>>> Content-Type: text/plain; charset=utf-8
>>>
>>> This could be irrelevant but I've got a point of similarity, namely, I have a bundle command and instead of doing what it was supposed to do, it deleted all the text in the file.
>>>
>>> I discovered that TextMate had mysteriously decided that my bundle command was empty. It had "reverted" to default settings and no code content.
>>>
>>> Well, the default setting is that the output should replace the entire text of the file. There was no code so the output was nothing, and thus nothingness replaced the text of the file.
>>>
>>> Fortunately I had a backup of the bundle. I had a very hard time getting TextMate to release its memory of the bad bundle but eventually by deleting the cache and restarting I was back in business. Very unnerving.
>>>
>>> m.
>>>
>>>
>>>> On Jul 23, 2019, at 9:04 AM, Greg <web(a)web.knobby.ws <mailto:web@web.knobby.ws>> wrote:
>>>>
>>>> I assume I did something, but, for example, Cmd-/ deletes all the text in a file (as if Cmd-A, delete)
>>>>
>>>> I?m using Ruby 2.6.3 and it?s a Rails project.
>>>>
>>>> If I open a .txt file via File>Open the page flickers twice and then it?s blank. If I Cmd-Z twice the text returns.
>>>>
>>>> I normally use Keyboard Maestro, but turned off the engine and it still happens.
>>>>
>>>> I reinstalled TextMate and deleted ~/Library/Application Support/TextMate/ and also the two prefs files.
>>>>
>>>> This reinstall helped with the initial problem the in general the clicks were ignored. I couldn?t edit Preferences.
>>>>
>>>> Cmd-S deletes everything on a page too.
>>>>
>>>> What did I do. I?m not thinking it?s a fundamental TM problem because my laptop is fine.
>>>>
>>>> I first noticed this when I tried to do a Cmd-/ in a Ruby file and the whole page di
Matt
Maybe that’s what started it, but I wiped the app and ~/Library/Application Support/TextMate and the problem persists. Is the cache elsewhere?
> On Jul 24, 2019, at 05:00, textmate-request(a)lists.macromates.com wrote:
>
> Message: 2
> Date: Tue, 23 Jul 2019 11:18:45 -0700
> From: Matt Neuburg <matt(a)tidbits.com <mailto:matt@tidbits.com>>
> To: TextMate users <textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>>
> Subject: [TxMt] Re: Keyboard gone crazy in TM 2.0-rc.10
> Message-ID: <7C4A3A59-3EE9-47CC-9D79-2C12782E679A(a)tidbits.com <mailto:7C4A3A59-3EE9-47CC-9D79-2C12782E679A@tidbits.com>>
> Content-Type: text/plain; charset=utf-8
>
> This could be irrelevant but I've got a point of similarity, namely, I have a bundle command and instead of doing what it was supposed to do, it deleted all the text in the file.
>
> I discovered that TextMate had mysteriously decided that my bundle command was empty. It had "reverted" to default settings and no code content.
>
> Well, the default setting is that the output should replace the entire text of the file. There was no code so the output was nothing, and thus nothingness replaced the text of the file.
>
> Fortunately I had a backup of the bundle. I had a very hard time getting TextMate to release its memory of the bad bundle but eventually by deleting the cache and restarting I was back in business. Very unnerving.
>
> m.
>
>
>> On Jul 23, 2019, at 9:04 AM, Greg <web(a)web.knobby.ws <mailto:web@web.knobby.ws>> wrote:
>>
>> I assume I did something, but, for example, Cmd-/ deletes all the text in a file (as if Cmd-A, delete)
>>
>> I?m using Ruby 2.6.3 and it?s a Rails project.
>>
>> If I open a .txt file via File>Open the page flickers twice and then it?s blank. If I Cmd-Z twice the text returns.
>>
>> I normally use Keyboard Maestro, but turned off the engine and it still happens.
>>
>> I reinstalled TextMate and deleted ~/Library/Application Support/TextMate/ and also the two prefs files.
>>
>> This reinstall helped with the initial problem the in general the clicks were ignored. I couldn?t edit Preferences.
>>
>> Cmd-S deletes everything on a page too.
>>
>> What did I do. I?m not thinking it?s a fundamental TM problem because my laptop is fine.
>>
>> I first noticed this when I tried to do a Cmd-/ in a Ruby file and the whole page disappeared. (well at first nothing happened until I reinstalled TM and deleted Application Support)
I assume I did something, but, for example, Cmd-/ deletes all the text in a file (as if Cmd-A, delete)
I’m using Ruby 2.6.3 and it’s a Rails project.
If I open a .txt file via File>Open the page flickers twice and then it’s blank. If I Cmd-Z twice the text returns.
I normally use Keyboard Maestro, but turned off the engine and it still happens.
I reinstalled TextMate and deleted ~/Library/Application Support/TextMate/ and also the two prefs files.
This reinstall helped with the initial problem the in general the clicks were ignored. I couldn’t edit Preferences.
Cmd-S deletes everything on a page too.
What did I do. I’m not thinking it’s a fundamental TM problem because my laptop is fine.
I first noticed this when I tried to do a Cmd-/ in a Ruby file and the whole page disappeared. (well at first nothing happened until I reinstalled TM and deleted Application Support)
Hi all,
the [Emmet plugin](https://emmet.io) crashes since the latest test builds of
TM v2.0-rc.22.
The developer is aware of this issue, but unfortunately no fix till now.
Could someone here tell what the changes in TM are what could break the
Emmet plugin? So I can give the developer a hint :)
A crashlog can be found here: https://feek.d.pr/98mGNP
== feek
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
It would be nice if the Align Assignments command absorbed the smart code from the align bundle, which appears moribund (?), but which is much smarter about alignments.
https://github.com/mads379/align.tmbundle
I notice that after updating to 2.0-rc.25 and 2.0-rc.26, file permissions revert when saving a file. I presume this has to do with the new atomic save engine. E.g., a file which previously had -rwxr-xr-x permissions reverts to -rw-r--r-- after saving. I assume this is a bug?
# chmod 755 bin/resman.cli.php
# ls -l bin/resman.cli.php
-rwxr-xr-x@ 1 q staff 10184 Jul 8 01:01 bin/resman.cli.php
(Edit and save the file in TextMate 2.0-rc.26)
# ls -l bin/resman.cli.php
-rw-r--r--@ 1 q staff 10184 Jul 8 01:01 bin/resman.cli.php
Quinn
I just installed the public beta of macOS Catalina. I’ve noticed that the TextMate icon is missing in the Dock. It’s showing a generic application icon instead.
--
/Jacob Carlborg
Hi,
Dumb question for a 12-year user of Textmate (we missed the 10-yer anniversary, it seems: happy birthday TM!), but…
How is the project folder determined? Specifically, I’ve got a tab open which is in a folder marked in the filebrowser (^⌥⌘-D) as the project folder (at least ) it’s ticked in the little drop down menu (see image).
But… If I ⇧⌘-F (find in project), the Dropbox folder is selected… What determines what is set when one used command-shift-F?
In general, I’d appreciate if anyone has pointers to a decent tutorial on how to use project folders.
I have a command I'm trying to create that pastes multiple lines of code,
the problem is sequential lines are not indented properly. If my command
pastes 1, 2, 3 on newlines for example, I'll get something like this:
def foo
1
2
3
end
since I invoke my command from the proper indenting (2 spaces over), but
the following lines are not indented at all. Is there a recommended way to
fix this?
Thanks!
Are people using TextMate with Dark Mode? I see some issues with reading
text (find input text is black until unfocused, then changes to white), but
also curiously the icons in the outline view are also missing.
[image: Screen Shot 2018-10-04 at 8.04.30 PM.png]
I have a bundle command implemented in Ruby that uses TextMate.detatch. The tm/detach.rb requires ui.rb which requires plist.bundle. Loading the plist bundle crashes with a segmentation fault. The issue occurs on Mojave but not on High Sierra. I’m using "/usr/bin/env ruby20” as the Ruby for running the command. The command is available here [1].
[1] https://github.com/textmate/d.tmbundle/blob/master/Commands/Start%20DCD.tmC…
--
/Jacob Carlborg
Is there a hidden preference, modifier key, or some other way to make
“Jump to Selection” put the current line at the top of the window
instead of in the center?
Actually, one or two lines of context above the current line would be
even better. Like what `less -j4 file.txt` would do.
Thanks.
--
Rob McBroom
Hi,
I have started to use Homebrew's Perl and its CPAN to avoid having to
mess with the Macs Protection mechanism.
The CPAN libraries/modules are installed under ~/perl5 necesstitting to
run
PERL_MM_OPT="INSTALL_BASE=$HOME/perl5" cpan local::lib
and adding this to the end of ~/.profile
eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"
which sets
PERL_MB_OPT='--install_base "/Users/el/perl5"'
PERL_MM_OPT=INSTALL_BASE=/Users/el/perl5
(in my case).
I have set TM_PERL to /usr/local/bin/perl and when I run a perl program
wit CMD-R it works, unless I use a CPAN module when I get this message
(under TextMate, but NOT from the command line):
Can't locate DBI.pm in @INC (you may need to install the DBI module)
(@INC contains: /Users/el/Library/Application
Support/TextMate/Managed/Bundles/Perl.tmbundle/Support
/usr/local/Cellar/perl/5.28.1/lib/perl5/site_perl/5.28.1/darwin-thread-multi-2level
/usr/local/Cellar/perl/5.28.1/lib/perl5/site_perl/5.28.1
/usr/local/Cellar/perl/5.28.1/lib/perl5/5.28.1/darwin-thread-multi-2level
/usr/local/Cellar/perl/5.28.1/lib/perl5/5.28.1
/usr/local/lib/perl5/site_perl/5.28.1) at /Users/el/Downloads/epplog.pl line 4.
BEGIN failed--compilation aborted at /Users/el/Downloads/epplog.pl line 4.
When I add this to the front of the script
BEGIN {
$WHOAMI = getpwuid($<);
$LOCALPERL5 = "/Users/$WHOAMI/perl5/lib/perl5";
push @INC, $LOCALPERL5;
} ## end BEGIN
use lib "/Users/$WHOAMI/perl5/lib/perl5";
it runs under TextMate.
If I run Tidy I get this message
Can't locate Perl/Tidy.pm in @INC (you may need to install the
Perl::Tidy module) (@INC contains:
/usr/local/Cellar/perl/5.28.1/lib/perl5/site_perl/5.28.1/darwin-thread-multi-2level
/usr/local/Cellar/perl/5.28.1/lib/perl5/site_perl/5.28.1
/usr/local/Cellar/perl/5.28.1/lib/perl5/5.28.1/darwin-thread-multi-2level
/usr/local/Cellar/perl/5.28.1/lib/perl5/5.28.1
/usr/local/lib/perl5/site_perl/5.28.1) at /usr/local/bin/perltidy line 2.
BEGIN failed--compilation aborted at /usr/local/bin/perltidy line 2.
which disappears if I prefix the above BEGIN/Use block into
/usr/local/bin/perltidy (which works from the command line).
I have tried to set TM_PERLTIDY to /usr/local/bin/perltidy but makes no
difference.
Does anyone have an idea what I must set to be able not have to use the
BEGIN/use block any longer (for both issues)?
greetings, el
--
Dr. Eberhard W. Lisse / Obstetrician & Gynaecologist (Saar)
el(a)lisse.NA / * | Telephone: +264 81 124 6733 (cell)
PO Box 8421 /
Bachbrecht, Namibia ;____/
Hello,
I am trying to make a snippet that adds ^{$1} associated to the ^ key
equivalent.
But ^ is a dead key on my french keyboard, and I can't seem to assign it in
the bundle editor.
Any idea?
Best,
S.
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
I’m running the latest RC 2.0-rc.15. I’ve only noticed this since I've installed this version.
When I move between tabs (either by clicking on tab or using Option-Command left, right arrows) sometimes the page scrolls up by 1 to 3-4 lines each time. But once it does this scrolling then it will do so every time I come back to that tab.
I’m not sure how TM handles window draws but there seems to be a miscalculated line offset between a buffered text image that gets shown when the window first shows and then an actual redraw of lines afterwards. I’ve noticed in some cases a clipped portion of the window being shown first and then the remaining page showing but the clipping is off so the text appears to move downwards. Sorry I haven’t looked into the code to get a better idea of what’s happening with window draws.
Ed Wong
Hi Folks,
I'be had a recurring problem with one file. For some reason when TextMate
reads the film from disk it somehow corrupts the tail of the file. I've
attached two images of the corrupted and original versions. I've done a bit
of digging and have observed the following.
1. It only appears to happen for this one particular file (weird).
2. When I first launch Textmate and then open this file it appears
corrupted in Textmate but not when I use "tail" in the command line (i.e.,
the file is corrupted in TextMate's memory but not on disk).
3. If I close the (apparently) corrupted file and re-open it, the file is
now not corrupted.
4. If I save the file to disk then it is saved in corrupted form (oops).
5. If I delete ~/Library/Caches/com.macromates.TextMate/BundlesIndex.binary
before launching TextMate then the file is not corrupted.
6. I ran Apple's debug (reboot+D) to check my memory and it reported no
errors.
7. I'm running TextMate 2.0-rc.23 on macOS 10.14.4
Any suggestions would be most appreciated,
Cheers,
Leo
[image: fig-01.png]
[image: fig-02.png]
Hello everyone,
Does somebody successfully build TextMate 2 for Mac OS X Tiger?
I forgot I had to purchase a license for the 1.5.x version. Thing I do not want to do at the moment.
Best,
Umberto
I know there’s a semantic class for when a document is open: "callback.document.did-open”. Is there a corresponding semantic class for when a document is closed? Or even better when a project is closed. I know that TextMate technically doesn’t have a concept of projects. I would like to stop a completion daemon.
I had a look in the TextMate source code but I couldn't find anything
--
/Jacob Carlborg
The Ruby bundle currently supports reformatting a file with RuboCop
(“Reformat Document”), and checking the document’s syntax using `ruby -wc.
So far there is no support for automatically checking (or maybe even
reformatting) a file everytime it is saved.
For RuboCop, there are (at least) four stand-alone RuboCop bundles
providing additional features:
* https://github.com/fazibear/Rubocop.tmbundle
* https://github.com/mrdougal/textmate2-rubocop
* https://github.com/goyox86/rubocop-tmbundle
* https://github.com/noniq/RuboCop.tmbundle (Disclaimer: This bundle
was written by me).
Recently various alternatives to RuboCop emerged, especially:
* https://github.com/testdouble/standard (uses RuboCop internally, “No
configuration“)
* https://github.com/samphippen/rubyfmt (autoformatting only,
optimized for speed)
Both tools are still pre-1.0, but actively developed.
I’d like to add support for both standardrb and rubyfmt to TextMate.
However, I’m not yet sure about the following questions:
* Should the Ruby bundle be extended to support these? Or should one
or more stand-alone bundles be created?
* What would be the best way to tell TextMate which (if any) linting /
formatting tool it should use for a given ruby file or project?
Any thoughts?
s.
Hi y’all.
A while back, I bought the domain: textmate.app
I had hand wavy plans for a manual/documentation/book site. But when I’m honest with myself, I’m probably not going to ever make that.
So, would the open source projects / MacroMates / Allan like to have the domain for free? If so, I can coordinate with whomever to transfer from my registrar to yours.
If not, that’s fine too. I can just let it expire.
Best
Sb