Is there a Mac OS X sh command for quoting text (to
Internet-standard)? I'm writing a "Save to URL" command to complement
the Twiki bundle "Open URL" command I described in a previous email,
and I need to convert all the "special characters" in the entire
document to the '%xx' quoted form so I can append it to a URL.
If there is no such thing, I'll write a Python script instead.
--
Daryl
Dear all,
I don't know whether this is a common feature request. But
nevertheless, ... ;)
(I also found nothing about it in this mailing list.)
Would it be possible to add the following feature to the normal Find
dialog?
Given a string "c( 1, 22, 333 , 4444 )" in a line.
I want to highlight item by item ('1', '22', etc.) by using the
normal Find function (APPLE+G).
To do so I would write for instance this regexp:
[,\(] {0,}(.*?) {0,}[,\)]
The problem is that the current Find function doesn't select only the
content of the regexp group '(.*?)', it also highlight the commas and
brackets.
My suggestion would be to change the Find function in such a way,
that if there is at least one group specified by '()' within the
regexp it only highlight the content of it. It also could select all
occurrences of it at ones, if desired.
This could be chosen with two options within the Find dialog, e.g.
'Match only group' and 'Match all groups'.
I don't know whether it would cost much effort to do this, but I'd
find it quite useful to have such a option.
Of course, one coud write a separate command using 'Insert Snippet'
but 'Insert Snippet' has some limitations.
Or is there an other way to do it with TM?
Thanks,
Hans
So somewhere along the line did the default markdown bundle loose the
snippets for links? The menu structure seems to be in the bundle
editor, but both the bundle in the app package and in svn seems to of
lost the links? Am I going bonkers here?
Sam D
Hi there,
Just playing with the R console mode. It's nice, so thanks to the writers!
I often want to edit collections (R lists), and it would be nice if tabbing
inside a collection had the action of moving the selection to the next item
in the list.
Would it be possible to write a command (to hard for a snippet, I think)
which takes over the tab key when there is no snippet bound to it, and
detects if the user is in a c(x,y,..) structure, and selects the next item
in the list?
So if the cursor is in item 1 like this
> a = c(1|11,222)
Then hitting tab would move to highlight all of item 2. Preferably hitting
shift-tab would move to the next previous item, or in front of the
collection if already at the head.
PS: One thing that keeps me in R, is the useful last command function (like
in tcsh, hitting "up" and "down" scrolls through a command history,
replacing the current line. Is it possible to scan the doc, make a list of
lines, and just give this as a drop down menu when up is hit hit?
Not that I want to dredge up a poo flinging flame fest, but did anyone
else see that with the release of Panic's Coda [0] they are using the
"Subetha Engine" [1]? Interesting that they've licensed the
collabrative part of the editor.
Dan
[0] http://www.panic.com/coda/
[1] http://codingmonkeys.de/subethaengine/
How do I limit the range of a find and replace operation? Say I want to
change "foo" to "bar" within one function in a file, but *only* in that
function. Is there a way to limit the find/replace operation to the
current scope, block, or selection?
I can kinda-sorta do it in an awkward way by pulling up the find dialog,
filling in my find and replace strings, closing the dialog, selecting the
region, and doing "replace all in selection". What I'd like is to have
the find dialog only operate on an already-selected region. Can this be
done?
Also, "replace all in selection" acts in an unexpected way with
column-based selections. Say I have the following text:
Lorem ipsum dolor Lorem ipsum dolor
Lorem ipsum dolor Lorem ipsum dolor
Lorem ipsum dolor Lorem ipsum dolor
|---|
I want to change the first "ipsum" to "foo" in every line, so I make a
column selection (marked by the |---| region) and do
replace-all-in-selection. I end up with:
Lorem foo dolor Lorem ipsum dolor
Lorem foo dolor Lorem ipsum dolor
Lorem foo dolor Lorem ipsum dolor
The five-letter word got replaced with three letters and two extra spaces.
If I do the opposite and replace "ipsum" with a longer word, the rest of
the lines are shifted rightward accordingly. My expectation is that when
I'm replacing with a shorter word the lines get shifted leftward to fill
the gap, not that my replacement string will be padded with spaces. Bug
or feature?
--
Steve King, <steve(a)narbat.com>
Ahoy Allan,
Any chance of making the bundle editor able to be ordered above all
the other panels and windows and everything?
I'm always keeping the "Go to Symbol" open and whenever I open the
Bundle Editor I have to close it.
That's starting to get old.
I know you aren't making changes to the 1.x branch anymore but,
could there be some secret nib change or defaults setting that I
could change to make that work?
thanks
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
I just got a new Mac and now I can't figure out how I got ^H working
before. Right now it works for standard Ruby stuff, but it can't find
stuff in gems, in particular Rails stuff. However I can use ri from
the terminal to find Rails rdoc just fine. Is there something else I
need to do? I'm sure it's something basic.
Thanks!
Steve
if the last line of the javascript file is a comment with no new line
at the end of it, then the command "Minimize current file" produces
this output:
/Library/Application Support/TextMate/Bundles/JavaScript
Tools.tmbundle/Support/bin/jsmin.rb:73:in `<=': comparison of Fixnum
with String failed (ArgumentError)
from /Library/Application Support/TextMate/Bundles/JavaScript
Tools.tmbundle/Support/bin/jsmin.rb:73:in `mynext'
from /Library/Application Support/TextMate/Bundles/JavaScript
Tools.tmbundle/Support/bin/jsmin.rb:122:in `action'
from /Library/Application Support/TextMate/Bundles/JavaScript
Tools.tmbundle/Support/bin/jsmin.rb:168:in `jsmin'
from /Library/Application Support/TextMate/Bundles/JavaScript
Tools.tmbundle/Support/bin/jsmin.rb:197
The problem lying in the mynext method of jsmin.rb, where the while
(true) loop checking for the end of the comment doesn't check for
EOF. should be a simple fix.