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