This is a from a file from Strava generated on an iPhone.
Is there a way to convert it to gpx?
I put in the beginning of the file when heart rate, hr, was 60, then later one once I was moving, and the end of the file. Obviously hr is sprinkled in from time to time. Often very close to every second, but then it drifts. The file just ends as shown here. paus is presumably pause which the program requires before stopping. I imagine if you paused and restarted it would have another strt.
I’m not yet requesting that this be added to GPSBabel, but Strava is popular. But don’t know how many people are digging out this file and want to work with it.
I would like to load it into Ascent, a good, but long unsupported program. Ascent handles gpx, but don’t know what it expects for heart rate.
strt: t:442274070.571564
hr: v:60.000000; t:1420581270.674859;
wp: lat:33.823775; long:-118.368278; hacc:1414.000000; vacc:10.000000; alt:46.013519; speed:-1.000000; course:-1.000000; t:1420581270.911244; dt:1420581270.916915, dist:0.000000
wp: lat:33.824481; long:-118.367274; hacc:1414.000000; vacc:10.000000; alt:46.013519; speed:-1.000000; course:-1.000000; t:1420581270.966093; dt:1420581270.971293, dist:0.000000
wp: lat:33.824835; long:-118.366772; hacc:1414.000000; vacc:10.000000; alt:46.013519; speed:-1.000000; course:-1.000000; t:1420581270.974278; dt:1420581270.980752, dist:0.000000
wp: lat:33.825011; long:-118.366521; hacc:1414.000000; vacc:10.000000; alt:46.013519; speed:-1.000000; course:-1.000000; t:1420581270.980927; dt:1420581270.986745, dist:0.000000
hr: v:60.000000; t:1420581271.674313;
wp: lat:33.812261; long:-118.383594; hacc:50.000000; vacc:96.000000; alt:56.578022; speed:0.000000; course:-1.000000; t:1420581272.162422; dt:1420581272.183868, dist:0.000000
…
hr: v:110.000000; t:1420581503.774007;
wp: lat:33.809755; long:-118.384701; hacc:5.000000; vacc:4.000000; alt:62.196552; speed:1.670000; course:165.937500; t:1420581504.230349; dt:1420581504.245299, dist:363.185229
hr: v:110.000000; t:1420581504.774005;
wp: lat:33.809738; long:-118.384692; hacc:5.000000; vacc:4.000000; alt:62.610554; speed:2.170000; course:161.718750; t:1420581505.294441; dt:1420581505.306045, dist:366.836077
hr: v:110.000000; t:1420581505.773943;
wp: lat:33.809721; long:-118.384684; hacc:5.000000; vacc:4.000000; alt:64.164448; speed:1.970000; course:161.718750; t:1420581506.280267; dt:1420581506.303622, dist:366.836077
hr: v:110.000000; t:1420581506.773943;
wp: lat:33.809707; long:-118.384677; hacc:5.000000; vacc:4.000000; alt:63.869831; speed:1.850000; course:159.960938; t:1420581507.223398; dt:1420581507.237045, dist:370.564706
hr: v:110.000000; t:1420581507.774318;
wp: lat:33.809692; long:-118.384670; hacc:5.000000; vacc:4.000000; alt:63.272663; speed:1.910000; course:159.960938; t:1420581508.217323; dt:1420581508.229643, dist:370.564706
hr: v:110.000000; t:1420581508.774003;
wp: lat:33.809677; long:-118.384664; hacc:5.000000; vacc:4.000000; alt:63.689411; speed:1.770000; course:164.531250; t:1420581509.230239; dt:1420581509.242228, dist:374.098707
…..
wp: lat:33.812128; long:-118.383533; hacc:5.000000; vacc:4.000000; alt:55.949909; speed:0.000000; course:351.210938; t:1420584602.268403; dt:1420584602.334073, dist:11365.188420
wp: lat:33.812123; long:-118.383530; hacc:5.000000; vacc:4.000000; alt:55.499897; speed:0.190000; course:351.210938; t:1420584603.257177; dt:1420584603.260663, dist:11365.188420
wp: lat:33.812121; long:-118.383529; hacc:5.000000; vacc:4.000000; alt:55.349751; speed:0.190000; course:351.210938; t:1420584604.268731; dt:1420584604.274758, dist:11365.188420
wp: lat:33.812121; long:-118.383529; hacc:5.000000; vacc:4.000000; alt:54.506855; speed:0.000000; course:351.210938; t:1420584605.225173; dt:1420584605.229791, dist:11365.188420
wp: lat:33.812121; long:-118.383529; hacc:5.000000; vacc:4.000000; alt:54.519428; speed:0.000000; course:351.210938; t:1420584606.223511; dt:1420584606.228382, dist:11365.188420
wp: lat:33.812121; long:-118.383529; hacc:5.000000; vacc:4.000000; alt:54.269184; speed:0.000000; course:351.210938; t:1420584607.233396; dt:1420584607.237641, dist:11365.188420
wp: lat:33.812121; long:-118.383529; hacc:5.000000; vacc:4.000000; alt:54.149799; speed:0.000000; course:351.210938; t:1420584608.406772; dt:1420584608.410853, dist:11365.188420
paus: type:0 t:442277409.220280
Greg
Dear Allan Odgaard, dear list!
I'm coming here with perhaps a strange request: I'm trying to sidestep one
"feature" of NSTextView and the only application which seems to implement
similar behavior is TextMate so I was hoping you would be so kind to share
the trick.
The thing is, when a window with NSTextView contains lots of text and the
users scrolls to, say, 1/4 of text's height, places the text cursor
somewhere, say, at the top of the window and then resizes the window, the
textview does scroll so that the cursor appears the middle of the textview.
In other words, by default, the window resize triggers NSTextView scroll
which puts the cursor in the middle of the view. Which is what I'm trying
to avoid, i.e. I want the cursor to stay where it was (if possible due to
reflow).
I tried to ask at cocoadev [1] and StackOverflow [2] but got no answer so
far. I tried Dux and Fragaria editors but they seem to auto-scroll as well.
The only editor which I can resize the window of and which keeps the cursor
at the same position is TextMate. I tried to search through its source code
but I could not find the piece of code responsible for it.
Please, could you, or someone else, help me out with this? What did you do
to avoid the default behavior?
Thanks a lot in advance!
Regards,
Ecir Hana
[1] http://lists.apple.com/archives/cocoa-dev/2014/Dec/msg00210.html
[2] http://stackoverflow.com/questions/27651948/nstextview-auto-scroll
I'm running TextMate version 2.0-beta.6 on OSX 10.9.5. Skim is my
preferred viewer but every time I render a latex file I get not only the
normal operation of Skim either opening or refreshing but also TeXShop
opens and displays a blank new file. I'm not sure why this happens, Skim
is the default in my preferences and I tried editing the default viewer in
latex_watch.pl but the behavior continues. One workaround that does stop
this from happening is to just delete the TeXShop commands from
refresh_viewer.scpt. Unfortunately this is only a temporary fix, that
script keeps reverting to it's original version and then the behavior
resumes. Maybe textmate keeps updating the latex bundle after I change
it? I'm not sure.
Does anyone know what the issue is here? Or can anyone suggest a more
permanent workaround?
-Jim
Hi!
Q1: I recently updated to TM2alpha, and I'm quite fond of it! I mostly use
TM as my LaTeX editor. However, when I compile documents the log window
doesn't close when the PDF is viewed in Skim. I have made sure the "Keep log
window open" option is not checked. Actually I would like the window to show
only at errors
Q2: I would prefer to be able to chose the log window layout to be more
minimalistic, kind of terminal-like, as I find the default layout to be
unnecessary graphical and heavy. I've tried to google about a bit, but can't
seem to find if changing it is possible or not.
--
Holene
--
View this message in context: http://textmate.1073791.n5.nabble.com/Compiling-LaTeX-log-window-tp25794.ht…
Sent from the textmate users mailing list archive at Nabble.com.
Hi James
I'm not familiar with shell scripts. Where can I find some guidance on how to create and execute a shell script?
Ross Ahmed
Ecologist
--
07875533906
Twitter: @RossAhmed
LinkedIn: Ross Ahmed
The R bundle includes the following command:
R > Execute Selection/Document In R and > Show Result as Tooltip
How can I get this command to work in .Rnw files?
The tooltips disappear after a few seconds—is there anyway of showing/hiding the tooltips with a keyboard shortcut?
Ross Ahmed
twitter.com/RossAhmed
Hi
I haven't received email replies to my posts to the list for a while. Furthermore, I haven't received the password reminder email I've just requested. I've checked my junk folder and the emails are not in there.
How can I fix this?
Ross Ahmed
twitter.com/RossAhmed
I seem to have inconsistency in being able to open files in tabs.
Right now, even with a new tab, when I open a file, it opens in a
completely new window.
How do I open files in tabs?
Thanks.
> textmate-request(a)lists.macromates.com
> <mailto:textmate-request@lists.macromates.com>
> December 16, 2014 at 4:00 AM
> 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: Committing to git submodule (Allan Odgaard)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 16 Dec 2014 14:32:07 +0700
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Committing to git submodule
> Message-ID: <AD99A230-5449-4EED-90A0-32AD799576B4(a)textmate.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
>
> Do you select the files in the file browser prior to comitting?
>
> For me, selecting files from a submodule and then running Git ? Commit
> works.
>
> The alternative would be to change the project folder first, as Ronald
> suggested. Both actions serve the purpose of directing the commit to the
> submodule. Without doing any of this, I don?t see my submodule?s
> files in the commit dialog (since we?ve initiated a commit in the
> parent repository).
>
>
> ------------------------------
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
> End of textmate Digest, Vol 79, Issue 14
> ****************************************
--
Sent with Postbox <http://www.getpostbox.com>
I made a simple shell script and a similar system service via automator to turn .txt files into .pdf via xelatex. They work well but require a couple steps outside TextMate. It would be a great convenience to have a command in the markdown bundle that would add this capacity. I tried it but failed even when giving full path to pandoc and pandoc-citeproc which are in /usr/local/bin, or to xelatex. I have little knowledge in these matters and would appreciate any help.
Here is my little shell script:
#!/bin/sh
pandoc -S --filter pandoc-citeproc --latex-engine=xelatex "${1}" -o "${1}".pdf
My similar automator service:
PATH=$HOME/.cabal/bin:/usr/local/bin:/usr/texbin:$PATH
for file in "$@"
do
output=${file%%.*}.pdf
pandoc -S --filter pandoc-citeproc --latex-engine=xelatex "$file" -o "$output"
done
The metadata at the head of my .md or .txt files give extra info, such as title, font, bibliography, as in:
---
title: My title
author: My Name
date: \today
mainfont: Hoefler Text
bibliography: /Users/me/Library/texmf/bibtex/bib/data.bib
---
Any pointers towards making a markdown bundle command that accomplishes what the scripts above do would be great.
--Gildas
Is it possible to set a keyboard shortcut/menu selection that open a specific set of files as tabs.
For example:
Keyboard shortcut 1 will open files x1, x2 and 3
Keyboard shortcut 2 will open files y1 and y2
Ross
Twitter: @RossAhmed
Is committing to git submodules supposed to work? I have a project which
uses a git submodule. I open the project in TM, make some changes in the
submodule and then commit. It looks like everything went fine but in the
result window I get "Changes not staged for commit" and "no changes
added to commit". Running "git status" in the submodule I see that the
changes are not committed.
--
/Jacob Carlborg
Latest textmate changed the CMD+T dialog to a 'view based' list
I'd really love a slightly more compact view personally (smaller icon size)
but I'm gradually getting accustomed to it
One thing I've noticed is the list selection resets sometimes while the
list is filling..
1) Type a substring which matches lots of entries
2) TM auto selects the first entry as expected
3) Now arrow down to the next item in the list
Now, if the search is still chugging away, as soon as it finds a new entry,
the new match is appended to the list, but this also resets the selection
to the top item
The net result is that quite often I am typing a filename, arrow down, and
in between that and hitting enter, its very quickly reselecting the first
item, and Im opening the file I didn't intend to.
I'm hoping this is something you can reproduce and fix please?
Thanks
I recently upgraded to Yosemite and these two commands do not work. I change
the key to Command+D
and type it when i have \ref{|}. In mavericks this would give me a list of
all the labels. However now I get
the following
/Users/stef/Downloads/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:204:in
`recursive_scan': undefined method `each_with_index' for
#<String:0x007fd96b06fcb0> (NoMethodError)
from
/Users/stef/Downloads/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:234:in
`label_scan'
from
/Users/stef/Downloads/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:57:in
`get_labels'
from /tmp/temp_textmate.Jyk2v5:8:in `<main>'
Has anyone encountered something similar?
--
View this message in context: http://textmate.1073791.n5.nabble.com/Label-and-Citation-Based-on-current-w…
Sent from the textmate users mailing list archive at Nabble.com.
I’m not sure this is the proper place to ask this, but:
SCM Diff Gutter bundle doesn’t show anything to me in the gutter.
I'm on the 2.0-beta.6.5, installed the bundle in Preferences, working on a project versioned with Git.
Is there anything else I should have done?
Caio
I have a suspicion this can’t be done, but perhaps I’ve just missed something.
I’m trying to write a snippet to insert operator declarations in Swift. The basic syntax is
(postfix|infix|prefix) operator <name> { }
But, if we are declaring an infix operator, we may also add
precedence <level>
associativity (left|right|none)
inside the curly brackets.
This is what I’ve got, based on the example at the end of section 6.8 in the manual.
${1|infix,prefix,postfix|} operator ${2:name} { ${1/(infix)|prefix|postfix/${1:+\n\tassociativity ${3|left,right, none|}\n\tprecedence${4:level}\n}/}}
As you can see if you can read that lot, I’m trying to use $3 and $4 as placeholders within the conditional insertion.
It doesn’t work of course. I assume this is because in that context $3 and $4 refer to captures from the regular expression. Is that so? Is there any way round this?
Thanks to anyone who can help
Nigel Chapman
There’s a neat feature in Find dialog. When you hold down ⌘ the file icon
for each file in results window changes to a number that you can press
to get to it.
Implementing something in similar fashion for file tabs would be
a great addition as it’s hard to guess the number when there’s
more than 5 tabs open.
Thanks.
In TM2, when a <script …> tag is prepended by any whitespace, the scope changes from `meta.tag.any.html` to `source.js.embedded.html`. This causes problems with the Comment Line command, as with the latter scope it prepends JS comments instead of HTML comments.
This problem exists when either HTML or PHP language is set for the document.
I don't think I've modified these language bundles. Any ideas for a fix?
Quinn
Hi,
I need to type special characters (ä, ü, ö, ß) quite often.
Normally on MacOS applications this is done by press-and-hold a key and
then select the special character. For applications where this gets in the
way (e.g. MacVim) this can be disabled.
TextMate 2 seems to have this feature disabled by default. I can't figure
out how to enable it. The command 'defaults write
com.macromates.TextMate.preview ApplePressAndHoldEnabled -bool true' does
not work.
Any tips?
I'm using TextMate 2.0-beta.6.3 on MacOS 10.10.1.
Best regards,
Markus
When I write javascript (in a .js file, bundle set to javascript) the behaviour when typing return after a curly bracket is different than when I write a shader (OpenGL bundle chosen) (the difference is the insertion of an extra line before the closing bracket). I see similar differences with indentation and where the cursor ends up after new line between bundles.
Is this behaviour something I can set or program myself? If so, how?
Kind Regards,
Bas
Hi,
I am finding that the Find in Project window stops responding (I cannot
type in the Find: field, though I can click checkboxes, etc.). This started
happening quite recently, I currently have Textmate v2 beta 6.
Thanks,
Anand
Running TM 2.0-beta.6.2 under Yosemite 10.10.1, if I open a file or project and click on the green button in the top left of the window, it switches to full-screen mode, as it should. However, if I have a window in normal mode, or no open file and I invoke the bundle editor, I still get the old pre-Yosemite behaviour, with the green button causing the window to toggle between the size I set it to, and some other size that is supposed to be the smallest that can enclose the content. If I’m already in full-screen mode and bring up the bundle editor, it opens at the full size of the screen, but the window title and traffic light buttons are visible, so it isn’t really full-screen. Also, the bundle editor is in the same space as the full-screen editing window, whereas if I open a new project from a full-screen window, it opens in its own space, also in full-screen, as I would expect.
Hardly a huge issue and I don’t know how far back it goes – I only just discovered it when I wanted more space to see a language grammar – but something doesn’t seem to be quite right.
Best wishes
Nigel Chapman
Using ⌃⌥⌘P to preview markdown text does nothing. To see the preview, I
must pull down from bundles to Markdown and select preview. That works
fine, but is slow. I am using 2.0-beta.6.3 on OS X 10.9.5. Can I get
some help?
--Lewis Overton
I know there is probably a very good reason for the Textmate team not to use GitHub Issues instead of this mailing list, but I saw at least three times duplicate things coming up by multiple people just in the past couple of weeks. I guess this email itself might already be a duplicate, someone must have already suggested GitHub Issues before. Anyway, I would like to ask the team to think again about this. Sorry for the possible inconvenience.
Caio
Greeting all.
I have a question regarding the highlighting of opening/closing brackets in
code. Currently they are highlighted momentarily when “passing” through the
brackets with the cursor. Is it possible somehow to have the bracket
continuously highlighted when the cursor is at the sibling bracket (and not
just flashing on then off)?
Some setting in tm_properties, or other way? This is how bracket
highlighting work in Netbeans and other editors. Personally, I find it very
helpful when looking at code (mainly C/C++ code).
Thank you in advance for any responses.
Best Regards,
S.P.
Just upgraded to Yosemite and when I try to use the git bundle it is asking to install Ruby 1.8.6. I really don’t want to have such an old Ruby version kicking around. Googling around the subject there doesn’t seem to be any alternatives, but maybe I have missed something.
I have my TM_RUBY variable setup to point to my installed version of Ruby 2.0 and I am using TM2 beta.6.2.
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.
Hi,
A very tiny request: would it be much trouble to make the click target for the double chevron button on the rightmost tab (visible when more files are open than there is space for tabs) extend till the edge of the tab? I mis-click 7 out of 10 times…
Thanks!
Best regards,
Bas
I have the situation where I have files with the same name (and similar content) in different sub folders and it is very easy to edit the incorrect file as the two tabs look the same.
A few ways to make this more obvious would be to change the background colour (of the edit window) or the colour of the tab (or text in the tab) based on something in the file path. Is there anyway of achieving such a thing?
I recall you can do something with the window title so this may be one way to help, but using colour would make it easier to see rather than having to read the full path name.
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 have a symbolic link to the bundle I'm working on in
~/Library/Application Support/Avian/Pristine Copy/Bundles
This is where Textmate put it when it was installed.
If I choose "Edit Bundles" and make a change to the language grammar, it puts a delta file in
~/Library/Application Support/Avian/Bundles
rather than changing the bundle itself. How do I get a complete language grammar back into my development copy for version control and distribution?
Thanks,
John DeSoi, Ph.D.
With Textmate 1.5 I used the parent process ID from my bundle script (PHP posix_getppid) in order to store some per-session variables. With 2.0, the same function returns a different value for each script execution in the same session. I realize I could query the system and find the Textmate pid by name, but there could be more than one instance running. Is there a better way to get a stable identifier that only changes if the application is relaunched?
Thanks,
John DeSoi, Ph.D.
Hi,
> Brian Powell <powellb(a)gmail.com> wrote:
>
> When I “Typeset and View” (CMD-R), it takes upwards of 5 seconds for anything to happen on a core i7 macbook pro (it initially brought up a dialog stating it was searching for Ruby 1.8, which took about 20-25 secs). Once the command output window appears, everything happens as normal very quickly with the final document appearing in Skim.
>
> If I close Skim, close the command output window, then press CMD-R again, it still takes 4-5 seconds to begin before generating the document.
the problem should be fixed in
https://github.com/textmate/latex.tmbundle/commit/5074427f585490148ee6641d9…
Allan already deployed the change. So most of you should have the newest version of the bundle by now. If anyone encounters any problems with the update, please do not hesitate to ask here, or open an issue in the bundle issue tracker at https://github.com/textmate/latex.tmbundle/issues.
Kind regards,
René
> Hello everyone,
>
> I just upgraded to beta 6.1 and it seems that pdfs open in Skim are no longer updated when compiling tex, and further, the view is no longer being brought to the correct position in the document. For example, when I expect the viewer to open to page 20, it brings up the first page.
>
> Any ideas...?
>
> Thank you and best wishes,
>
> Anthony
Hi,
there is a very high chance, about 100% :(, that I am responsible for the problem you and the others encountered. Sorry.
I hopefully fixed the issue in https://github.com/textmate/latex.tmbundle/commit/dd13898357fa874dd5dde7d9d…
If you want to try the changes you can use the following steps:
1. Uninstall the LaTeX Bunde inside preferences
2. Quit TextMate
3. Enter the following command inside Terminal
mkdir -p ~/Library/Application\ Support/Avian/Bundles/
cd ~/Library/Application\ Support/Avian/Bundles/
git clone https://github.com/textmate/latex.tmbundle.git
4. Open TextMate
I already mailed Michael (Sheets) about the update. Theoretically he will update the official bundle soon.
Kind regards,
René
something similar to vi's shift+%
is that available in textmate 2? I know highlight color may help but I
have hundreds of lines in between...
thanks
--
Sent from my mobile. Ignore the typos unless they're funny.
Hello everyone,
I just upgraded to beta 6.1 and it seems that pdfs open in Skim are no
longer updated when compiling tex, and further, the view is no longer being
brought to the correct position in the document. For example, when I expect
the viewer to open to page 20, it brings up the first page.
Any ideas...?
Thank you and best wishes,
Anthony
(In case it helps, I'm on Yosemite.)
When you cursor through a closing brace, TM highlights the opening one to
help you balance it.
Im assuming this feature is in TM Core and not provided by a bundle as such
Is there a way to also get TM to highlight the opening brace, when you
actually type the closing brace too?
Cheers
Hello there,
TextMate 2 removed the option of new-from-template, so with your help I
created a command. After updating to Yosemite and TextMate 2.0-beta.6 it
stopped working.
*Compressed version of the problem*
#!/usr/bin/osascript
tell application "System Events"
keystroke "p"
end tell
*Error:*
HTML5:63:122: execution error: An error of type -10810 has occurred.
(-10810)
HTML5 is the name of the command. I don't know what 63 and 122 refers
to, as there are only 18 lines in my command. Is it perhaps a
permissions problem?
All the best,
Rasmus
Does anyone have any SVG bundles they'd recommend? I am feeling a need to
get in amongst the SVG rather than staying in illustrator/omnigraffle and
on first inspection there are a number of bundles but all I've seen are
pretty aged and never had much activity.
Ken
Hi, I had two questions.
1- sometimes I cannot open a file in a tab. Even when I create a tab and press Open, text ate opens a brand new window. I would like to keep those files a tab away.
2- I want to create a bundle that will correct for the correct syntax (spelling and end brackets) for an XML like markup. I tried to look at how JSON and XML bundles were done but was overwhelmed. What's the best place to get started? The markup is called AIML 2.0
Thanks!
Matt Neuburg wrote:
> So what about the little arrow button at the bottom that opens the list of changed files and lets you show the diff as a separate window? m.
I've just received beta 6 (previously on beta 1), and it has changed a bit more. The drop-down to check/uncheck all has reappeared at the bottom of the Commit window: good change back to the previous UI - it was a bit hidden in the right-click menu on the grid. (Thanks to Michael Sheets for pointing that out to me).
The little arrow just hides and shows the grid. The cog drop-down only offers check/uncheck all. Maybe I'm missing something? Each file has a Diff button, but that opens the diff just for that file. If I've got lots of changes that's also a bit tiresome.
Ronald Wampler wrote:
> See http://lists.macromates.com/textmate-dev/2014-July/014989.html and https://github.com/textmate/textmate/pull/1249 for previous discussions.
Thanks for the pointers; they were helpful in understanding the aim of the changes. I see that the individual diffs are opened in a separate window but tied to the project, which makes sense. Following that idea, I guess what I would like to see is an option to open all of the diffs in one tab on that, i.e. the same as Command-Shift-A, Command-Y, "Diff with working copy (BASE)" and double-click the tab, which is my current dance that I have to remember to do before opening the Commit pane. Perhaps another option in the cog drop-down along with check/uncheck all?
I know that the "Previous Commit" messages are retained, which is a very useful feature that I've used for a long time. Opening and closing the commit pane to write a bit of a message in between reviewing code is still a bit tedious.
I saw also that Allan commented in the pull request:
> I’ve noticed that sometimes I need to include stuff from my source in the commit message, in which case I need to abort the commit (in order to get to the source), a downside of the sheet I hadn’t considered. But I’ll give it some more time, as it might not be that big of an issue in the long run.
This is basically the fundamental problem I am getting at. As I wrote above, the new pane in beta 6 is much better than it was in beta 1, and it could be improved further with an 'open all diffs' button, but in the end the modality means you cannot access the tabs. On the other hand, I also see Ronald's original point that you can end up with several Commit windows with the old UI. It happened to me occasionally too. Maybe we just need a preference setting to have it either way?
Allan Odgaard wrote:
> We already use an extenral window when showing uncommitted changes for Git which has the nice feature that line numbers (in that display) link back to the original documents. Additionally once TM supports re-running commands on changes, such output windows can be made ?live?.
Sorry Allan, I don't use Git so I don't understand what the links and 'live' windows means for the SVN Commit window, but it *sounds* good! :-)
Thanks all for your input and hard work.
Cheers,
Jonathan.
I joined the list just to say TextMate is looking great. Love the tabs,
love the direction the chooser windows are going in —it's all good.
Thanks for all the hard work!
I found the following bundle for Javascript's rapidly approaching ES6
standard:
https://github.com/Benvie/JavaScriptNext.tmLanguage
I like that it phrases things as being for Textmate *and then *Sublime but
the installation instructions are clearly Sublime centric. Anyway, just
wondering if there is going to be anything official for ES6 coming soon.
With transpilers reaching maturity the ability to program in ES6 has come
so I think having a good answer to this language choice will be important.
Ken
I have several favorites pointing to directories with very similar (or
even identical) names, so I usually rename the symlinks.
Since beta 5.4 the “Open Favorite” chooser window shows the name of the
directory the symlink is pointing to instead of the symlink's name. Was
this an intentional change?
Hi All,
I've been a Textmate user for a long time but I'm new here on the list. Recently the SVN commit pane changed from a dialog to a modal pane. I sent a message to feedback but was advised that I would be better raising it as a discussion here. I cannot find a previous thread that explains the design decision for the change.
I tend to open a full diff before starting the commit so that I can review my changes and write the commit message accordingly. Now I have to remember to double-click the tab of the diff file to move it to a separate window because the modality stops me from accessing the tabs. I also cannot browse the actual code on the tabs.
I presume that the modality change is to stop a novice from continuing to edit files before hitting Commit and therefore not necessarily committing everything? (I don't consider myself a novice). :-)
Cheers,
Jonathan.
hey,
i have a strange problem with file renaming in the file list:
right-clicking the file, "rename"
if i than want to open the renamed file, textmate will still try to
open the file with it's old name ... so: double click on the renamed
file opens an empty tab with the old name. the only chance to
workaround this problem seems to be restarting textmate.
in the screenshot i tried to rename "Args_tr.php" to "TArgs.php" but i
have no chance to open "TArgs.php" without restarting TextMate:
https://www.dropbox.com/s/peh32zkltd56ukn/TextMate-Rename.png?dl=0
i am not sure when this error occured the first time for me, but it
must got broken during some of the recent betas ... i am currently at
TextMate version 2.0-beta.5.3 on Yosemite
thanks!
harald
When and how is the “First Line Match” setting of language grammars
considered?
In my experiments it doesn't seem to have any effect at all: For
example, I'd like TextMate to use the RSpec grammar for all *.rb having
a first line matching '.*spec_helper.*', but it seems to always use the
Rails grammar instead (even for newly created files). I suspect TextMate
remembers some kind of manual override – if so, how can I reset this
override? Is there any way to see (debug) how TextMate choses the grammar?
Just spotted a little bug in macro recording, whereby it doesn't seem to
record undo operations.
1) Copy some text into your clipboard
2) Start recording, type something, paste clipboard, undo that, then stop
recording
3) When you replay the macro it applies to clipboard paste but ignores the
undo
Not a show stopper, but I recorded quite a big macro today and it threw me
for a while
Cheers
Has the ranking code for ⌘T changed recently? Im on v2.0-alpha.9561
I've noticed recently when I try top quick open "view.php" its instead
ranking "review.php" at the top, with "view.php" 2nd.
There are no files open when I attempt this, although Ive been working on
review.php the past few days, so I wonder if theres some meta data which
boosts the rank according to recent usage?
Thanks
Thank you for reemphasizing that. I missed it the first time since the time had past, but if I do it again I hope to remember to look in Transmit folder.
Greg
> On Nov 4, 2014, at 4:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Date: Mon, 3 Nov 2014 14:23:54 +0200
> From: George McGinley Smith <george(a)gsgd.co.uk <mailto:george@gsgd.co.uk>>
>
> Yeah, not sure about Transmit, but with Cyberduck they are not in
> application support, but some weird temp folder which is why I suggested
> opening another file to see where it ended up.
>
> On Sat, Nov 1, 2014 at 4:04 AM, Greg <web(a)web.knobby.ws <mailto:web@web.knobby.ws>> wrote:
>
>> I looked in TextMate but forgot to look in Transmit folders. Nothing there
>> now (Application Support>Transmit), but maybe next time.
>>
>> Thanks
>>
>> From: George McGinley Smith <george(a)gsgd.co.uk <mailto:george@gsgd.co.uk>>
>>
>> You might also find that the files are still on disk somewhere (I know
>> CyberDuck keeps them on disk).
>>
>> Try opening another file and then the file drawer and you might see it's
>> still there.
>>
>> On Fri, Oct 31, 2014 at 2:22 AM, Allan Odgaard <mailinglist(a)textmate.org <mailto:mailinglist@textmate.org>>
>> wrote:
>>
>> On 31 Oct 2014, at 1:03, Greg wrote:
>>
>> I?m writing Ruby scripts for a Raspberry Pi (RPi) using TextMate
>>
>> v2.0-beta.1. The RPi is on my network and I?m accessing the files via
>> Transmit (OS X FTP GUI program). From Transmit I open, edit and save the
>> files. However I just opened the ReadMe.tm created by GitHub, did some
>> editing, saved and closed. I hadn?t seen that I had received a notice from
>> Transmit that I didn?t have permissions to modify the file, but the changes
>> were gone (RPi is slow).
I've been experimenting with some ideas for enhancing editing of code,
particularly Ruby and JavaScript, but this query is more general. I'm
writing scripts in Ruby and quite happy with ruby18 if it has to be that.
Can I get scope information from within a script? I realise that a scope or
list of scopes can act as a kind of guard for whether a script is
activated. But once a script is running can it take a look at the results
of the various scope definitions applied to the current code file?
07952130635
skype: rdrake98
blog <https://dl.dropboxusercontent.com/u/51971271/drake/index.html> -
twitter <https://twitter.com/rdrake98>
If I click on a TextMate window to select it and the tries to adjust a
split view divider (file browser or output view) the window moves
instead of adjusting the divider. I doesn't always happen but sometimes
it does.
I'm using TextMate beta5 on OS X 10.9.5. I made a screen recoding of the
behavior:
[1] https://drive.google.com/open?id=0B7UtafxGD9vEU2RPZHhXYlRCenM&authuser=0
--
/Jacob Carlborg
My "Paste Document / Selection Online…" command isn't working (TM2 2.0-beta.1). I haven't used it in awhile so not sure when it broke, but it is identical in content to https://github.com/textmate/textmate.tmbundle/blob/master/Commands/Paste%20…
The error I get is:
----
The script failed with the following exception:
NoMethodError: undefined method `[]' for nil:NilClass
At line 70 in ‘TextMate_command.z1Zsvt’ (inside method ‘get_destinations’)
At line 69 in ‘TextMate_command.z1Zsvt’ (inside method ‘each’)
At line 69 in ‘TextMate_command.z1Zsvt’ (inside method ‘get_destinations’)
At line 66 in ‘TextMate_command.z1Zsvt’ (inside method ‘each’)
At line 66 in ‘TextMate_command.z1Zsvt’ (inside method ‘get_destinations’)
At line 213 in ‘TextMate_command.z1Zsvt’ (top level)
At line 13 in ‘detach.rb’ (inside method ‘call’)
At line 13 in ‘detach.rb’ (inside method ‘detach’)
At line 8 in ‘detach.rb’ (inside method ‘fork’)
At line 8 in ‘detach.rb’ (inside method ‘detach’)
At line 212 in ‘TextMate_command.z1Zsvt’ (top level)
I looked in TextMate but forgot to look in Transmit folders. Nothing there now (Application Support>Transmit), but maybe next time.
Thanks
> From: George McGinley Smith <george(a)gsgd.co.uk <mailto:george@gsgd.co.uk>>
>
> You might also find that the files are still on disk somewhere (I know
> CyberDuck keeps them on disk).
>
> Try opening another file and then the file drawer and you might see it's
> still there.
>
> On Fri, Oct 31, 2014 at 2:22 AM, Allan Odgaard <mailinglist(a)textmate.org <mailto:mailinglist@textmate.org>>
> wrote:
>
>> On 31 Oct 2014, at 1:03, Greg wrote:
>>
>> I?m writing Ruby scripts for a Raspberry Pi (RPi) using TextMate
>>> v2.0-beta.1. The RPi is on my network and I?m accessing the files via
>>> Transmit (OS X FTP GUI program). From Transmit I open, edit and save the
>>> files. However I just opened the ReadMe.tm created by GitHub, did some
>>> editing, saved and closed. I hadn?t seen that I had received a notice from
>>> Transmit that I didn?t have permissions to modify the file, but the changes
>>> were gone (RPi is slow).
TextMate 2 beta 3 seems to be crashing after compiling latex code a couple
of times after upgrading to Yosemite. I've tried a few different latex
files, which worked before Yosemite. I compile two or three times, and
Textmate closes and sends a crash report:
https://api.textmate.org/crashes/259184
I'm on TeXlive 2014, but this happened before upgrading from TeXlive 2013.
Would anyone know what is going on?
> On Oct 31, 2014, at 1:37 AM, textmate-request(a)lists.macromates.com wrote:
>
> From: "Allan Odgaard" <mailinglist(a)textmate.org <mailto:mailinglist@textmate.org>>
> To: "TextMate users" <textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>>
> Subject: [TxMt] Re: Lost file when didn't have permission to write.
> Message-ID: <8589BDAC-685B-4CAD-9327-382E352F7C47(a)textmate.org <mailto:8589BDAC-685B-4CAD-9327-382E352F7C47@textmate.org>>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 31 Oct 2014, at 1:03, Greg wrote:
>
>> I?m writing Ruby scripts for a Raspberry Pi (RPi) using TextMate
>> v2.0-beta.1. The RPi is on my network and I?m accessing the files
>> via Transmit (OS X FTP GUI program). From Transmit I open, edit and
>> save the files. However I just opened the ReadMe.tm created by GitHub,
>> did some editing, saved and closed. I hadn?t seen that I had
>> received a notice from Transmit that I didn?t have permissions to
>> modify the file, but the changes were gone (RPi is slow).
>
> TextMate tells Transmit that the file has closed, it does not remove it
> (this would be done by Transmit). It also does not know, that Transmit
> is unable to upload the file.
>
> So I don?t think TextMate can really do anything better here.
Afraid of that.
Thanks for responding.
Not sure if this is the right way to reply to a digest.
I realize that this is an edge case, but here goes.
I’m writing Ruby scripts for a Raspberry Pi (RPi) using TextMate v2.0-beta.1. The RPi is on my network and I’m accessing the files via Transmit (OS X FTP GUI program). From Transmit I open, edit and save the files. However I just opened the ReadMe.tm created by GitHub, did some editing, saved and closed. I hadn’t seen that I had received a notice from Transmit that I didn’t have permissions to modify the file, but the changes were gone (RPi is slow).
The RPi is a $35 computer with GPIO pins to access devices. The “drive” is a µSD card with some variant of Linux installed.
I can change the permissions and will do, but may not remember in the future.
Greg
Hi,
For the past couple of weeks, the log window hasn't been showing a link
to the LaTeX log after compilation. It just says "Complete transcript is
in " followed by empty space where the link used to be.
Any idea what might be causing this? Thanks.
Antonio
I've seen some different behavior and I'm assuming the gutter has gotten some love lately.
Unfortunately I've just found a bug where the gutter will fill half the window, over the text, its non-fatal and only triggers on the HTML drawer being resized, so its probably pretty low priority, but its easily reproducible on my system.
It seems to me the text content must be longer than the page window, and it must be scrolled some.
Gist of the markdown used is here:
https://gist.github.com/anonymous/d1b02248ac263b868f15
An Image here:
http://i.imgur.com/YnLrVBq.png
And here's a video of the bug:
http://screencast.com/t/ib7nlyVh
Im using Command + Option + Control + P to show and Command + Option + Control + H to hide the drawer.
If the app looses focus, the bug fixes itself when it gains it back.
Thanks guys. Keep up the good work!
--
Graham P Heath
I started trying out the new gutter mark functionality. I noticed when I
add a gutter mark with a value with a single line, the popover looks
kind of odd. It looks like a graphical bug [1]
[1] https://drive.google.com/file/d/0B7UtafxGD9vELTRJbkNJVm9md0k/view
--
/Jacob Carlborg
I have also had problems with Yosemite and Latex. Besides frequent crashes upon typesetting, I also found the following bug: If I invoke Zoom, either with a key command or by clicking on the green button in the upper left corner of a window, Mission Control awakens and moves the window onto a different level. The menu bar disappears, too. I disabled Mission Control ages ago, and never use it. I disabled it again via the terminal after installing Yosemite. But this "ghost" connection remains. I can enlarge a window by manually dragging a corner without encountering this bug.
Jenny
When i open TextMate is always open a blank file called 'untitled'. Is there a way to prevent this blank file being generated when opening TextMate? Therefore can I open TextMate without without any file being opened?
Ross
In Finder to create a folder one would use ⌘⇧N, but in TextMate ⌘⌃N . Why the difference?
I’m always getting confused.
Why not using ⌘⇧N to create a folder and ⌘⌃N to create a file?
I use the Open Terminal command in the Shell Script bundle to automate LaTeXing of files. When I give this command (Control Shift O), whether Terminal.app is open or not, a tab is correctly open in Terminal in the right directory for my LaTeX file, but when the focus is back in TextMate, a Go to File (command T) has also opened. How can I avoid this? I can see the following lines in the Shell Script Open Terminal command but don't know how to prevent the opening of the Go to File window:
tell application "System Events"
tell process "Terminal" to keystroke "t" using command down
end tell
Thanks in advance for any pointer.
--gildas
Greetings,
I am running Beta3 with Yosemite and have issues with the latex bundle.
First, I have it configured to use pdflatex and open in Skim while displaying the command output in a separate window.
When I “Typeset and View” (CMD-R), it takes upwards of 5 seconds for anything to happen on a core i7 macbook pro (it initially brought up a dialog stating it was searching for Ruby 1.8, which took about 20-25 secs). Once the command output window appears, everything happens as normal very quickly with the final document appearing in Skim.
If I close Skim, close the command output window, then press CMD-R again, it still takes 4-5 seconds to begin before generating the document. If I close the command output window more than 2 two times, the next time I bring TextMate to the front, it will crash. It states that it is submitting the crash reports, but I can submit one of them to Allan directly if he desires (see main snippet below).
Anyone else have problems with the latex bundle: slow response and crashing TextMate?
Thanks,
Brian
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Application Specific Information:
Key equivalent ‘@w’.
Performing @selector(_close:) from sender _NSThemeCloseWidget 0x608000389240
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
Theres a feature in TM to automatically keep bundles updated
How does this work exactly?
Is it just for the default bundles, and theres some web service on the TM
website?
I'm wondering if I can hook into it somehow and have my third party
git-based bundles updated also
Thanks
Hello,
building latest textmate after a long time, I am hitting this error:
$ ninja TextMate
[9/36] Run test ‘/Users/dusek/build/TextMate/Frameworks/network/test_network’…
FAILED: /Users/dusek/build/TextMate/Frameworks/network/test_network && touch /Users/dusek/build/TextMate/Frameworks/network/test_network.run
test_network: 1 of 1 test failed:
/Users/dusek/Documents/Projects/Contribute/textmate/Frameworks/network/tests/t_download.cc:58: Expected (network::download(network::request_t(url, &myFilter, NULL), &error) == 200), found (0 != 200)
[9/36] Run test ‘/Users/dusek/build/TextMate/Frameworks/SoftwareUpdate/test_SoftwareUpdate’…
FAILED: /Users/dusek/build/TextMate/Frameworks/SoftwareUpdate/test_SoftwareUpdate && touch /Users/dusek/build/TextMate/Frameworks/SoftwareUpdate/test_SoftwareUpdate.run
test_SoftwareUpdate: 5 of 6 tests failed:
/Users/dusek/Documents/Projects/Contribute/textmate/Frameworks/SoftwareUpdate/tests/t_sw_update.cc:64: Expected (err == "Extracting archive."), found ("Failed to connect to localhost port 64762: Connection refused" != "Extracting archive.")
/Users/dusek/Documents/Projects/Contribute/textmate/Frameworks/SoftwareUpdate/tests/t_sw_update.cc:73: Expected (err == "Extracting archive."), found ("Failed to connect to localhost port 64762: Connection refused" != "Extracting archive.")
/Users/dusek/Documents/Projects/Contribute/textmate/Frameworks/SoftwareUpdate/tests/t_sw_update.cc:82: Expected (err == "Bad signature."), found ("Failed to connect to localhost port 64762: Connection refused" != "Bad signature.")
/Users/dusek/Documents/Projects/Contribute/textmate/Frameworks/SoftwareUpdate/tests/t_sw_update.cc:91: Expected (err == "Bad signature."), found ("Failed to connect to localhost port 64762: Connection refused" != "Bad signature.")
/Users/dusek/Documents/Projects/Contribute/textmate/Frameworks/SoftwareUpdate/tests/t_sw_update.cc:109: Expected (err == NULL_STR), found ("Failed to connect to localhost port 64762: Connection refused" != "")
ninja: build stopped: subcommand failed.
I tried ninja network/coerce and ninja SoftwareUpdate/coerce and they do skip the relevant tests, but these choices do not persist and after running ninja TextMate again, I hit the same failures.
System: Xcode 6.0.1 (i.e. 10.9 SDK) running on Yosemite DP8 (14A361c), happens even on a totally clean rebuild (git clean -xffd; git reset --hard HEAD; rm -rf ~/build/TextMate/; ./configure && ninja)
Is there please anything I can do to make TextMate compile?
Thanks,
Boris
OS X has support for auto save and reverting to older file versions since Lion.
Are there any plans to support this in TextMate?
Is it hard to implement or there’s some other reason why it’s not supported?
Maybe it’s just not on the priority list?
Thanks.
I'm currently adding gutter mark support to the RSpec bundle. It works,
but marks set by the SCM Diff Gutter bundle seem to take precedence: If
I try to set an error mark in a line thats already marked as “changed”,
it isn't visible. How could that be solved?
Stefan.
I use TextMate primarily for its Latex bundle. My pdf viewer is Skim. Everything I use is up to date, including my system and TextMate 2 revision. Something has changed in the last two weeks which slows my work flow. I normally use command-tab to switch between TM and Skim. I do this many times a day. But now, each time I return to TM, my active file is no longer the focus. I cannot even find it by cycling around with command-'. Instead, I have to go to Window in the TM menu to find it. The file seems to be in a different place altogether from the rest of my files, as everything slides to the left to make space for it. Furthermore, the menu bar becomes hidden. I do not want the menu bar to disappear. I would like to return to the way things were. It was clean and simple.
-Jenny
p.s. I apologize if I am not using the correct language.
„Recent Projects” (correctly) includes my local copy of “RSpec.tmbundle”
– but if I double click to open it TextMate tries to install the bundle
and gives me a “The bundle RSpec is already installed” dialog. (Same for
using enter instead of double clicking.)
Only a minor nuisance of course, but maybe it can be fixed easily?
Stefan.
Hi,
I’d like to have a way to disable autoclosing of overflow tabs. I know it has been asked before and explained why it works this way.
My problem is that closed tabs also loose undo-history so even if it’s easy to reopen them for me it’s not a solution. Of course I’m open to any other solution for the undo-history problem.
Thanks,
Elia
📢 twitter/elia
☕️ github/elia
It seems the "check all" and "uncheck all" menu options were removed from the
Git commit dialog.
Is there a reason for this? And could they be making a comeback at some
point?
Thanks
--
View this message in context: http://textmate.1073791.n5.nabble.com/Git-commit-dialog-Check-All-removed-t…
Sent from the textmate users mailing list archive at Nabble.com.
I'm not a programmer, but I would definitely like a simple way to control versioning. I use text mate for HTML, CSS, and basic PHP. I personally hate Apple's versions, and they have caused problems, so I disabled them in apps that had them on by default.
Being not very technical when it comes to certain things, I have never used Git, Mercurial, and don't know where to start.
If some simple versioning system was put into textmate, I would use it right away. The ability to show differences between versions would be great for things like HTML and CSS, and highlighting would make that easy. We would need the ability to control the highlight color (background color and text color) since we all use different syntax highlighting themes.
thanks
The size of bookmarks and arrows for folding blocks in the gutter seems larger to me in TM2.0-beta1. I prefer a very small size and do not know how to change that. Through gutterSettings in my theme (Mac Classic)? I would welcome any help with this.
Related: I don't see an option to toggle bookmarks and/or block-folding arrows in the menus. Is it possible via .tm_properties?
--Gildas Hamel
Hi,
Just wanted to let you know that since version 2.0-alpha.9567 the ‘File' -> 'Open Recent...' list has become pretty useless because it now keeps track of each and every file you open inside a project directory, rather than just keeping only the project directory entry in the list. Due to this older items (other projects I worked on yesterday for example) drop off the list very fast, taking the adjective ‘Recent’ a bit too literal… :-)
Best regards,
Bas
I experimentally set Textmate to show the pdf document of a LaTeX
document in TextMate's HTML window, but would now like to revert back to
having it show up in Skim. How do I go back?
Thanks,
Kyle
Hi,
I've just encountered that the TAB snippet "pl" executed at the very beginning of EACH document REGARDLESS of the set grammar inserts "#!/usr/bin/env perl".
Either the scope setting is wrong
<key>scope</key>
<string>L:dyn.caret.begin.document</string>
[What does "L:" mean?]
or the scope parsing is somehow broken.
OSX 10.9.5 - TM 2.0 beta 1
Best, Hans
I just installed the Yosemite preview and now there's a noticeable delay with I hit Cmd-T.
Now when I hit Cmd-T followed by return the app beeps, because the Go To File window hasn't fully loaded yet. I have to hit Cmd-T, pause then hit return.
This is on the same project, so nothing else has changed.
Anyone else seeing this too?
Peter
I've installed an EditorConfig plugin (
https://github.com/Mr0grog/editorconfig-textmate), but Im not entirely sure
its working.
Im assuming plugins are still supported in TM2?
Is there anything in TM which I can use to confirm its even being loaded,
or get some confirmation the plugin is actually kicking in when a file is
saved?
Thanks
I tend to work on projects by opening a textmate disk browser from
commandline, using mate <dirname>
Then when I open the first file, it doesn't have an editor tab anymore,
whereas previously it used to
When I open a 2nd file, at this point the tabset appears
Is this a bug, or an intentional change? I much prefer the old way, and to
be honest I preferred the fixed width tabs too
There's an odd behaviour with project windows disappearing when clicking the Zoom (+) button. When TM2 first opens, it reopens any preexisting windows. Then when I click on the Zoom button the window zoom shrinks and ultimately disappears. I cannot bring it back from hidden status after that.
Anyone else experience this behaviour? It only started happening recently, maybe within the last 2 or 3 builds.
Ed Wong
Hey, I don't mean to cause a stir, but for me TextMate's code folding is
generally just broken. I've spent a lot of time lately working on Jinja2
templates and it just doesn't handle them well at all and sometimes code is
removed accidentally. I've had the same thing happen with messier PHP
templates, etc.
Is there a way to just turn this off? Toggling folding levels at "All
Levels" does not address the problem, some "weirder" blocks of templates
(and other bits of messier code that I, of course, didn't write) still
remain folded weirdly.
Thanks,
--
Wells Oliver
wellsoliver(a)gmail.com
Hi,
I'm developing a new bundle for a scripting language. For the "Run" command I'd like to make usage of TM's TextMate::Executor library. Fine.
But I was confronted with two subjects for a discussion:
1) TextMate.save_if_untitled
In order to use TextMate::Executor one should execute "TextMate.save_if_untitled('foo')" in beforehand. But I'd like to allow to the user that s/he runs either the entire document or only a selection. With the current implementation this doesn't work, so I suggest the following change (adding of the first 6 lines of code and a new argument):
save_current_document.rb line: 33ff
def save_if_untitled(temp_ext='tmp', ignore_selection=true)
if not ignore_selection and not ENV['TM_SELECTED_TEXT'].nil?
ENV['TM_FILEPATH'] = nil
if not ENV['TM_SELECTED_TEXT'].nil?
ENV['TM_DISPLAYNAME'] += ' (Selection)'
end
end
return unless ENV['TM_FILEPATH'].nil?
ENV['TM_FILEPATH'] = TextMate::IO.tempfile(temp_ext).path
ENV['TM_FILENAME'] = File.basename(ENV['TM_FILEPATH'])
ENV['TM_FILE_IS_UNTITLED'] = 'true'
begin
......
This approach does't break the default behaviour. Only if the developer would like to add that functionality s/he has only set the second argument to "false". By adding "(Selection)" or whatever to TM_DISPLAYNAME the user will be notified additionally.
2) TextMate::Executor.run -> version
The interpreter I'm working with is an "hybrid". If you start it without arguments or with arguments which can't be interpreted as a file name the interpreter starts in the GUI mode, i.e. a real application with windows etc. pops up. Otherwise, if you pass as first argument a valid file path plus optional arguments, the interpreter works like Perl, Python, etc. in a command line mode.
The current TextMate::Executor.run implementation has a nice feature, you can get the current version number from the current installed interpreter or compiler as default BUT you are NOT able to avoid it.
In my case the interpreter doesn't catch these kind of querying, in other words I can set the ":version_*"-options to whatever the GUI is popping up and tells me stories about errors. Finally I ended up to write a special script which returns the version number and I call it via:
:version_args => ENV["TM_BUNDLE_SUPPORT"] + "/bin/version.praat"
but I believe one could solve this kind of problem quite easily, namely if the developer sets explicitly ":version_args => nil" the version querying won't be executed. To achieve that one has to change one single line:
executor.rb line: 99
version = (not options[:version_args].nil?) ? parse_version(args[0], options) : ''
Did I miss something?
Kind regards,
Hans
Hi,
I found a bug while argument parsing in several DIALOG2 commands:
[TM 2.0-alpha.9571]
E.g.:
"$DIALOG" x-insert --text "--Pitch"
"$DIALOG" tooltip --text "--Pitch"
if you execute theses commands (via CTRL+R or within a script) DIALOG2 will fail due to the fact that the text argument begins with two "-".
Cheers,
Hans
In Recent Projects window that’s opened by ⌘⇧O when one removes a project using ⌘⌫ a “Trash” sound is heard.
This scared the shit out of me and I immediately went to Trash to check if the actual folder was removed and not just the link in TM.
I don’t know if it’s an intended behavior but I’m pretty sure it’s a wrong one as I almost had a small heart attack :)
For some time I had been using the LaTeX bundle in Textmate 1.5.11 on an
old Mac running OS 10.6.8 with no problems. After migrating my whole
system to a new iMac running Mavericks (OS 10.9), all the keyboard
shortcuts that require Cmd-{ or Cmd-} for completion stopped working.
For example, when typing "frame" and Cmd-{ (in Beamer) I get an error
message like:
"/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/config_helper.rb:2:in
"
(and yes, it would just end abruptly there)
Completion with Esc or Tab works fine, for the shortcuts that use those,
as does toggling commenting with Cmd-\. But all of the ones with Cmd-}
or Cmd-{ produce an error message. Same thing happens on my new laptop,
likewise under Mavericks.
I've upgraded to TextMate 2, thinking that this might have something to
do with that Ruby thing I've been reading about. However, the problem
has not gone away, though the symptoms are slightly different. Now no
error message appears, but instead the "Cmd-{" and "Cmd-}" keystroke
combinations seem to be completely dead keys; nothing at all happens
when I press them.
Does anyone know what might be going on and how I can fix this? It's
having a pretty devastating effect on my productivity.
Thanks!
--Gunnar
Gunnar Ólafur Hansson
Associate Professor | Department of Linguistics
The University of British Columbia
2613 West Mall | Vancouver, BC Canada V6T 1Z4
Phone 604 822 4658 | Fax 604 822 9687
gunnar.hansson(a)ubc.ca <mailto:gunnar.hansson@ubc.ca>
www.linguistics.ubc.ca <http://www.linguistics.ubc.ca>
I would like code and markup inside certain tags to be indented. Currently, this occurs…
<style>
body { … }
</style>
Desired result:
<style>
body { … }
</style>
I’ve determined that this is because style, script, and other tags are marked as `source.*`. If I rename these language constructs to something that doesn’t start with “source”, then indentation works as expected. However, I do not want to throwaway the advantages of inheriting from source.
Does anyone know where I can begin looking to modify the `source` grammar so that code within certain tags is indented? I have not had any luck with `increaseIndentPattern` (yet).
Sorry if this is FAQ, but can you please point me to where I should go?
I'm using TextMate version 2.0-alpha.9561, but this issue persists for more
than a year and Googling didn't give me any resolution yet.
Simply, it doesn't fold/unfold for YAML file. In 'Edit Bundles', 'Settings'
doesn't include 'Folding' while other bundles such as XML does.
I guess foldingStopMarker might be wrong, but don't know if it's really
used since it doesn't show up in 'Edit Budles / Settings'.
Thanks in advance,
Toru
I'm working with a legacy codebase, some of which uses CRLF line endings,
mixed with more recent updates which use LF.
Textmate displays these as <CR>
Is there an existing bundle item which will strip the <CR> and make the
full file LF consistent?
I'd rather this was a manual action rather than Save As... or done
transparently, because it can complicate git conflicts if its not managed.
Thanks
Hi,
short question:
Is it possible for a command (Input: “Selection” - fallback to “Line” ; Output: HTML window) to replace the "Input selection" via Javascript's TextMate.system()?
TextMate.system("$DIALOG x-insert --text 'foo'", null) works but only for a selection and not for the fallback situation.
Has anyone an idea?
Thanks,
Hans
Hi,
Here's a crash I'm getting deterministically on hitting ⌘G, when the text can't be found (when no occurrence exists, or after all occurrences have been found, even with the wrap around option selected). I can reproduce the crash as follows:
- Create a new empty file, or open any existing text.
- Open the Find dialog, enter a Find string that doesn't exist in the document, close the Find dialog.
- Hit ⌘G. TextMate will always crash.
I'm more than happy to provide any additional information, and my apologies if this has already been reported.
enas
1. Is there a way to use the current selection for "Incremental Search"
(⌃S)? It would be great to have "Use Selection for Find" (⌘E) to do the
same for "Incremental Search".
2. When using the combo of "Use Selection for Find" (⌘E) and "Find All"
(⌥⌘F), the file is scrolled to the last match. If you're at the top of a
long file, having it scrolled to the bottom can be pretty disorienting. Is
there a way to reverse this to have the file scrolled to the first match?
3. Using the same combo as before, ⌘E then ⌥⌘F, is there a shortcut for
jumping through each match without deselecting the matches?
4. Is there a way to enable "Incremental Search" (⌃S) to highlight all
matches as you type, instead of just the first?
Thanks,
Ryan
Steps to reproduce:
* Set font size to larger than the default.
* Position the cursor towards the bottom of a file such that the
viewport is displaying the bottom part of that file.
* Switch to another tab.
* Switch back to the original tab.
* See that although the cursor is still in the same place, the
viewport is now displaying an earlier part of the file.
It looks as if the viewport position calculation is not taking into
account the larger font size.
Cheers, James.
Thanks for the hint.
I've experimented more than a couple of things and found the following
settings works for me, at least it's much better than broken.
Under 'Budles' => 'Edit' => 'Settings' => 'Indenting':
{ disableIndentCorrections = :true;
indentOnPaste = 'simple';
foldingStartMarker = '^\s*"""(?=.)(?!.*""")';
foldingIndentedBlockStart = '^\s*.*(:|-) ?(&\w+)?(\{[^}"'']*|\([^)"'']*)?$';
foldingIndentedBlockIgnore = '^\s*#';
}
foldingStartMarker was copied from Python setting.
foldingIndentedBlockIgnore was copied from the 'Fold on the Dotted Line'
section in http://blog.macromates.com/2012/the-layout-engine/
If I hold down ALT, I can use the mouse to select a rectangular block of
text
Just wondering if there is any way to do this using solely the keyboard?
Thanks
Hi,
When using the US-International keyboard layout, if you want to enclose selected text with quotes, single quotes or back-quotes by typing them, the originally selected text is deleted.
Those keys are used for diacritical accents by the US-International layout and require two keystrokes, the quote character itself followed by either a space to indicate you actually want the quote character itself, or a different character if you want to apply the diacritical accent on it. For instance a single quote ' followed by an a gives á. If the quote character is followed by a character that doesn't accept diacritical accents then the layout issues the two characters as they were typed, so a " followed by a w gives "w
I do most of my programming using the standard US layout but sometimes I need to switch to spanish or french.
A really insignificant bug, I know :p and I can certainly live with it, so this is mostly for information. It's good to know someone knows it's there :-)
Gualo
Textmate gets frozen for 15 seconds and then throws
```
JavaScript Warning
The command ‘ruby18 "/Users/igor1043k/Library/Application Support/TextMate/Managed/Bundles/Git.tmbundle/Support"/dispatch.rb "controller=log" "action=open_revision" "file_path=/Users/igor1043k/git/Bilbeo/Application/DataAPI/libs/models/Workspace.js" "revision=9201f304"’ has been running for 15 seconds. Would you like to stop it?
To avoid this warning, the bundle command should use the asynchronous version of TextMate.system().
```
This bug is very old and it looks like no one but me uses this feature. Maybe someone with ruby knowledge can fix this thing?
Thanks.
First, I like new commit window/sheet, very nice.
Second. it seems I cannot close the sheet with a keyboard shortcut if
there's a commit message present. Is that intentional? Note that when
amending there's always a commit message.
--
/Jacob Carlborg
A while ago, I reported a text field visibility bug in the Search & Replace window, and after updating to alpha.9565, I noticed it’s back.
When you bring up the Search & Replace window, anything you type in the search or replace text fields will not appear until you bring up the Search & Replace window again (e. g. by aborting and pressing Command + F again).
Does anyone else see that behavior?
Max
Is it possible to offer the Dockerfile bundle as part of the TextMate
config options? I think there's enough popularity (at least momentum)
behind Docker to make this worthy of being listed on the master list.
https://github.com/docker/docker/tree/master/contrib/syntax/textmate
Ken
I have a recurring problem where TM cannot detect file changes.
This is because I work on a a remote filesystem (Centos), which is mounted
via AFP.
Its actually a VM running on ESXI Server on my LAN, although a Vagrant or
VMWare setup is quite common now.
>From what I understand, TM uses kqueue or BSD's FSEvents for file
notifications (I suspect kqueue?).
Its causing me a lot of problems as I switch git branch and TM doesn't
always detect it, sometimes resulting in a file from another branch being
saved over the top.
A bit of googling shows there is libkqueue, which tries to provide a kqueue
interface on top of the underlying host OS, but its not clear to me whether
this would be suitable for a remote fs, even if it was feasible to compile
into TM.
Has anyone found a workaround to this please?
Hello,
in TM 1 the symbol list (on the right-hand side of the status bar) was sorted alphabetically, is there some way to get this back in TM 2?
Kind regards,
Tobias Jung
Hi,
I've found a document modified status issue when using "Replace all" with either project or folder Find in... dialogs
When the Replace All button is clicked all the matches are applied to the documents containing them, but the status of the affected documents (which where not modified before issuing the command) does not change to "modified" as it could be expected.
When you close the Find in... dialog it shows a dialog box with the option to save the affected documents.
The text in the dialog states that the changes will be lost if you don't save them, which is actually incorrect, or at least misleading, because if you select not to save the documents they still include the applied changes. Their "modified" status though doesn't reflect this.
To reproduce the bug just open two or more files that contain a common string, open a Find in... dialog and do a replace all of that string, check the documents' statuses.
Unless I'm missing something obvious I believe that the additional "save documents" dialog is a lot of work just to save the "⌥⌘S" I'd issue anyway in most cases, but not always.
Also, given that the Find in... dialogs aren't modal, so the user can switch back to the documents and continue working, when he gets back to the Find dialog and closes it he may not always remember the context in which he executed the replace operation. When that happens my " keep the control" attitude always forces me to select not to save them ;-)
If a builtin "save changes" option is nevertheless required then I believe that an additional "Replace All & Save" button could be more effective.
To minimize real estate usage this button could be placed immediately to the right of the Replace All button with just "& Save" as the label. Alternatively, given that in this case the "Replace & Find" action button is apparently always disabled it could simply replace it.
Thanks
Gualo
Fortran storage modifiers do not appear with colours although they have set to this in the used TextMate theme and language
grammar.
In my custom theme, I have set
{ name = 'Storage';
scope = 'storage, storage.type, storage.modifier';
settings = {
fontStyle = 'bold';
foreground = '#003366';
};
which is clearly directing syntax colour for storage, storage type, and storage modifier.
In Fortran bundle, the grammar of Modern Fortran contains information of storage modifiers
{ name = 'storage.modifier.fortran.modern';
match = '\b(?i:(kind|len|optional|recursive|pointer|allocatable|target|private|public))\b';
},
Any idea how to get syntax colors for storage modifiers in a Fortran code? I have tried but did not get success.
It'd be great if TextMate could show the full path in the title bar of the
window, and in the Window drop-down because it's kind of driving me batty,
having projects opened with similar file names.
Is this an option?
--
Wells Oliver
wellsoliver(a)gmail.com
On 03 Sep 2014, at 08:00, textmate-request(a)lists.macromates.com wrote:
> I can?t reproduce this with 2.0-alpha.9563 but there have been a lot
> of changes done to the find dialog, so I assume it has been fixed,
> otherwise let me know.
Shortly after my post, alpha.9563 was made available for download. Indeed, Search & Replace works as expected now, I think the issue has been fixed.
Thanks!
Max
Hi,
using the Perl gramar, if I have the cursor on a package name, like
Time::Mo|ment, (| is the cursor) and I try to get help, it should try to
get help on Time::Moment but right now it only uses Moment.
I had this problem with TM1 also but I fixed it by including : in the
definition of the "word". I don't know if this is still the way to do it on
TM2 or if there is a better way.
Suggestions?
Thanks,
--
Pedro Melo
@pedromelo
http://www.simplicidade.org/
xmpp:melo@simplicidade.org
mailto:melo@simplicidade.org
The search and replace window has a serious bug: the text in the search and in the replace text fields is not updated as you type, meaning whatever was in these fields from the last search is displayed properly. But if you edit the text in one of the fields, it is not updated. Functionality-wise, everything still seems to work, meaning that the text you’ve entered blindly in the search field still is what TextMate searches for and the text in the replace text field is what the search term will be replaced with.
Also, if you do a search all, the first time you press the button Search All, the Replace All button remains grayed out. Only after pressing Search All a second time does the Replace All button become active.
Does anyone else have the same problem?
Max
Hi all,
As of only very recently, I get the following drop-down error box when I
try to typeset a LaTeX document:
| Failure running "Typeset & View (PDF)".
|
| Typeset & View (PDF):4: undefined method `+' for nil:NilClass
(NoMethodError)
I think it was working until 1-2 updates ago.
Andrew
Is there a way to have TextMate remember the tab settings for a specific
file? I seem to recall that TextMate 1 did this.
I have a file with a .txt extension that I would like to always be set to
indent size 2 with soft tabs.
In my default .tm_properties file I have the a [ text.plain ] section that
sets the defaults to 8 and no soft tabs so I assume that this is why the
file is always opened with these settings. I would like to make this one
file an exception, but it is not part of any particular "project" just a
one off file.
I suppose I could add an entry in my default .tm_properties file for each
specific exception to the rule, but was hoping there might be a way that
wouldn't involve this.
Thanks.
On 15 Aug 2014, at 19:16, riki wrote:
> […] In the following code:
>
> […] I checked scope as you suggested. I got storage modifier scope
> […] but not for allocatable.
The issue is not related to your custom theme but rather the Fortran
grammar.
The Fortran - Modern grammar includes Fortran - Punchcard. This grammar
has a rule for ‘meta.specification.fortran’. In this rule, a new
context is started, and only Punchcard rules are included into that
context, this is line 69 in the (Punchcard) grammar which is:
patterns = ( { include = '$self'; } );
If we change this to instead include the Modern grammar then it works:
patterns = ( { include = 'source.fortran.modern'; } );
There are other places where Punchcard includes Modern (it actually
includes $self + Modern, but here $self is redundant since Modern
includes Punchcard).
I do not know about this Modern vs Punchcard, it seems that if Punchcard
is made to include Modern (as it already does) the two grammars should
just be combined into a single one, which would make parsing more
trapsnarent.
Just upgraded to TextMate 2 (have not used TextMate in a while, glad to be back :-)
I’m also starting to try and due Rails development in TextMate. The Rails Bundle is dated, and so is only partially usable. I would like to start “fixing” that in my spare time. One thing, though, that would be nice, is the ability to edit Ruby code in the Bundle Editor. The files show up, but I cannot click on them. The only way I can edit is “mate …” from the command line the files I want to modify.
Not a big deal, but would be nice.
Is there any way to show the SVN new/modified/deleted lines on the editor, just like the Modific plugin (https://github.com/gornostal/Modific)?
I mean, some kind of line badges/colors to highlight the changes.
Thanks,
Rubén
Hello Everyone,
I've been participating in a thread on GitHub
(https://github.com/deplorableword/textmate-solarized/issues/52) that
has identified the selection of text in the Solarized Dark theme as a
real issue. It seems that implementation of
selectionForeground/selectionBackground may be one solution for the
frustrating issue. I wanted to see if there was a wider desire for a
solution to this problem here, and perhaps if there was more support for
the implementation of selectionForeground/selectionBackground.
Thanks,
Alex
I found a strange behavior that I believe is a bug. I am using 2.0-alpha.9503 on OS 10.9.1.
First I redefined the keyboard shortcut for "Comment Line" in the system Preferences. This command is from the "Source" bundle and appears as alternative shortcut to the default ⌘/ in the bundle menu (I used ⌘- in order to avoid the rather clumsy command for german keyboard layout).
Right after that both shortcuts work fine. After closing and reopening TextMate, only the default shortcut ⌘/ works, the new shortcut is now ignored.
When I select Bundles -> Source -> Comments I can see that the commands are still set correctly. After that, both shortcuts work again, until I close TextMate and open it again: the new shortcut is ignored until the menu selecting Bundles -> Source -> Comments is opened up, after that it works till closing TextMate again.
I was struggling some time with this issue, without solution. Now after testing for writing this bug report, at least there is a simple workaround. But maybe it can be resolved. I also tried changing the Bundle "Source" itself, but that didn't do the trick either.
Martin
I've found this great BlurMate plugin today for TM2.
https://github.com/cliffrowley/blurmate
It works great, I just wonder since it's just a few lines of code,
why background blurring is not included in TM2 already?
I always loved the blur in Terminal and thought that TM2 is not capable of it.
Found the plugin just by accident.
Some way to set the blur using "defaults" for example would be nice.
On 15 Aug 2014, at 18:37, riki wrote:
> Please find herewith my custom theme.
> […]
I do not see any issue here.
I saved your theme and switched to it. Then changed langauge to Fortran
— Modern and entered ‘recursive’. This keyword is shown in bold
and with a slight color change (rather subtle though).
The rule in my Fortran grammar does btw not include as many keywords as
yours. Did you edit the grammar? Did you verify that you get the storage
scope (using ⌃⇧P)?
In a .tex file, typing sec + tab prints code for a section header and label. Very handily, the label for the section header syncs with the actual section header the first time the section is typed. However, thereafter, if the section header changes, the label doesn't change. Is it possible to always have the label change whenever the section header changes?
Many thanks
Ross
Hi,
We’re writing a booking (currently LaTeX) and I’d like to be able to use TM themes in the code listings.
Any solutions for that?
We’re using LaTeX packages “listings” + “color” to do the syntax highlighting. It allows statements such as this:
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
Pretty basic… Anyone seen anything better (pygments?) Or even a way to convert themes to this style?
Thank you, and best wishes,
tim
TextMate has keyboard shortcuts to show the file browser
(option+control+command+D) and switch focus to the file browser
(option+command+tab), but I cannot find a keyboard shortcut to open a file
from the file browser. The only way I can find for opening a file from from
the file browser is by clicking on the file with the trackpad. Is there a
keyboard shortcut available to open files from the file browser?
Cheers
Ross
Hi,
I came across with a rendering bug,
to reproduce it copy the following two lines and paste them into a TM document:
587 3 402 ̃ wa:w.4 NULL NULL NULL NULL
591 3 402 kha:ŋ.4 kha:w.4 NULL NULL NULL NULL
On my machine OSX 10.9.1 TM 2.0-alpha.9503 these lines are rendered as shown in that picture:
The "problem" seems to be that TM is not able to get rid of a TAB {utf8: 09} (and I believe this's true for each CONTROL character) followed by a combing diacritic - in that case a combining tilde {utf8: CC 83}. The actual data in the TM window are correct, you can e.g. look for TAB characters. If you remove the combining tilde TM renders the text correctly.
I'm aware that this is actually my fault since a combining character shouldn't appear after a control character and "more actually" I'm glad that TM had this bug thus I could find my fault ;) but I think TM should do it like other Mac apps e.g. TextEdit.
For safety reasons I attached a UTF-8 text file containing both lines.
Cheers, Hans
I want to modify the regex in the PHP language bundle item that applies the meta.embedded.sql scope to a string. I did this successfully in TM1, but with TM2 I opted to start with a fresh set of bundles and have been having trouble adding this functionality back in.
The PHP code continuing a string of SQL is this:
$db->query("
UPDATE table
SET foo = bar
WHERE foo = '" . function($variable) . "'
");
I tried many variations of the following, added just below the existing meta.embedded.sql rule:
{ name = 'meta.embedded.sql';
begin = '(\$db)->(query)\((")';
end = '(\3)\);';
beginCaptures = {
0 = { name = 'variable.other.php'; };
1 = { name = 'meta.function-call.object.php'; };
2 = { name = 'string.quoted.double.php'; };
};
endCaptures = {
0 = { name = 'string.quoted.double.php'; };
};
contentName = 'source.sql';
patterns = ( { include = 'source.sql'; } );
},
I've even tried simplifying it with only the 'name,' 'begin,' and 'end' and the scope isn't applied where I'd expect it. I can't see why.
I also found this rule (here is only a portion), which I thought I would modify:
name = 'string.quoted.double.sql.php';
begin = '"\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\b)';
I tried changing this to:
begin = '"[\s\n\r]*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\b)';
so that it would match the code example above, but the regex doesn't seem to be matching over multiple lines; it only works if the quote mark is on the same line as the UPDATE.
Can somebody please show me how to do this (with whichever of the above rules is more better)?
Once I get a working rule, I would like to add this to a custom bundle that includes the default PHP grammar and adds this modification to it so that I have a stock PHP bundle that is unmodified. Does anybody have an example of an extended PHP bundle so I can see how this should be done?
Thanks thanks,
Quinn
I¹ve upgraded to Yosemite beta and cannot save files. If I try to save a
file, a box pops that says the following:
Failure running ³Strip trailing whitespace on save². interpreter failed: No
such file or directory
What can I do to resolve this?
Thanks
Ross
I’m currently updating the RSpec bundle’s readme. The most important
(and also most complicated) part deals with how to run RSpec examples
from TextMate using the correct versions of Ruby and RSpec.
I’d love to get feedback on this. Here is the current version (work in
progress, the relevant section is the one titled “Supports RSpec 1, 2
and 3“):
https://github.com/rspec/rspec-tmbundle/blob/update-readme/README.md
(Topics like “How do I get TextMate to use rbenv for running my Ruby
scripts” have popped up several times on this list, so this may be
interesting even for people not using RSpec.)
Feel free to add any suggestions or corrections to the pull request at
https://github.com/rspec/rspec-tmbundle/pull/80
Thanks!
Stefan
Today I tried to install a bundle via Preferences → Bundles, but it
didn’t work: When I click on the checkbox the statusbar says “Installing
…” for some moments before changing to “Installed …“, but the checkbox
is unchecked (and the bundle has indeed not been installed).
Tried everything from
https://github.com/textmate/textmate/wiki/Reverting-To-Defaults, but
didn’t seem to make a difference. Tested in alpha.9551 and alpha.9553.
Any ideas?
Stefan
I attempted to build the MacPorts textmate2 port, originally for 2.0-alpha.9537, and got an "unknown signee" error during configure when it attempted to download the bundles.
I reported it on MacPorts Trac: https://trac.macports.org/ticket/43466. That ticket contains the steps I took and also now contains what I did to get the build to work.
My problem seems very similar to
http://lists.macromates.com/textmate/2013-February/035922.htmlhttp://textmate.1073791.n5.nabble.com/Unknown-signee-errors-td25943.html
and
http://permalink.gmane.org/gmane.os.apple.macports.tickets/68860
I think that there might be a couple of issues in key_chain.cc.
In file key_chain.cc, the line
if(err = SecItemImport(data, NULL, &type, &format, 0, ¶ms, NULL, &items) == errSecSuccess)
causes variable err to be set to the result of the logical expression, whereas the intent is to set it to the return value of SecItemImport. Needs either parentheses or splitting into an assignment and an if(). I chose the latter as in the diff output below.
Also, the documentation for SecItemImport (at https://developer.apple.com/library/mac/documentation/security/Reference/ke…) shows that the sequence of parameters &type and &format is wrong. I reversed them.
These changes didn't fix the problem but at least showed that SecItemImport was returning errSecAddinLoadFailed. On a hunch, I changed both &type and &format to pass the "unknown" enum and that fixed the problem.
I've included below the diff of the resulting changes, with a long comment added explaining that I didn't investigate whether both &type and &format needed to be changed or just one. If I had to guess, I'd say it was &format.
I have no idea why this was a problem for me and not for others.
The diff:
*** /tmp/key_chain.cc 2014-06-12 15:55:45.000000000 +1000
--- /tmp/key_chain.cc_orig 2014-06-12 15:55:45.000000000 +1000
***************
*** 31,56 ****
bool res = false;
SecItemImportExportKeyParameters params = { .keyUsage = NULL, .keyAttributes = NULL };
! /*****************************************************
! /* Specifying the expected Item Type and Format
! * caused SecItemImport to return
! * errSecAddinLoadFailed.
! * I didn't check whether it was due to both being
! * specified or just one. Setting to the Unknown enum
! * worked.
! * Original code on next two comment lines.
! /* SecExternalItemType type = kSecItemTypePublicKey;
! /* SecExternalFormat format = kSecFormatPEMSequence;
! * Updated code with both vars set to unknown on next
! * two lines. */
! SecExternalFormat format = kSecFormatUnknown;
! SecExternalItemType type = kSecItemTypeUnknown;
CFDataRef data = CFDataCreateWithBytesNoCopy(NULL, (const UInt8*)_key_data.data(), _key_data.size(), kCFAllocatorNull);
CFArrayRef items = NULL;
OSStatus err;
! err = SecItemImport(data, NULL, &format, &type, 0, ¶ms, NULL, &items);
! if(err == errSecSuccess)
{
_sec_key = (SecKeyRef)CFArrayGetValueAtIndex(items, 0);
if(_sec_key != NULL)
--- 31,43 ----
bool res = false;
SecItemImportExportKeyParameters params = { .keyUsage = NULL, .keyAttributes = NULL };
! SecExternalItemType type = kSecItemTypePublicKey;
! SecExternalFormat format = kSecFormatPEMSequence;
CFDataRef data = CFDataCreateWithBytesNoCopy(NULL, (const UInt8*)_key_data.data(), _key_data.size(), kCFAllocatorNull);
CFArrayRef items = NULL;
OSStatus err;
! if(err = SecItemImport(data, NULL, &type, &format, 0, ¶ms, NULL, &items) == errSecSuccess)
{
_sec_key = (SecKeyRef)CFArrayGetValueAtIndex(items, 0);
if(_sec_key != NULL)
regards - David
I was looking through the fork's of the original Handlebars and bundle
(which doesn't work very well anymore in 2.x land). Anyway, found this:
https://github.com/savetheclocktower/Handlebars.tmbundle
which on appears to be written in a very thoughtful way and geared
specifically for 2.x but unfortunately it doesn't work perfectly for me and
I'm too busy at the moment to dig into it. Does anyone else have any
bundles that work well for Handlebars?
ken
p.s. the problem I'm having is that while block commands like #each are
being highlighted correctly the more basic {{foobar}} variable
substitutions are NOT being highlighted.
Is anybody else having trouble using the default "Replace Conflict With Older Text" and "Replace Conflict With Newer Text" macros? They don't seem to work for me.
If I try to record a new macro, it doesn't remember the 'replace' value. That is, it works until I run some other search/replace command then my new macro for resolving conflicts just runs the last-used replace value. The macro I recorded contains this:
(
{ argument = {
action = 'findNext';
findString = '(?m:<<<<<<<[^\n]*?\n(.*?\n?)=======\n(.*?\n?)>>>>>>>([^\n]*)\n)';
ignoreCase = :true;
regularExpression = :true;
wrapAround = :true;
};
command = 'findWithOptions:';
},
{ command = 'replaceAllInSelection:'; },
)
See, no replace value. So I added a 'replaceString' item manually:
(
{ argument = {
action = 'findNext';
findString = '(?m:<<<<<<<[^\n]*?\n(.*?\n?)=======\n(.*?\n?)>>>>>>>([^\n]*)\n)';
ignoreCase = :true;
regularExpression = :true;
wrapAround = :true;
replaceAllScope = 'document';
replaceString = '$1';
};
command = 'findWithOptions:';
},
{ command = 'replaceAllInSelection:'; },
)
But it doesn't use this value, only the last one used in the find dialog box.
Any ideas?
--
Quinn Comendant
Strangecode, LLC
http://www.strangecode.com/
+1 530 624 4410 mobile
+1 530 636 2633 office
@qc and @strangecode
I often paste some crap from some terrible MS Word document into Textmate
and then into something else. Don't inquire as to the unholy nature of my
burdens such that I'm doing this work, just be thankful it's not you.
Is there a bundle that will clean up those awful fancy double quotes,
ellipses, etc, that Word likes to use into plaintext versions? It'd be
great.
Thanks all! Long live TextMate.
--
Wells Oliver
wellsoliver(a)gmail.com
The markdown-redcarpet bundle [1] supports fenced code blocks with
syntax highlighing, for example for shell scripts. The grammar pattern is:
fenced_block_shell = {
name = 'markup.raw.block.markdown.fenced';
begin = '(^|\G)([`]{3})[ ]*(?:bash|shell|sh)$';
end = '(^|\G)([`]{3})(\n|\z)';
patterns = ( { include = 'source.shell'; } );
};
This works fine, unless if have a block like:
```shell
dd bs=1m if=foo.img of=/dev/disk1
```
Here, “if” starts the scope “meta.scope.if-block.shell”, and this scope
extends beyond the ``` the end of the fenced code block, resulting in
incorrect highlighting for the rest of the markdown file.
Is there a way to include grammars in a way making sure the included
grammar does not extend beyond the “end marker” in any case?
And: Could the rule for if-blocks in the shellscript bundle be more
strict (matching only '^\s*if\b' for example)? Is this rule needed at
all? (I haven’t found any other references to the scope “if-block” in
the shellscript bundle.)
Stefan
[1]: https://github.com/streeter/markdown-redcarpet.tmbundle
I’m now one of the maintainers of RSpec’s textmate bundle. We just fixed
a bunch of issues, so if in the past you experienced problems with the
bundle please try again with the latest version.
Feel free to submit any issues you encounter at
https://github.com/rspec/rspec-tmbundle/issues/
I’m also thinking of removing support for RSpec 1 – if you’re still
using the bundle with RSpec 1 please chime in at
https://github.com/rspec/rspec-tmbundle/issues/78
Stefan
My bundles have been broken since the change to specify ruby18 ("Point to ruby 1.8 shim”, e.g. https://github.com/textmate/source.tmbundle/commit/8b80da05 . I understand the PATH changes, but it’s not a path issue — there is no “ruby18” executable on my system at all. I DO have Ruby 1.8.7 installed (with rbenv), just no `ruby18`.
Wondering if my system is an outlier, or if others have experienced this? What is the “shim” that ruby18 should be pointing to?
Thanks,
David
I'm using the TextMate version 2.0-alpha.9551 build and wanted to make sure
I had the latest version of JSLintMate. I deleted the existing bundle from
within Textmate and then downloaded and installed the latest bundle by
double clicking the bundle file/package. That seems to work in the sense
that it pops a dialog to install the bundle and the bundle file is then
locatable in:
Application Support → Avian → Pristine Copy → Bundles
The problem is it doesn't show up in the bundle menu. I've tried a restart
but that didn't help. Any idea why I'm not getting the bundle registered?
Ken
Hello,
I'd like to know if there's a setting to free File Browser and HTML panes
width limits relative to editor's space.
*The use case:*
I often find myself with narrow window in which I hide those panes by
default and just bring up them at need (e.g. to create a new file or read a
rendered Markdown)
Thanks,
Elia
☁ @elia <http://twitter.com/elia> ✎ elia(a)schito.me
Is it possible to make a word a clickable hyperlink within .R, .txt, .tex
files? For example Author2014 within a .txt file would allow me to click to
a PDF stored on my mac called Author2014.
I¹m aware of the hyperlinks bundle, but this doesn¹t do what I need. I need
clickable hyperlinks within my code files.
Thanks
Ross
I'm in kind of a bad situation, and I lost a few days of work (no fault of
TextMate). I did most of my work with TextMate. Are there any caches for
edits I might look at to maybe recover some of them?
Thanks
Hi all
I want to count the number of citations contained within a .Rnw file and
show the result as a tool tip.
My .Rnw file looks like this:
\section{Methods}
<<plot_mtcars>>=
plot(mtcars)
@
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat \citet{Author2014, AuthorEtAl2014}. \citet{AuthorAuthor2013} duis
aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
in culpa qui officia deserunt mollit anim id est laborum.
\section{Results}
<<plot_iris>>=
plot(iris)
@
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. \citet*{Author1998} ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit
anim id est laborum \citep*{Somebody2014}.
Note that citation keys will be in one of these 3 formats: Author2014,
AuthorAuthor2014 or AuthorEtAl2014.
I would like to count the total number of citations within the .Rnw file and
the number in each section. In above example there are 3 citations in the
Methods section and 2 citations in the Results section.
Is this possible?
Thanks
Ross
From my - admittedly somewhat limited - experience with bundle grammars
I got the feeling that it’s often very hard to improve or fix a grammar
without accidentally breaking some other parts of it.
Has anyone already experimented with regression tests for bundle grammars?
I think to make this possible it would be necessary to somehow access
the “scope structure” of a parsed file, maybe yielding a data structure
like this:
[
{ start: 0, end: 123, scope: "source.sass" },
{ start: 7, end: 12, scope: "string.quoted.double.sass" },
…
]
Then a grammar could include both a “test source file” and its
known-good “scope structure”. After changing the grammar one could
(semi-)automatically regenerate the scope structure data and compare it
to the original to (hopefully) catch any regressions.
Any thoughts?
Stefan
If I do a project wide search in a project which contains static
libraries TM2 will search in the static library as well. I don't see how
that's very useful, could TM2 skip those by default?
--
/Jacob Carlborg
I would like to use Open Favorite more frequently but there’s a couple of things that always throws me off and makes it less productive for me. Not sure if they’re bugs or by design.
Say I have 4 favourites named F1, F2, F3, F4
I usually have multiple working windows open with the root folder being one of these favourites. So say I have 2 opened with favourites F1 and F2 and files opened in each.
Now I would like to open a third window with the root folder being F1 because there’s an unrelated feature or bug that doesn’t have anything to do with the files being edited in the first F1 project. (i.e. I would like to segregate and keep track of the files being worked on by using 2 different windows).
So I Shift-Cmd-O to bring up the Open Favorite popup and select one of the favourites and this is what happens:
In the latest nightly build, a new window opens and fills with a selection of open files from F1. This is actually new behaviour that I see when writing up this email. Could be it’s opening up some previously cached version of a F1 window?
In previous builds what happens is that the original F1 comes to the front.
What I was hoping is that a new window opens with the root folder being the favourite I selected.
Ed Wong
Hi,
I am using TextMate 2. I mad some changes in some bundles to suit my
individual needs, but these changes are all gone once bundles are
auto-updated. Is there a way to keep local changes when a bundle is
updating itself?
Thanks
--
--
Sent from my mobile. Ignore the typos unless they're funny.
Hi,
when using the awesome **rmate** to remote-edit some files I ran into
the problem that I had to use sudo for writing into a file.
ubuntu@ubuntu:/etc/apache2$ rmate httpd.conf
File httpd.conf is not writable! Use -f/--force to open anyway.
ubuntu@ubuntu:/etc/apache2$ sudo rmate httpd.conf
ubuntu@ubuntu:/etc/apache2$ /usr/local/bin/rmate:157:in
`initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
from /usr/local/bin/rmate:157:in `new'
from /usr/local/bin/rmate:157:in `connect_and_handle_cmds'
from /usr/local/bin/rmate:207:in `block in <main>'
from /usr/local/bin/rmate:206:in `fork'
from /usr/local/bin/rmate:206:in `<main>'
The documentation mentions a sudo-replacement *rvmsudo* which keeps the
environment. But this seems not to part of the standard repositories,
which makes it nearly impossible to install it on a clients machine.
Any idea?
Kind regards, Ingo
--
Ingo Lantschner
Hi there,
years back there was this nice flickr bundle for Textmate. Playing again the TM, is there something similar still actively maintained. I just found some old dead links.
Yours
Gil
hi,
i'm new on textmate and i need somme help please.
i instal fortran bundle with this method:
/cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/textmate/fortran.tmbundle.git/
and now i have this error:
//tmp/temp_textmate.n6H8uJ: line 20: gfortran: command not found/
i use textmate 1.5.11 with MAC OS X 10.9.3.
i did a similarly thing with gnuplot and it works.
Thank you for you help.
--
View this message in context: http://textmate.1073791.n5.nabble.com/Installation-fortran-bundle-tp27951.h…
Sent from the textmate users mailing list archive at Nabble.com.
I have a Windows share mounted via smb:// and TextMate won't save any
file I edit there. The error message is "Atomic save: Resource busy".
It's Windows 7 running inside a virtual machine (VirtualBox) and
Textmate is at 2.0-alpha.9547.
Is there anything I can do about this?
Regards,
Matthias
After 8 years using TextMate 1.x and a couple of years of reading about TextMate 2,
a new Mac and a move to Mavericks (from Lion) have prompted me to migrate my work to TextMate 2
Upgrades always bring surprises and shock to my workflow --- I have a couple of queries about
bundle management in TextMate 2
(1) In some standard bundles in TextMate 1, I moved items from Excluded Items
to the Menu Structure --- for example in the LaTeX bundle, I moved BibDesk Completion
to the Menu Structure and added the Key Equivalent of Ctrl+Cmd+B
--- in the TextMate 2 Bundles Editor there does not appear to be a way to
move an item from Other Actions to Menu Actions nor to edit the groups, separators or move items around
--- have I missed something obvious here ?
(2) I have a number of personal bundles for snippets in HTML, LaTeX, Haskell and Text
--- using the guidance in https://github.com/textmate/textmate/wiki/FAQ
I placed symbolic links to my bundle files in ~/Library/Application Support/Avian/Bundles
--- to activate them I had to delete ~/Library/Caches/com.macromates.TextMate/BundlesIndex.binary
(there was no BundleIndex.plist)
--- I there no way in the interface to force a reloading of bundles ? (I use symbolic links to my bundles so that any edits
get automatically synchronised to my other machines)
Apologies if this has been covered elsewhere --- I have done the usual searches.
Many thanks for an excellent editing environment
Phil
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Phil Molyneux E: molyneux(a)pobox.com
T: 020 8549 0045
M: 07885 426 323
71 Deacon Road, Kingston upon Thames KT2 6LS, UK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi,
I'm having a problem with my GitHub bundle. Even though there are changes,
I'm getting a persistent message, "No changes to commit within the current
scope. (Try selecting the root folder in the project drawer?)" when I try
to commit.
>From the command line, if I do 'git status', the file is shown has having
modifications. In the project drawer, SCM status, the file is shown has
having Uncommitted Changes. (I followed the advice here:
https://github.com/textmate/git.tmbundle/issues/11)
I suspect there is something minor going on, but I'm at a loss. Any advice
is greatly appreciated.
Thanks!
kelle
--
Kelle Cruz, PhD — http://kellecruz.com/
Lets say I have a file on desktop called called test.csv¹. I discovered by
accident that if I drag test.csv¹ to an R file, this code is pasted into
the R file:
read.csv(file = "../../../../Desktop/test.csv", header = TRUE,
stringsAsFactors = FALSE)
But if the file is a .xls file, only this get pasted into the R file:
/Users/rossahmed/Desktop/test.xls
How can I add a command that, when I drag a .xls file into an R file, this
get pasted in:
read.xls("/Users/rossahmed/Desktop/test.xls")
I've been using TextMate for a couple years now and I just learned about
rmate. It is a true lifesaver, because now I can stop using Emacs in ssh
terminal and start using a normal editor.
This feature is worth bragging about.
If I have a project open, and create a new file (CMD+N), I notice when I
try to save it, it doesn't default to the projects directory. Is there a
way to adjust this?
I know you can create a new file with SHIFT+CMD+N, but that forces you to
give it a name there and then, which is rarely what I want.
Im wondering if its somehow related to projectDirectory in .tm_properties?
Most of mine are set to "$CWD" just because every example I saw uses that.
If this is the cause, Is there a way to set project directory to the same
location as .tm_properties, without having to provide an absolute path?
The todo bundle triggers this message:
Failure running "Insert TODO List".
env: ruby18: No such file or directory
When I run ruby -v, I get
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
I'm on TextMate 9547 and Os 10.9.3
Do I switch paths to get to ruby 1.8?
Thanks for any advice.
--Gildas
The last couple of days I've run into a problem with the Duplicate Line
command. Ctrl-Shift-D
When I press the key sequence I get a dialog that says:
Failure running "Duplicate Line".
env: ruby18: No such line or directory
I use this command a lot and have not noticed problems in the past. I
don't recall making an bundle changes recently.
Hey,
a quick bugreport: sometimes the border of the file browsers gets lost:
http://pbrd.co/1lGgOcr
After hiding and showing it again the border reappears. Unfortunately I haven’t found anything to reproduce this yet – Textmate stays open in background almost all the time for me and sometimes the border is missing after getting it back from it’s hidden state.
Regards
Jannes
There's some very old iPhone.tmbundle bundle w/o any description, I presume it is Objective-C extensions for iOS development, moreover there's no Git repo for this bundle, so we should either:
(1) remove it, because it is really confusing
(2) rename it to "Objective-C iOS" and describe it as "Objective-C iOS SDK support" or string like that.
Regards,
--
Adam
Hi all.
I’m back on a topic we discussed several months ago, here in the list.
The problem was about how to run a Python Script which involves some user interaction:
***
print “Hello world.”
age = input (“How are old, dear world?”)
print “Ohh,”, age, “ so aged?”
***
The script ends with an ErrorCode 1, EOF.
Is there something to do to fix, or, is this issue somehow within the todo list?
Thanks.
Gabriel.
—
Namasté!
Sent from my iMac27. (Libero)
And a second report, this time with detailed steps to reproduce it.
The rectangle which represents the Incremental search (Ctrl + S) highlight is rendered wrong when the a line with highlight gets yanked.
1) Create a new document with the following content:
DEFGH
E
F
Almost everything works but with tabs/indentation it’s much more visible.
2) Press Ctrl + S, search for „DEFG“
3) See
[DEF]GH
E
F
http://pbrd.co/1lGhTRu
4) Press Keyboard Shortcut for Bundles->Text->Delete Line (Cmd + K for me). It looks like it behaves correct when selecting the command with the mouse from the menu.
5) See
[ E]
[ F]
http://pbrd.co/1lGhT43
Regards
Jannes
thanks!
Am 19.06.14 14:00, schrieb textmate-request(a)lists.macromates.com:
> 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: Uppercasing swallows characters (Matt Neuburg)
> 2. Re: Uppercasing swallows characters (Allan Odgaard)
> 3. Re: How to use a subversion repository with version texmate
> version 2.0-alpha.9547 (Allan Odgaard)
> 4. Re: Auto-highlight all occurrences of selected word
> (Allan Odgaard)
> 5. Executing Python scripts. (Gabriele Battaglia)
> 6. Re: Executing Python scripts. (Allan Odgaard)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 18 Jun 2014 08:10:56 -0700
> From: Matt Neuburg <matt(a)tidbits.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Uppercasing swallows characters
> Message-ID: <68C4486C-F666-45B2-BB92-CDA15A2E784E(a)tidbits.com>
> Content-Type: text/plain; charset=utf-8
>
>
> On Jun 18, 2014, at 4:41 AM, Andreas U Schmidhauser <au(a)schmidhauser.us> wrote:
>
>> But the important thing is that it's not limited to iota subscripts. Take the following two words from the text quoted in the earlier post:
>> ?????? ?????
>>
>> Capitalized:
>> ??????? ????
> Actually I get is even more of a mess: the Y and T are superimposed upon one another. 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: 2
> Date: Wed, 18 Jun 2014 21:15:02 +0200
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Uppercasing swallows characters
> Message-ID: <A4EAC2C5-A964-418F-85F4-BF7CF98B044F(a)textmate.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 17 Jun 2014, at 11:20, Andreas U Schmidhauser wrote:
>
>> In certain situations, TextMate (on my machine at any rate) deletes
>> one or more characters at the end of a selected text if one uppercases
>> that text [?]
> Thanks for the report. It will be fixed in next build.
>
> FYI the bug was introduced ~2 months ago during refactoring.
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 18 Jun 2014 21:51:18 +0200
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: How to use a subversion repository with version
> texmate version 2.0-alpha.9547
> Message-ID: <E7B3F29D-0E95-479F-B441-4A646F83643F(a)textmate.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 16 Jun 2014, at 7:55, Reto M?ller wrote:
>
>> Since I updated to the new version of textmate I am not able to
>> connect to my subversion repository. If I navigate to Bundles -
>> Subversion - Check Out I get the following error [?]
> I have pushed a fix for this:
> https://github.com/textmate/subversion.tmbundle/commit/4d5e480fcaf022a7493d…
>
> Your bundle should update shortly, but until then, if you have a file
> open when you select Subversion ? Checkout then it should not fail.
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 18 Jun 2014 21:53:08 +0200
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Auto-highlight all occurrences of selected word
> Message-ID: <C12C0CE1-BD99-4AA7-ADA1-EFC8960BCE40(a)textmate.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 3 Jun 2014, at 4:20, Kelvin Wu wrote:
>
>> TextMate 1 or 2, is there a way to auto-highlight all occurrences of
>> selected word? [?]
>>
>> With TextMate I have to additionally hit Opt+Cmd+F [?]
>>
>> Ctr-S not really meets what I need.
> Beyond the options you already listed, there is no way to highlight all
> occurances of current selection.
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 18 Jun 2014 21:57:37 +0200
> From: Gabriele Battaglia <iz4apu(a)libero.it>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Executing Python scripts.
> Message-ID: <9407BB9D-4260-46EE-90C0-6EF20A602AA4(a)libero.it>
> Content-Type: text/plain; charset="windows-1252"
>
> Hi all.
>
> I?m back on a topic we discussed several months ago, here in the list.
>
> The problem was about how to run a Python Script which involves some user interaction:
>
> ***
> print ?Hello world.?
> age = input (?How are old, dear world??)
> print ?Ohh,?, age, ? so aged??
> ***
>
> The script ends with an ErrorCode 1, EOF.
>
> Is there something to do to fix, or, is this issue somehow within the todo list?
>
> Thanks.
>
> Gabriel.
> ?
> Namast?!
> Sent from my iMac27. (Libero)
>
>
Hi all,
Since I updated to the new version of textmate I am not able to connect to my subversion repository. If I navigate to Bundles - Subversion - Check Out I get the following error
/Users/rmueller/Library/Application Support/TextMate/Managed/Bundles/Subversion.tmbundle/Support/bin/checkout.rb:9:in `dirname': can't convert nil into String (TypeError)
from /Users/rmueller/Library/Application Support/TextMate/Managed/Bundles/Subversion.tmbundle/Support/bin/checkout.rb:9
In the version before a window was shown to enter the path to the repository.
Where can I place the repository string to checkout my files from the repository?
Thanks for any hint.
Cheers,
Reto
Hello
In certain situations, TextMate (on my machine at any rate) deletes one or more characters at the end of a selected text if one uppercases that text. This happens e.g. with certain glyphs and also with certain ‘diacritics’ such as the Greek iota subscript.
Three illustrations:
(i) außer
AUSSE
(ii) ϲκοπῇϲ
ϹΚΟΠΗ͂ (i.e., back in lower case, ϲκοπῆ)
(iii) ὅταν τι τῶν ἐμῶν δι᾽ ἐρωτήϲεωϲ ϲκοπῇϲ, ἐὰν μὲν ὁ ἐρωτηθεὶϲ οἷάπερ ἂν ἐγὼ ἀποκριναίμην ἀποκρινάμενοϲ ϲφάλληται, ἐγὼ ἐλέγχομαι, εἰ δὲ ἀλλοῖα, αὐτὸϲ ὁ ἐρωτηθείϲ.
ὍΤΑΝ ΤΙ ΤΩ͂Ν ἘΜΩ͂Ν ΔΙ᾽ ἘΡΩΤΉϹΕΩϹ ϹΚΟΠΗ͂ΙϹ, ἘᾺΝ ΜῈΝ Ὁ ἘΡΩΤΗΘΕῚϹ ΟἿΆΠΕΡ ἊΝ ἘΓῺ ἈΠΟΚΡΙΝΑΊΜΗΝ ἈΠΟΚΡΙΝΆΜΕΝΟϹ ϹΦΆΛΛΗΤΑΙ, ἘΓῺ ἘΛΈΓΧΟΜΑΙ, ΕἸ ΔῈ ἈΛΛΟΙ͂Α, ΑΥ̓ΤῸϹ Ὁ ἘΡΩΤ
(i.e. in lower case: ὅταν τι τῶν ἐμῶν δι᾽ ἐρωτήϲεωϲ ϲκοπῆιϲ, ἐὰν μὲν ὁ ἐρωτηθεὶϲ οἷάπερ ἂν ἐγὼ ἀποκριναίμην ἀποκρινάμενοϲ ϲφάλληται, ἐγὼ ἐλέγχομαι, εἰ δὲ ἀλλοῖα, αὐτὸϲ ὁ ἐρωτ)
Other apps such as TextEdit show the expected behaviour i.e. nothing is deleted.
My current workaround is to select a number of additional empty lines following the text selected, so that the deletions apply to that part only.
Encoding (in Preferences) is UTF-8.
Anyone any ideas?
Best,
Andreas
OS 10.9.3, TM 2.0-alpha.9547
(Apologies for opening a new thread - I intended to read the list only online but now I see that if I do that I cannot hit reply…)
Thanks, Matt. So I suppose that means it doesn't happen only on my machine.
> Though I notice it isn't round-tripping correctly either, e.g. the iotas are not being re-subscripted... I suppose that's a limitation of Unicode itself, though.
Correct - that's actually (for me) the intended behaviour since it allows me easily to convert subscript iotas to adscript ones.
But the important thing is that it's not limited to iota subscripts. Take the following two words from the text quoted in the earlier post:
ἀλλοῖα αὐτὸϲ
Capitalized:
ἈΛΛΟΙ͂Α ΑΥ̓Τ
Decapitalized:
ἀλλοῖα αὐτ
These are not isolated cases. For example, any text from the Thesaurus Linguae Graecae (www.tlg.uci.edu/demoinfo/demoauthors.php) will do.
Take Matt's credo, as it appears on the website:
Πάντες ἄνθρωποι τοῦ εἰδέναι ὀρέγονται φύσει. σημεῖον δ’ (21) ἡ τῶν αἰσθήσεων ἀγάπησις· καὶ γὰρ χωρὶς τῆς χρείας ἀγαπῶνται δι’ αὑτάς, καὶ μάλιστα τῶν ἄλλων ἡ διὰ τῶν ὀμμάτων. οὐ γὰρ μόνον ἵνα πράττωμεν ἀλλὰ καὶ μηθὲν μέλλοντες πράττειν τὸ ὁρᾶν αἱρούμεθα ἀντὶ πάντων ὡς εἰπεῖν (25) τῶν ἄλλων.
Capitalization, followed by decapitalization, results in a net loss of two words and one period - and there were no iota subscripts:
πάντες ἄνθρωποι τοῦ εἰδέναι ὀρέγονται φύσει. σημεῖον δ’ (21) ἡ τῶν αἰσθήσεων ἀγάπησις· καὶ γὰρ χωρὶς τῆς χρείας ἀγαπῶνται δι’ αὑτάς, καὶ μάλιστα τῶν ἄλλων ἡ διὰ τῶν ὀμμάτων. οὐ γὰρ μόνον ἵνα πράττωμεν ἀλλὰ καὶ μηθὲν μέλλοντες πράττειν τὸ ὁρᾶν αἱρούμεθα ἀντὶ πάντων ὡς εἰπεῖν (25)
Hi,
since I’m running several scripts/programs/etc. simultaneously with TM2, today I came across with an issue. I started two scripts with the same name “build.sh” but stored in different folders. After a period of time I realised that I missed something in one of the “build.sh” scripts and I wanted to stop it but I couldn’t see which of the window I should close since the headers of both windows were identical.
Would it be possible to add an hover effect or a new line mentioning the path or … to the runner window?
Thanks in advance,
Hans
Hi,
often I’m dealing with very large text files (~ 1GB) which are listed in my working folder. It can happen by accident that I click at such a big file and TM2 will become unresponsive for a while.
Would it be possible to at least add an alert or warning - which can cancel the opening process - if TM should open a big file (let’s say larger than 150MB - since TM2 works better with larger files than TM1.5)? Another idea would be to allow the cancellation of such a opening process by pressing CMD+W or whatever.
In addition to that:
I had opened some files and by accident I opened such a 1.4GB file. Ok, I killed TM2, and I reopen it while pressing SHIFT to avoid restoring the opened files. Fine, but then if I choose to open my working folder again, TM2 remembers all opened files (which is really cool) but it tries again to load this big file. My only workflow I’m aware of was to rename that big file temporarily after killing TM2.
Kind regards,
Hans
> On 12 Jun 2014, at 8:57, David Hislop wrote:
>
> > These changes didn't fix the problem but at least showed that
> > SecItemImport was returning errSecAddinLoadFailed. On a hunch, I
> > changed both &type and &format to pass the "unknown" enum and that
> > fixed the problem.
> >
> > […] I have no idea why this was a problem for me and not for others.
>
> What OS are you using?
>
> And you’re correct about the errors you found, I’ll get that fixed,
> thanks!
OS X 10.8.5
regards - David
Hi,
A long while ago Michael Sheets presented some designs for new TM2 header (tabs). However long time passed and there is no advancements in this subject. I wish to ask whether can we expect some activity, especially when Yosemite is commit and TM2 tab bar looks really bad in 10.10.
Cheers,
--
Adam
Dear all, I'm having the following error after running. Does anyone know how I can work around it?
sh: plutil: command not found Traceback (most recent call last): File "/Users/daniel/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/texMate.py", line 479, in tmPrefs = tmprefs.Preferences() File "/Users/daniel/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/tmprefs.py", line 51, in __init__ self.prefs.update(self.readTMPrefs()) File "/Users/daniel/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/tmprefs.py", line 78, in readTMPrefs plist_str = open('/tmp/tmltxprefs1.plist').read() IOError: [Errno 2] No such file or directory: '/tmp/tmltxprefs1.plist'
Dear all,
First of all, thank you to the developers for the hard work they put on
Textmate! I have been using it since 2009, when you had to pay for it, and
since then I have convinced about 5 people to use it.
Say that I am editing a C/C++ file, with plenty of nested loops and "if"
conditions. Is there a command to show an outline of these scopes and at
which level the caret is in such hierarchy? For example, if the caret is
inside this nested loop:
void func (int N) {
if (N<10) {
for (int i=0, i<N, i++) {
for (int j=0, j<N, j++) {
for (int k=0, k<N, k++) {
printf ("%g\n", i*j*k);
<caret is here>
}
}
}
}
} // end of func
I know that I can find the function name in the status bar, or by pressing
cmd+shift+t, but I am not aware about a command that would tell me that I am
in the *k-j-i* loop of the *if(N<10)* branch. This would be very handy as
some codes make heavy use of nested loops.
Thank you for your attention,
Guido
--
View this message in context: http://textmate.1073791.n5.nabble.com/Show-current-scope-block-but-not-Text…
Sent from the textmate users mailing list archive at Nabble.com.
Thank you Gildas.
1. Regarding templates: I'm not sure the following method is helpful, but I
> keep LaTeX templates in ~/Library/Application Support/LaTeX/Templates
> and in TextMate simply save a new document as file.tex, type temp + tab to
> choose one of my templates.
Re #1: This was what I did for years. The temp + tab function no longer
works. I get the message ``Failure running ``Latex Template'' LaTeX
Template:11:in `to_plist': no implicit conversion of Array into String
(TypeError) from LaTeX Template:11:in `<main>' ''
Previous text mate list entries indicate that the template function is
discontinued and that snippets should be used instead.
2. For snippets: when you are in "Edit Bundle", hit Command N, choose
> snippet, enable the item on the right, name it what you want, scope
> selector is text.tex.latex, choose key or tab trigger, write your template
> in the window at the bottom, save.
Re #2: Thank you! This is exactly what I want.
It still seems that I cannot delete old snippets or move them to other
areas of the bundle?
On Thu, Jun 5, 2014 at 8:00 AM, <textmate-request(a)lists.macromates.com>
wrote:
> 1. Regarding templates: I'm not sure the following method is helpful, but
> I keep LaTeX templates in ~/Library/Application Support/LaTeX/Templates
> and in TextMate simply save a new document as file.tex, type temp + tab to
> choose one of my templates.
>
> 2. For snippets: when you are in "Edit Bundle", hit Command N, choose
> snippet, enable the item on the right, name it what you want, scope
> selector is text.tex.latex, choose key or tab trigger, write your template
> in the window at the bottom, save.
>
> --Gildas
>
I want to further add, how do I delete old snippets/commands/bundles as
well. This does not seem possible within the TextMate Edit Bundle item.
E
On Wed, Jun 4, 2014 at 2:47 PM, <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. How to Create a Snippet to Replace a LaTeX Template (E. Enriquez)
>
>
> ---------- Forwarded message ----------
> From: "E. Enriquez" <enriquez.elaine(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Cc:
> Date: Wed, 4 Jun 2014 14:47:07 -0400
> Subject: [TxMt] How to Create a Snippet to Replace a LaTeX Template
> Hello,
>
> I'm suffering without the ability to immediately insert a LaTeX template.
> I understand the recommended practice is to create a snippet (which, in
> this case, will be quite large). Could someone point me to the instructions
> to or provide me with the instructions to create snippets for LaTeX in TM2?
> Further, it is not clear how to enter a snippet into the document.
>
> I have got to the "Edit Bundle" menu item but there is nothing like the
> screenshot from the online TextMate (
> http://manual.macromates.com/en/snippets). I've attached what I see to
> this email.
>
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
Hello,
I'm suffering without the ability to immediately insert a LaTeX template. I
understand the recommended practice is to create a snippet (which, in this
case, will be quite large). Could someone point me to the instructions to
or provide me with the instructions to create snippets for LaTeX in TM2?
Further, it is not clear how to enter a snippet into the document.
I have got to the "Edit Bundle" menu item but there is nothing like the
screenshot from the online TextMate (
http://manual.macromates.com/en/snippets). I've attached what I see to this
email.
All of a sudden Textmate Version 1.5.11 (1635) stopped compiling LaTeX files. Comes back with the error:
javac: invalid flag: /Users/wgibson/Mexico/TMP.tex
I have been using it successfully under Mavericks for quite a few months and then…nothing.
Tried TM 2 and the same thing…won’t compile
Failure running typeset and view…
Typeset & View (PDF):4: undefined method `+' for nil:NilClass (NoMethodError)
So I am trying the new MacTeX 2013 distribution…
Any thoughts?
Many thanks. BG
Hi All,
I just signed up, and I don't see a way to search the list.
I'm guessing that y'all prefer not to answer the same questions over and
over and over ...
So there must be some way to search the list ...
Right?
Thanks,
Douglas
[I posted this on IRC but my internet connection is intermittent, so I probably missed any replies…]
I'm having trouble adding a "wordCharacters" bundle setting, as per https://github.com/textmate/textmate/wiki/FAQ#how-do-i-set-which-characters…
I created a settings bundle item in the Source bundle containing "{ wordCharacters = '\w_.-'; }" and applied a sope selector of "text" but it's not taking effect. I have a document containing "… [test] …" and when I hit ^W while the cursor is in the word test the selection is made including the brackets (but shouldn't be). =(
Quinn
I just stumbled on the text-based Taskpaper project management protocol
http://www.macdrifter.com/2014/01/deconstructing-my-omnifocus-dependency.ht…
and belatedly realized there's been a related Textmate bundle ("Tasks"?) for some time. A little Googling found this bundle by Jess Martin that upgrades the original by Henrik Nyh:
https://github.com/jessmartin/taskpaper-tmbundle
Anybody had experience with using this as task manager? Are there other bundles out there I should be looking at?
Thanks!
jon
On Twitter as @jonippolito
According to the manual:
Closing Tabs
A common problem is being left with too many open tabs. In an attempt to counter that, TextMate will automatically close tabs that hasn’t been used in a while, when the tab bar overflows.
Is there any way of disabling this behaviour via a .tm_properties or defaults command?
Ed
Hi list
I'm running the newest TM2 on OS X 10.9 and can't get the shortcut for Show
Invisibles (alt+cmd+i) to work. When pressing the combination textmate
actives filter through command (cmd+i) instead.
Other alt+cmd shortcuts like show/hide linenumbers (alt+cmd+l) works fine
and is not activated by pressing cmd+... alone.
Can there be some form of collision so that cmd+i is checked before
alt+cmd+i and so one shortcut effectively blocks the other?
--
Ask Holme - 28 76 98 87
Turn wrap column to 80 (or 40). Make sure you disable word wrap, then click
Show Wrap Column.
All is well when you're typing-- the line does not wrap, though you see the
wrap column. However, comment a line automatically (command /) and the line
will be soft-wrapped. Uncommenting the line using command / will then
revert to not wrapping.
I'm writing python, so I'm not sure if it's a bundle issue, but it seemed
odd to me. Not a big deal by any means.
--
Wells Oliver
wellsoliver(a)gmail.com
I like to develop with soft wrap disabled, which works fine for PHP code
But for comments beginning with //, it still soft wraps them anyway
Is there a way to disable this?
Example:
<?php
// this is a very long string which shouldnt wrap this is a very long
string which shouldnt wrap this is a very long string which shouldnt wrap
this is a very long string which shouldnt wrap
$foo = "this is a very long string which shouldnt wrap this is a very long
string which shouldnt wrap this is a very long string which shouldnt wrap
this is a very long string which shouldnt wrap";
?>
One of the most attractive features of TM is the Go To File (CMD+T) feature.
1) But I wonder, is there any way to tell TM that you do not want to demote
files in the list, which are already open?
Example, if tabset.js is already open, and I CMD+T to navigate to
tabset.js, but it has been demoted right to the bottom.
This makes sense if you only have a few tabs opens, but mostly I do not
care if its already open, I just want to jump to it regardless (but end up
accidentally opening some other file instead).
2) I also notice that the list shows the directory each file is in, but
this is only shown after the full list has been populated. Is there a
reason for this? In this example I have lots of gearman scripts (worker.php
and client.php), and so to open one I have to wait until it shows all the
directory paths before I can see which one I actually want.
Hello all,
In the last update to TextMate I saw two project scopes were added
(Jekyll and Vagrant). What are the chances of making the logic behind
these scopes be exposed to bundles so that a bundle could set a scope on a
project? If this is already available and I've just missed it, please let
me know where to find more information.
--
Take care,
Jeremy Whitlock (@whitlockjc on Twitter)
http://www.thoughtspark.org