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