Hello,
I use textmate a lot for latex, with skim as the PDF viewer, and I have set it up so that I can sync between skim and textmate. However, sometimes when I shift-command-click on a skim window, in order to go to the corresponding place in the textmate window, textmate opens a new window of the source file. So I then have two windows of the same source file open in textmate. When I change one window it instantly changes the other, so they remain in sync. This is a useful feature sometimes, but not all the time. So I have two questions.
1. How can I stop this happening when using skim, so that focus just goes to the already-open textmate window?
2. How can I deliberately open two textmate windows of the same file? This is a very useful feature to have available. I hadn't realized it was a feature of textmate until the above behaviour happened.
I am using Textmate 2 (specifically 2.0-alpha.9543) on OSX 10.9.2.
Many thanks. Apologies if this message is a duplicate (an email problem).
Geoff
I'd like to draw a line at a certain number of columns to better help keep
my line lengths in check (PEP 8!)
This was possible in TextMate 1.x but I don't see an option in 2. Is there
such an option?
--
Wells Oliver
wellsoliver(a)gmail.com
Found it. A snippet in another language bundle (KSP, recently added) was causing it.
I didn't know that snippets all bundles are simultaneously active. Is this norma behaviour or is this a bug or configuration option?
thanks
- bruno
On May 15, 2014, at 9:28, Bruno Degazio <lifemusic(a)sympatico.ca> wrote:
> Whenever I type a ':' (colon) character Textmate automatically inserts an equals sign. At first I thought something changed in my language bundle (Forth) but this happens with any language bundle active. I've turned off the Auto-pairing option in Preferences, and I am not using any form of auto-completion (to my knowledge), but it without remedying the problem. Needless to say this paring of characters is a nuisance in Forth, where I frequently want to write a colon on its own, without the equal-sign.
>
> Can anyone suggest where else I should look to turn this off? I'm in Textmate 1.5.11
>
> thanks in advance
> - bruno
>
> ============================
> Bruno Degazio
> Professor, Faculty of Arts, Animation and Design
> Sheridan College
> degazio(a)sheridancollege.ca
>
>
>
>
Whenever I type a ':' (colon) character Textmate automatically inserts an equals sign. At first I thought something changed in my language bundle (Forth) but this happens with any language bundle active. I've turned off the Auto-pairing option in Preferences, and I am not using any form of auto-completion (to my knowledge), but it without remedying the problem. Needless to say this paring of characters is a nuisance in Forth, where I frequently want to write a colon on its own, without the equal-sign.
Can anyone suggest where else I should look to turn this off? I'm in Textmate 1.5.11
thanks in advance
- bruno
============================
Bruno Degazio
Professor, Faculty of Arts, Animation and Design
Sheridan College
degazio(a)sheridancollege.ca
Hello!
I have some issues creating new files in the file browser. When I create a file (CMD+SHIFT+N) and start typing the filename quite often it reverts to untitled after a few milliseconds and I have restart typing.
See attached gif for a screen recording.
Anyone else experiencing this problem?
Koen
http://recordit.co/BN1Avv4orC.gif
So now I'm going to ask formally the question I touched on in a previous note.
When I open my project, the same two tabs are always open. Why? They are not "sticky". But no matter how I manipulate tabs during the course of a session, when I close the project and quit TextMate and then open this project again later, there are those same two tabs open.
I'd like a hint as to where this setting is stored so that I can do something about it. Thanks! m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
Hi there,
I have a question/suggestion for further TextMate 2 development. Why does it open a new tab for every single file you open in the file browser? If you're working on a large project where you actually edit only several files at the time but you need to peek into other files from time to time as well (usually as a one-time look), the tab bar gets full very quickly and it's almost impossible to find there the file you're looking for. I find myself using file browser most of the time and it's not very comfortable with large projects where you have to scroll up and down through the tree. Why doesn't it behave for example like Chocolat app or Sublime Text where one click in the file browser opens the file without opening a tab and double click or file modification create a tab? At least an option in the Preferences would be absolutely lovely!! What do you think?
Thanks.
- Adam
Hello,
I recently upgraded my Mac mini from Snow Leopard to Mountain Lion and TextMate 1 to TextMate 2, so I'n new to TM2 and might be missing something obvious.
Before upgerading, I used Git only from the command line and the SourceTree GUI, but now I want to start using it directy from TextMate.
At the command line, `which git` will give me /usr/bin/git, so that's what what I entered as TM_GIT in TextMate's preference pane.
"Show Uncommitted Changes" in TextMate's git bundle will show the correct files (i.e. those that I changed), "Commit..." will give me the correct list of files to commit. But when I enter a commit message and hit the commit button, nothing happens.
No error message appears, but the files won't be committed, i.e. both TextMate and SourceTree will still show them as "modified".
So what am I doing wrong?
Are there any other dependencies I have to install? Any more settings I have to change?
Kind regards,
Tobias Jung
Hello everyone,
I am using TextMate 2.0-alpha.9543 on Mac Os 10.9.2
I need to use Octave, and I saw that a Matlab/Octave bundle is already installed. This bundle, however, does not seem to work. It does not recognize the open Octave session in the terminal, so I cannot send the script to it.
I noticed that the version of the bundle is actually the one developed by a certain “Matt Foster”. On the source forge page for the bundle the latest version has been updated something like 5 years ago.
I then tried to install a newer bundle, developed by a certain “Sebastian Shöps”, which seems to be more up to date.
I cloned the git repository in ~/Library/Application Support/TextMate/Bundles (I had to create the “Bundles” dir) but I did not see any way to use such bundle.
I tried to clone it in the /Applications/TextMate/Contents/SharedSupport/Bundles” directory, but that did not work as well.
With “it did not work” I mean that I did not find any way to select to use that bundle rather than the default one.
As a side note, I tried to delete the default bundle with the command
defaults read com.macromates.textmate OakBundleManagerDeletedBundles
but that command returns:
2014-05-08 15:32:04.460 defaults[4742:507]
The domain/default pair of (com.macromates.textmate, OakBundleManagerDeletedBundles) does not exist
It seems that the support page of textmate is rather outdated.
Does anybody have any suggestion?
I open an untitled document, paste some text in, and then bring up the
search/replace dialog
I notice that it always defaults to searching (and replacing) my entire
home directory.
I really think 'Current Document' would be a much better default, for
safety.
Also for performance reasons, if you run a regular expression search and
then realise its searching your entire home directory, the search tends to
beachball TM for a good while, and cant be cancelled easily
I have a remote folder which is getting mounted with macfusion.
The folder currently resides at /Volumes/labs/code/project. When I open
the project folder, and browse its subdirectories, I find some that are
being treated as files with unknown file types. Their icon in the drawer
is a 'blank page' and if I try to double click it, the drawer changes to an
empty drawer. I can confirm there are files in these folders (I checked in
the terminal).
The permissions and users for these phantom directories are the same as
folders that TextMate sees.
What can I do?
I've noticed this issue quite a few times recently.
For one project I work on, I open textmate from cmdline, using "mate
<projectdir>"
I then search my codebase for some keyword, and it returns a bunch of
results.
Looking at the results though, I see they are not complete in that some
files are definitely missing from the results.
At this stage (without closing the dialog from the previous run, or
changing any search terms), I click the Find button again. TM searches once
again, but this time it shows much more matches.
Its occurring quite often, but not every time, and I cant reproduce it at
will.
I *think* Ive only ever seen on the first search after launching TM
Any idea what is happening here?
Is there anything similar to the Project or Drawer functions in 2.0? I used
to love having all of my commonly-used files grouped in the drawer in 1.5,
but can't find any way to do this in 2.0.
Cheers,
p
Lets say I¹m in an R file and I type ³todo² + tab, the TODO bundle inserts
this:
# TODO
I want to be able to type ³todoc² + tab, and have this inserted:
# TODO code
Or, ³todoe²+ tab, and have this inserted:
# TODO edit
How can I edit the TODO bundle to be able to do this?
Thanks
Ross
Hello,
sorry if I missed it somewhere, but what is the best way to report bugs/feature requests in TextMate? Will the github issues come back? Or is still the best way for some user who wants to report accessibility bugs to write to the textmate mailing list? Or to the textmate-dev mailing list?
Thanks,
Boris
Version 9539 on Mavericks 10.9.2
If you try to log out (shift command Q) when textmate has an unsaved window, then after you have been prompted to save the window you cannot quit textmate (menu item is greyed out) so have to use force quit of textmate to be able to log out.
Dave.
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
I noticed in a recent update that the status bar always have the same
style as when the window doesn't have focus. Is that intentional?
--
/Jacob Carlborg
Hi,
sorry that I not entirely followed this issue, but on
MacOSX 10.7.5 - TM 2.0-alpha.9537 - git version 1.7.12.4 - Git bundle from Apr 17 2014
I get the following error message:
sh: line 1: 28803 Abort trap: 6 "$TM_SCM_COMMIT_WINDOW" --diff-cmd '/usr/bin/git,diff,HEAD,--' --action-cmd "M,D:Revert,/Users/bibiko/Library/Application Support/TextMate/Managed/Bundles/Git.tmbundle/Support/gateway/commit_dialog_helper.rb,revert" --action-cmd "?:Delete,/Users/bibiko/Library/Application Support/TextMate/Managed/Bundles/Git.tmbundle/Support/gateway/commit_dialog_helper.rb,delete" --status M xyz\ foo.txt 2> /dev/console
Using git in the Terminal works.
Any hints?
Happy Easter,
--Hans
The other day, I was trying to bind the "remove trailing whitespace from
all lines" to a keyboard shortcut that was evidently already bound to
"delete whatever is selected with extreme prejudice". In doing so, I
deleted the "remove trailing whitespace" item from the Text bundle.
How can I recover the item?
I have installed the SCSS bundle.
When I save the .scss file, nothing happens in the related .css file - I'm
not getting any errors either.
Compass is watching in the background, and is confirming each 'overwrite'.
I'm using the following gems:
Sass 3.3.4
ruby 2.1.0p0 (2013-12-25 revision 44422)
Compass 0.12.5
Any ideas?
Cheers
--
View this message in context: http://textmate.1073791.n5.nabble.com/TM2-not-compiling-SCSS-to-CSS-tp27809…
Sent from the textmate users mailing list archive at Nabble.com.
In the past couple updates the functionality of using ⌃← and ⌃→ seems to have broken.
It used to move by sub words so in ruby if the cursor was at the end of a variable called: an_example, ⌃← would move the cursor right after the underscore. ⌃⌫ still works though, which will delete in everything after the underscore.
I updated to 2.0-alpha.9531 today and just noticed this weird behavior
in my SCM Status pane, not sure if it's just me.
I'm working on a git project that has some modified files and some new
untracked files. If I press Go, SCM Status to show the Uncommited
Changes, no files show up in the Uncommited Changes section. If I
press Bundles, Git, Show Uncommited Changes, the files and its changes
show up on the new window as expected.
Untracked items show up in the pane as expected.
Any help will be appreciated. I know I didn't Revert to Defaults
(yet) but I wanted to ask before losing any customizations.
--
:: dip
--
Hi,
I started to customize the highlighting for Perl code with this code in
my personal Bundle:
{ patterns = (
{ name = 'comment.line.debug.perl';
match = '\bi ''.*'';|\bi ".*";|\bi q{.*};|\bi qq{.*};';
},
);
}
This works fine, so that all lines like `i '…';` are now formatted
like a comment (`#`).
But it has some side-effects: E.g. the change from double-quotes to
single-quotes by pressing `Ctrl+Shift+"` does not work any more. Plus I
would like to change the formatting (color, ...) to something different.
What would be the the best way?
--
Ingo Lantschner
Most code editors have an option where you can configure tabs to behave as
x spaces - you hit tab and it inserts 4 spaces, you hit delete, it removes
4 spaces (if it seems the 4 spaces should be treated as a group).
I work on projects where the coding standards specify to not use tabs - you
must you 4 spaces per level of indent.
Maybe this feature exists (using TM2), and I just haven't found it. If not,
I really hope you can add it - love TM2!
Thanks
-Eric
This may be an old request or me not knowing something, but is side by side
file editing possible?
Thanks and apologies if I am the last user who does not know either that
this capability is already implemented or that I shouldn't ask...
Comer
I'd like to put my 2¢ towards allowing TM2 windows to shrink narrower than what now appears to be a ~ 538px minimum limit. It is sometimes nice to have a narrow window next to a much wider window. I don't remember TM1 having this min limit. It seems TM2's min width is determined by the status and menus a the bottom-left of the window.
This became an issue for me because a) now using a "13 MBA, and b) have found the wonderful <http://spectacleapp.com/> to allow hotkey-window resizing. One of the dimensions Spectacle supports is too narrow for TM2, and blocks easy automated window tiling. =)
--
Quinn Comendant
Strangecode, LLC
http://www.strangecode.com/
@qc and @strangecode
I just noticed the new commit window in the latest release of TM2. My
initial reaction is that I don't like it. Here's a couple of comments:
* The new look feels quite heavy. It uses a lot of textured/brushed (or
what they're called) controls. I get the feeling that Apple is moving
more towards controls that feel more lightweight
* The bottom bar doesn't look like the one in the main window
* It's not possible to change the height of the commit message text view
* The cancel button doesn't properly work. The other window that also
opens still waits for a commit message (or something) after the commit
window is closed
* One thing that's been bugging me or quite a while is that when doing
an amend the check box for updating the commit message is enabled by
default but there's no commit message. The commit message of the commit
being amended should automatically be inserted in the text view and all
text should be selected. This makes it easy to just change the commit
message when amending. Or just add new changes without updating the
commit message, all without needing to use the mouse
--
/Jacob Carlborg
Hi,
Properties that contain equal signs appear to break, example:
xxxExtraOpts = '--pref build.path=/Users/me/tmp'
doesn't work, there will be no xxxExtraOpts. Is there a way to 'escape' the equal sign?
Gerd
Hi,
When opening a document with mate and giving a line number with the -l flag, TextMate will select that line, but not scroll the document to it.
Gerd
On Apr 9, 2014, at 5:53 AM, <textmate-request(a)lists.macromates.com> <textmate-request(a)lists.macromates.com> wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
>
>
> Today's Topics:
>
> 1. Re: Installing the Cucumber bundle (Leigh Daniels)
> 2. Re: Issue tracker? (Boris Du?ek)
> 3. Narrower windows (Quinn Comendant)
> 4. Re: Narrower windows (Matt Neuburg)
> 5. No output from python script for one user account but not
> the others (Nicolas Rougier)
> 6. Re: No output from python script for one user account but
> not the others (Allan Odgaard)
> 7. Re: Narrower windows (Nigel Chapman)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 8 Apr 2014 08:49:03 -0400
> From: "Leigh Daniels" <lcdpublic(a)comcast.net>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Installing the Cucumber bundle
> Message-ID: <20140408124903.333408250(a)smtp.comcast.net>
> Content-Type: text/plain; charset=US-ASCII
>
> Hi,
>
> [Re-sending this because parts were missing.]
>
> I'm trying to get cucumber working and have tried the previous suggestions to no avail. I'm using the Hello RSpec and Hello Cucumber examples from "The RSpec Book". TextMate: 2.0-alpha.9531
>
> If I run the cucumber command in the Terminal, it works but in TextMate I get this:
>
> /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- spec (LoadError)
> from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /Users/leigh/Library/Application Support/Avian/Pristine Copy/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate.rb:31:in `rescue in <top (required)>'
> from /Users/leigh/Library/Application Support/Avian/Pristine Copy/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate.rb:28:in `<top (required)>'
> from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /Users/leigh/Library/Application Support/Avian/Pristine Copy/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate/feature_helper.rb:1:in `<top (required)>'
> from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /tmp/cucumber-23006.rb:2:in `<main>'
>
> Here's the RVM setup:
>
> rvm info
>
> ruby-2.0.0-p247:
>
> system:
> uname: "Darwin Mingus.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64"
> system: "osx/10.9/x86_64"
> bash: "/bin/bash => GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)"
> zsh: "/bin/zsh => zsh 5.0.2 (x86_64-apple-darwin13.0)"
>
> rvm:
> version: "rvm 1.25.22 (stable) by Wayne E. Seguin <wayneeseguin(a)gmail.com>, Michal Papis <mpapis(a)gmail.com> [https://rvm.io/]"
> updated: "1 minute 9 seconds ago"
> path: "/usr/local/rvm"
>
> ruby:
> interpreter: "ruby"
> version: "2.0.0p247"
> date: "2013-06-27"
> platform: "x86_64-darwin12.3.0"
> patchlevel: "2013-06-27 revision 41674"
> full_version: "ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.3.0]"
>
> homes:
> gem: "/usr/local/rvm/gems/ruby-2.0.0-p247"
> ruby: "/usr/local/rvm/rubies/ruby-2.0.0-p247"
>
> binaries:
> ruby: "/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby"
> irb: "/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/irb"
> gem: "/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/gem"
> rake: "/usr/local/rvm/gems/ruby-2.0.0-p247/bin/rake"
>
> environment:
> PATH: "/usr/local/rvm/gems/ruby-2.0.0-p247/bin:/usr/local/rvm/gems/ruby-2.0.0-p247@global/bin:/usr/local/rvm/rubies/ruby-2.0.0-p247/bin:/usr/local/rvm/bin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin"
> GEM_HOME: "/usr/local/rvm/gems/ruby-2.0.0-p247"
> GEM_PATH: "/usr/local/rvm/gems/ruby-2.0.0-p247:/usr/local/rvm/gems/ruby-2.0.0-p247@global"
> MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-2.0.0-p247"
> IRBRC: "/usr/local/rvm/rubies/ruby-2.0.0-p247/.irbrc"
> RUBYOPT: ""
>
> Thanks for any suggestions.
>
> **Leigh
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 8 Apr 2014 22:19:33 +0200
> From: Boris Du?ek <me(a)dusek.me>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Issue tracker?
> Message-ID: <69374DB4-CB1B-4361-80C3-2F590B576A54(a)dusek.me>
> Content-Type: text/plain; charset=windows-1252
>
>>> Will the github issues come back? Or is still the best way for some user who wants to report accessibility bugs to write to the textmate mailing list? Or to the textmate-dev mailing list?
>>
>> If the user is OK with mailing lists, then this list is fine (textmate-dev is sort of a legacy list that I am considering shutting down), otherwise one can write support or try IRC (where I am often available).
>>
>> I?m not sure if GitHub Issues will be back, it felt like an unwanted chore, and as people can still submit bug reports or suggest features, the loss of the issue tracker is IMHO negligible ? the main advantage people tend to claim is that one can search through existing issues, nonetheless I closed issues as duplicates daily, so in practice few used that feature, and was just burdening me with administrative work that was hard to outsource (and adding more noise to the issue tracker that degraded the searching experience).
>>
>> If you?re asking from the POV of a contributor, i.e. how can you be made aware of accessibility issues, then we can relay issues reported.
>
> Please feel free to relay to me any accessibility issues reported by any channel (except this mailing list which I follow) to you.
>
> I was asking about GitHub issues because I myself prefer some tracker like that. I like to be able to write down issues when they occur to me or anyone else, review the issue list from time to time, close issues as they get fixed etc. E.g. right now I have at least 2 issues that I am keeping in my head :-) and will not be fixing them right away.
>
> But another idea occurred to me - maybe I could then open GitHub issues on my fork of textmate (https://github.com/dusek/textmate/) and mark it as only for accessibility (I already preemptively did that with the fork page title). As the issue topic would be limited to accessibility, closing duplicates would probably not be such a burden (and would be done by me :-)
>
> If you have no objection to that, I would then open the Issues on my fork as that would be the way I would prefer to keep track of accessibility issues. If someone submitted something to the list (or it was relayed to me), I would simply put it in that tracker to not forget it and be able to get back to it sometime. Then README.md on textmate/textmate could get updated to point to the dusek/textmate issues for accessibility issues only.
>
> Would that be OK with you?
>
>> We can also do a new mailing list for people who use the accessibility features. This would also allow soliciting feedback about the current accessability support and make more detailed announcements about the changes being done to improve it.
>
> I am not sure that is such a great idea as it might sound at first (mainly for the philosophical reason that since accessibility should be an integral part of a product, accessibility discussions should IMHO be an integral part of the main user mailing list). But I also see the practical advantages you are mentioning. Half of me is for it, half of me is against it - let me think about it for a few days more :-)
>
> Thanks,
> Boris
>
> ------------------------------
>
> Message: 3
> Date: Tue, 8 Apr 2014 19:37:20 -0500
> From: Quinn Comendant <quinn(a)strangecode.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Narrower windows
> Message-ID: <20140408193720967803.b24565ee(a)strangecode.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> I'd like to put my 2? towards allowing TM2 windows to shrink narrower than what now appears to be a ~ 538px minimum limit. It is sometimes nice to have a narrow window next to a much wider window. I don't remember TM1 having this min limit. It seems TM2's min width is determined by the status and menus a the bottom-left of the window.
>
> This became an issue for me because a) now using a "13 MBA, and b) have found the wonderful <http://spectacleapp.com/> to allow hotkey-window resizing. One of the dimensions Spectacle supports is too narrow for TM2, and blocks easy automated window tiling. =)
>
> --
> Quinn Comendant
> Strangecode, LLC
> http://www.strangecode.com/
> @qc and @strangecode
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 8 Apr 2014 18:32:14 -0700
> From: Matt Neuburg <matt(a)tidbits.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Narrower windows
> Message-ID: <0498AE19-AFC9-4B69-8577-8BEFE8BB3E8A(a)tidbits.com>
> Content-Type: text/plain; charset=iso-8859-1
>
>
> On Apr 8, 2014, at 5:37 PM, Quinn Comendant <quinn(a)strangecode.com> wrote:
>
>> I'd like to put my 2? towards allowing TM2 windows to shrink narrower than what now appears to be a ~ 538px minimum limit. It is sometimes nice to have a narrow window next to a much wider window. I don't remember TM1 having this min limit. It seems TM2's min width is determined by the status and menus a the bottom-left of the window.
>>
>> This became an issue for me because a) now using a "13 MBA
>
> I have a 13-inch MacBook (Pro), and what I do is to show document tabs even for a single document, with command output to the right of text view. Every script I open thus becomes a tab in this one window, and I say New Tab when I want to make a completely new script. Thus there is just one window! It's true I can't see two scripts at once, but I don't need to; I can see a script and its results, and that's what matters. I could make this single window full-screen, but I don't usually bother.
>
> I'm not saying this would work for your purposes, but personally, when I discovered I could work like this on the small screen, I was really happy. m.
>
> --
> matt neuburg, phd = http://www.apeth.net/matt/
> pantes anthropoi tou eidenai oregontai phusei
> Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
> iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
> RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
>
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 9 Apr 2014 12:04:55 +0200
> From: Nicolas Rougier <Nicolas.Rougier(a)inria.fr>
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] No output from python script for one user account but
> not the others
> Message-ID: <BD17357E-92CB-439C-B2AD-9C44DAC8F2AC(a)inria.fr>
> Content-Type: text/plain; charset=us-ascii
>
>
> Hi,
>
> I'm using the latest version (2.0-alpha.9529) and I've some problems getting python output when running the script.
>
> The python script is just:
>
> print "ok"
>
>
> It works fine when ran in terminal (Run Script (Terminal)) but if I run script directly (Run Script), I get no output. For other type of files (Latex for example), everything seems ok.
>
>
> The weirdest part is that if I do the same with another user (administrator) it works fine and I get the output in the window: from my regular account, I can "su administrator" and starts TM from command line and it works as expected.
>
> I tried to reinstall TM, not load my .profile/.bashrc in case something's wrong in my path, delete any TM preferences (com.macromates.TextMate.preview and Library/Caches/...) but it does no change anything.
>
>
> So I guess something wrong's with my regular account but I'm out of ideas at this point.
> (I also checked "env" gives same values for regular/administrator)
>
>
> If someone has any idea ... or how to debug.
>
>
>
> Nicolas
>
> ------------------------------
>
> Message: 6
> Date: Wed, 09 Apr 2014 17:44:11 +0700
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: No output from python script for one user account
> but not the others
> Message-ID: <59CEE812-97CC-459D-96EA-4C9A7E842499(a)textmate.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 9 Apr 2014, at 17:04, Nicolas Rougier wrote:
>
>> [?] if I run script directly (Run Script), I get no output.
>
> What does ?no output? mean? Is the action a no-op, i.e. no windows
> showing?
>
> If so, try Preferences ? Bundles and uncheck/check the Python bundle.
>
> There is an issue with updating bundles (in current release build) where
> if TM is terminated while updating a bundle, it can leave a broken
> bundle on disk (partially deleted), which could manifest itself as some
> actions being no-op (although deleting ~/Library/Caches should have made
> deleted actions disappear from the menu).
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 9 Apr 2014 11:53:36 +0100
> From: Nigel Chapman <nigel(a)macavon.co.uk>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Narrower windows
> Message-ID: <F3C29074-33F0-4B3E-924C-96537842DB9B(a)macavon.co.uk>
> Content-Type: text/plain; charset="windows-1252"
>
> Split pane windows would solve this problem. I just had a look at Bounty Source (https://www.bountysource.com/issues/27-split-pane-feature) and it would seem that there?s somebody willing to pick up the issue if another $16 is raised.
>
>
> On 9 Apr 2014, at 01:37, Quinn Comendant <quinn(a)strangecode.com> wrote:
>
>> I'd like to put my 2? towards allowing TM2 windows to shrink narrower than what now appears to be a ~ 538px minimum limit. It is sometimes nice to have a narrow window next to a much wider window. I don't remember TM1 having this min limit. It seems TM2's min width is determined by the status and menus a the bottom-left of the window.
>>
>> This became an issue for me because a) now using a "13 MBA, and b) have found the wonderful <http://spectacleapp.com/> to allow hotkey-window resizing. One of the dimensions Spectacle supports is too narrow for TM2, and blocks easy automated window tiling. =)
>>
>> --
>> Quinn Comendant
>> Strangecode, LLC
>> http://www.strangecode.com/
>> @qc and @strangecode
>>
>>
>> _______________________________________________
>> textmate mailing list
>> textmate(a)lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
>
Hey all,
New to the list. I’ve been using TextMate for years, and just recently switched to TextMate 2. I’d love to be able to replace Xcode with it if possible, but I’m not really sure where to start.
I’d like to (if possible)
1) build a project (obj-c)
2) show compile errors while editing
3) autocomplete
4) debug?
Are these things possible to do within text mate, or perhaps a hybrid of both editors?
John <><
Hi,
[sorry, a bit complicated]
my bundle "R Console (Rdaemon)" ships with a grammar called "LaTeX Rdaemon" which works under TM 1.5 without problems but under TM 2.0 it fails partially.
It a bit complicated that's why a bit background information:
This grammar allows the users to write a normal LaTeX document with an interactive R Console running inside of the LaTeX document. [a kind of interactive Sweaving]
Here a minimal tex example:
-------
% Preamble (fold)
\documentclass[11pt]{article}
\usepackage{blindtext}
\usepackage{verbatim}
\newenvironment{Rdaemon}{\comment}{\endcomment} % R code invisible
\begin{document}
\section{First section}
\blindtext
\begin{Rdaemon}
> runif(10,min=0,max=1)
\end{Rdaemon}
\section{Second Section}
\blindtext
\end{document}
-------
Everything between \begin{Rdaemon} and \end{Rdaemon} should controlled by the "R Console (Rdaemon)" bundle scope: 'source.rd.console' and its output will be syntax highlighted via 'source.r' which works under TM 2.0.
If I place the caret after "runif(10,min=0,max=1)" and press ENTER "runif(10,min=0,max=1)" will be sent to R und the result will be inserted like:
-------
...
\blindtext
\begin{Rdaemon}
> runif(10,min=0,max=1)
[1] 0.482648455 0.874794168 0.904718875 0.585969825 0.859514066 0.865195652 0.003995807 0.904800528
[9] 0.918498771 0.158369060
>
\end{Rdaemon}
\section{Second Section}
...
-------
Fine, but for some reasons in TM 2.0 the end tag "\end{Rdaemon}" isn't recognized. I looked into that and it seems to me that the grammar definition of 'source.rd.console.prompt' in "R Console (Rdaemon)" "eats" the entire rest of the tex document:
{ name = 'source.rd.console.prompt';
begin = '^[>+:] ';
end = '\n\z';
beginCaptures = { 0 = { name = 'keyword.other.embedded.rd.console'; }; };
patterns = ( { include = 'source.r'; } );
},
[well at least it's my finding ;)]
Correct:
but in TM 2.0 it looks like:
Is anyone out there who can help me fixing it?
Thanks a lot,
Hans
Hi,
My workflow involves opening up multiple project windows for different issues that impact the same set of files/directories.
For instance I may be working on multiple bugs and features at the same time that impact the same set of source files and each project window is used to keep track of which files have been edited for each issue.
With more than 3 windows open it becomes difficult to know, without examining the files, which window is for which issue that I’m working on. Is there a way to customize the title for each window so that I can put in a tracking number for instance?
Ed Wong
Hey everyone!
I prefer having the wrap column but wrapping the code myself where needed.
And it works for everything but comments.
https://cloudup.com/c7Xx7a9liFu
No matter where I place those comments they keep wrapping at the wrapping column.
While usual code goes over the line as it should. It's JavaScript by the way.
In .tm_properties I have
[ * ]
softWrap = false
In View menu Soft Wrap's item states "Enable Soft Wrap" so it's turned off for sure.
I have no idea where to dig and why this happens. Not sure if it's a bug or a feature.
Igor.
Hi,
I am trying to use the Cucumber bundle with TextMate 2.0-alpha.9503:
https://github.com/cucumber/cucumber-tmbundle
I am a little confused about the proper way to install it. I tried:
cd ~/Library/Application\ Support/Avian/
git clone https://github.com/cucumber/cucumber-tmbundle Cucumber.tmbundle
But after restarting TextMate, I don’t see any indication that the bundle is loaded. I don’t know if this is because the bundle is incompatible with TextMate 2 (it was last touched over 2 years ago) or because I’m installing it wrong.
Any suggestions what to try next? Thanks,
Trevor
>
> ---------- Forwarded message ----------
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> Date: Fri, 04 Apr 2014 08:42:30 +0700
>
After pasting the wrong word, if you wait a little (like 1 second) does it
> then paste the proper word?
>
>
I'm not sure, I would need to check next time it happens.
Ive had it three or four times now, but usually I don't notice right away
and its only when I get a parse error in my PHP I go back and see it
sitting there.
> Is “AMQPChannel” in your clipboard history (Edit → Paste → Show History)?
> If yes, after you get it pasted, is it at the top? And are there multiple
> entries named “AMQPChannel”?
>
>
There was only one instance of this in my clipboard history, but Im certain
this is where I copied it manually in order to Google for it (ie, after it
had already been pasted)
> It does not embed rabbitMQ nor can I imagine a bundle does this. It would
> more likely be some third party clipboard history utility or perhaps
> TextMate’s own history that somehow gets messed up.
>
>
Its a brand new iMac, literally 2 weeks old. A software conflict is
possible, but there's very little Ive installed other than Textmate and a
few other standard utils.
I had the same setup on my old iMac (Lion) but never saw this problem, so
perhaps its some edge case specific to Mavericks.
Hi,
I'm using the latest version (2.0-alpha.9529) and I've some problems getting python output when running the script.
The python script is just:
print "ok"
It works fine when ran in terminal (Run Script (Terminal)) but if I run script directly (Run Script), I get no output. For other type of files (Latex for example), everything seems ok.
The weirdest part is that if I do the same with another user (administrator) it works fine and I get the output in the window: from my regular account, I can "su administrator" and starts TM from command line and it works as expected.
I tried to reinstall TM, not load my .profile/.bashrc in case something's wrong in my path, delete any TM preferences (com.macromates.TextMate.preview and Library/Caches/...) but it does no change anything.
So I guess something wrong's with my regular account but I'm out of ideas at this point.
(I also checked "env" gives same values for regular/administrator)
If someone has any idea ... or how to debug.
Nicolas
I think I've found a bug in TextMate's regular expression format string replacement feature. Try this.
Target document:
=== testing
== testing
= testing
Find expression (regex):
^(=+)
Replace expression:
${1/=(=)?(=)?/${2:?2:${1:?1:0}}/}
Do a replace all. What I expect:
2 testing
1 testing
0 testing
What I get:
2 testing
1 testing
1 testing
In the last line, neither group 2 nor group 1 should be matched, since the initial equal-sign is supposed to scarf up the entire match. Therefore I expect the logic to be:
* group 2 failed, so use its "else" alternative, which is the test for group 1
* group 1 failed, so use its "else" alternative, which is the value "0"
But try as I may, I cannot make "0" appear in the document. That is the proposed bug. It is as if group 1 is thought to be _always_ satisfied, which should not be the case.
Of course, feel free to prove me wrong by fixing my find/replace expressions, thus doing my homework for me. :) m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
>> 1) Memory usage should be in the ballpark of starting footprint (40
>> MB) + file (66 MB) = 106 MB.
>
> This is not possible because TM associates scopes with everything in
> your document and it also needs to create CoreText line objects to
> render the text (which is too slow to do ad-hoc so these are cached).
>
> It will probably need 10-20 extra bytes per character in your document,
> which turns 66 MB into ~1 GB, add in memory fragmentation and data
> structure alignment requirements, and you probably have your 1.4 GB.
>
> Maybe it can be improved, maybe there is the need for a special
> (limited) mode for large files, but it?s not currently a priority.
Thank you for the explanation. I really like TM2 for coding and was hoping it could be my editor for large files but it seems this was not meant to be-- will use TM for coding, vim for large files.
>
>> 2) After closing the window/file, memory footprint should go back to
>> near starting footprint (40 MB)
>
> How do you measure this? The malloc allocator does not give pages back
> to the OS (AFAIK), so once a process has increased its number of
> allocated pages, the count does not go down again.
>
>> 3) Closing and reopening a file should not increase memory footprint
>> further.
>
> This might be due to fragmentation. Here one solution could be a custom
> memory allocator to keep everything related to a document allocated from
> the same memory pool, but there are still many other things I would like
> to do, before I look into such optimizations.
I measured using the memory pane of Activity Monitor.app. Regarding the malloc allocator not giving pages back, this sounds bad behavior and is an OS or C library issue that should be fixed by "them." Thank you for taking the time to respond to my email.
Just upgraded to tmate2 (2.0-alpha.9529+macports.git.9f177d3) and noticed extremely high memory usage and slowdowns on Mavericks 10.9.2 on a Macbook Pro with 4GB RAM. I have tried resetting to defaults by deleting all the setting files/caches and the problem persists. After I open a large (66 MB, ~600K lines) tab delimited file, the memory usage goes up to 1.4 GB of real memory usage. Even after I close the window, the real memory usage is 800-900 MB although the memory usage falls to ~400 MB. If I open the same file again, the real memory usage goes up to 1.7 GB.
The starting memory usage of textmate is ~40 MB. I can quit textmate and restart and the problem is reproducible.
For comparison, opening the same 66 MB file in vim, the total memory usage is only 80 MB. The expected behaviors for textmate are the following:
1) Memory usage should be in the ballpark of starting footprint (40 MB) + file (66 MB) = 106 MB.
2) After closing the window/file, memory footprint should go back to near starting footprint (40 MB)
3) Closing and reopening a file should not increase memory footprint further.
Peter
Some time back, I reported that Textmate was causing my MacBook Pro to switch to the discrete graphics card all the time after I’d installed OS X 10.9. After my initial message, a TM build appeared that stopped this happening, but two builds later the behaviour came back. I didn’t follow it up at the time because it only seemed to be affecting this model of MBP, which was also experiencing other graphics problems under Mavericks, so I was waiting for 10.9.2, which was known to include some graphics driver fixes.
10.9.2 didn’t stop TM using the discrete graphics, but TM Build 9523 did. I don’t know whether this was one of the 'Fixes and improvements’ in the release notes, but the behaviour did not reappear with 9527. I thought you should know.
The only remaining oddity is that the discrete graphics still takes over whenever I use the Commit command from the Git bundle. It doesn’t do it when I show uncommitted changes, so it isn’t the diff. It doesn’t matter, just seems strange.
Thanks for cooling my computer down.
http://stackoverflow.com/questions/20594226/textmate-2-smart-typing-pairs-f…http://stackoverflow.com/questions/22856490/textmate2-how-to-put-spaces-bet…
I've noticed that these 2 questions remain un-answered. I attempted to open the bundle editor for source, text, ruby, and scss and made changes to the various smartTypingPairs objects but was unable to create change in how TextMate operates. I tried the actual fixes for these peoples problems, deleting the pair in one, and modifying the ruby pairs, I even tried ['a':'b'], but typing a didn't append a b.
Are there known issues with smart typing pairs, or perhaps was I looking in the wrong location?
Thanks,
--
graham.p.heath(a)gmail.com
If I go to a line using Navigate > Go to Symbol (shift + command + T), the
line I go to could potentially be positioned anywhere on the page. Sometimes
it is near the bottom of the page, sometimes near the middle. Is it possible
to always position the line at the top of the page?
Thanks
Ross
As I've complained here before, it disturbs me that that my AsciiDoc single-line (double-slashed) comments are affected by the Source bundle's soft-wrap indenting:
{ indentedSoftWrap = {
match = '.*(//?)\s+';
format = '${0/(\s*)(.{,4}).*/$1${2/./ /g}/}';
};
softWrap = :true;
}
My comments are comment.line.double-slash.asciidoc, so they fall under the purview of the Source bundle's setting for comment.line.double-slash.
I have considered changing the scope name of my comments in order to evade this, for example to comment.line.doubleslash.asciidoc (no hyphen). That works.
However, I've just discovered that I can do it with a settings file like this:
{ indentedSoftWrap = {};
softWrap = :true;
}
That "shelters" me from the inherited soft-wrap indenting, which is what I was trying to achieve. m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
Last month I asked how to select some text and press a keyboard shortcut
that would send the selected text to R app:
http://lists.macromates.com/textmate/2014-March/037158.html
This is working excellently well. I¹m interested in extending this, but
cannot figure out how to set it up.
Lets say I have this code:
summary(lm(mpg ~ drat + hp, mtcars))
How can select 'mtcars¹ and hp¹ simultaneously, press a keyboard shortcut
and run this code in R app:
mtcars$hp
Similarly, in this code:
ddply(mtcars, .(cyl), summarise, mean(mpg))
How can select 'mtcars¹ and mpg¹ simultaneously, press a keyboard shortcut
and run this code in R app:
mtcars$mpg
Thanks
Ross
I've since found out you can reply to a thread from the website, by
clicking the authors email
Theres enough info in the mailto link to allow it to be threaded
Moot point now though, since I've changed to individual mails like you
suggest :)