Hello everyone,
I'm new to many things here -- textmate, regular expressions, etc,
etc. so I hope this isn't too far off topic for this list (apologies
in advance if it is). I'm trying to figure out how to do something
using find/replace. I have a long bibliography that was sent to me
as a single line of text. I'm trying to find a quick and elegant way
to insert line breaks between each of the individual citations.
Here is an example of the text I'm working with:
> Baddeley, A. "Working Memory." Science. 255: 556-559,1992. Baecker,
> R. J. Grudin, W. Buxton, et al. Readings in Human-Computer
> Interaction: Toward the Year 2000. USA: Morgan Kaufinann
> Publishers, Inc. 1995. Bevirt, B. "Designing Hypertext Navigation
> Tools.'' Digital Information Group, National Center for Atmospheric
> Research web site: < http://www. schlucar/dig/bra.inb/design/
> navtool.D.html>. 1996. Chandler, P. and J. Sweller. ''Cognitive
> Load Theory and the Format of Instruction." Cognition and
> Instruction. 8: 293-332, 1991. Chandler, P. and J. Sweller. 'The
> Split Attention Effect as a Factor in the Design of Instruction."
> British Journal of Education Psychology. 62: 233-246, 1992.
I'm just figuring out how to use regular expressions (sorry, not a
programmer) and I've been able to successfully select the endpoint of
each of the citations using:
\d{4}\.\s
My problem comes about when I try to replace the space represented by
\s with a carriage return. I'm not sure how to structure this in the
find/replace dialogue. Is anyone willing to point me in the right
direction here? I'm hoping to end up with something that looks like:
> Baddeley, A. "Working Memory." Science. 255: 556-559,1992. Baecker,
> R. J. Grudin, W. Buxton, et al. Readings in Human-Computer
> Interaction: Toward the Year 2000. USA: Morgan Kaufinann
> Publishers, Inc. 1995.
>
> Bevirt, B. "Designing Hypertext Navigation Tools.'' Digital
> Information Group, National Center for Atmospheric Research web
> site: < http://www. schlucar/dig/bra.inb/design/navtool.D.html>. 1996.
>
> Chandler, P. and J. Sweller. ''Cognitive Load Theory and the Format
> of Instruction." Cognition and Instruction. 8: 293-332, 1991.
> Chandler, P. and J. Sweller. 'The Split Attention Effect as a
> Factor in the Design of Instruction." British Journal of Education
> Psychology. 62: 233-246, 1992.
Thank you for any help you can offer.
--
j.
Is there any way to access the commands (API?) that are listed when
you build and then saving a Macro?
I think accessing them should make the programmer live really easier.
For example, you could send to TM, from an scripting program, a
sequence of such commands and TM could easily interpretate them.
-----
Juan
juanfc(a)lcc.uma.es
Hi
You're a thief! ;)
OK I did what you said and made some improvements to the Bundle. I
like to share what i did with others! Maybe you want to implant it in
the Bundle.
But in the meanwhile i have some problems here:
1. There are to main Forum Softwares out there which the people (and
me) use most. The one is vBulletin and the other is phpBB. These two
have slight differents in their way reacting to BBCode. For example
Lists and Links.
vBulletin writes a link like this:
[URL=http://www.examplesite.com]Please visit this great Page![/URL]
phpBB writes:
[URL="http://www.examplesite.com"]Please visit this great Page![/URL]
(with quoation marks for the URL)
How do i get rid of this problem? Or do i have to expand the Bulletin
Board Language for this to work?
2. This one is quite easy i hope ;) How do i make a submenu from
quite similar items? Like all the List items i want to appear in the
List submenu and so on.
Thanks for your help!
Zettt
Is there some way for telling TM to highlight the HTML "braces" like
<p> Lorem ipsum dolor sit amet, consectetur </p>
etc.
I think the way should be highlightPairs in Grammar, but why nobody
haven't do it yet?
(is it possible?)
Fellow textmaters,
I have been playing with the blogging bundle now for quite some time
and would love to see the following additions:
(I currently am at SVN revision 6430, my blogs are running Wordpress)
1. As I am writing un multiple blogs, I would really appreciate if
e.g. the category tab trigger would read my current post to see if
there is already a selection of blogs instead of asking me which blog
to post to, at the very least use a popup instead of the dialog (as
is done with the blog tab trigger)
2. Same goes for selecting categories… would there be a way to cache
the list of categories, maybe?
3. Is there a way to post drafts? Or, if not, is it possible to post
at future dates, so I can prepare and upload my next few posts
without needing to do copy/paste?
4. Is the common "linking" code progressing? e.g. if you insert a
link to a recent blog post (btw a great addition!) it inserts a HTML
link, but I am writing in markdown – so it is quite a pain in my eyes
to see the full clutter of <a> tags…
5. I very much love the "insert google lucky hit" functionality!
6. Image upload is soo cool!
Thanks again to all who are contributing to all those cool bundles!
Dan
Sorry if this is an obvious noob question, I've searched the help and
all the menus and can't find what I'm looking for, so I thought I'd seek
help here.
I'm in the process of "switching to a Mac" and currently weaning myself
off Topstyle Pro and so far I'm loving TextMate's workflow, one thing I
miss though is a way to move the cursor from the start of a section to
the end, e.g Topstyle allows for placing the cursor in a starting tag
pressing ctrl+M and the cursor will jump to the end tag (and back again
if you press ctrl+m again), it does this for {} in PHP as well and I'm a
bit lost without it, as it's the quickest way for finding those badly
nested tags...
I'm aware I can collapse and expand folds, but it's not quite the same.
is there a quick way to create this functionality?
or is it there already and I missed it?
Thanks in advance
;)
--
Join me: http://wiki.workalone.co.uk/
Thank me: http://www.amazon.co.uk/gp/registry/1VK42TQL7VD2F
Engage me: http://www.boldfish.co.uk/portfolio/
I can adjust my print font size by shrinking my display font size way
down, but is there another way? Or can you specify a default font size
delta between display and print?
Thanks
pth
I use the CTags bundle frequently. Thank you to its creator!! But I'm
having an issue now. When I press the key sequence to look up a symbol, the
file with the symbol is loaded in a new window, not as a tab in my project.
Why is this? It just started doing this recently.
Thanks,
Ernest
--
View this message in context: http://www.nabble.com/CTags-bundle-issue-tf3184686.html#a8839142
Sent from the textmate users mailing list archive at Nabble.com.
Hey folks. I'm testing out the tm demo for using with rails, but i'm
having a weird behavior on the Rails -> Go To file keystroke (command
option shift down).
It seems to work when I have a view file open, and will send me back
to a controller. But if I have a controller open, it does not
respond... could somebody sanity check me? (by not respond, I mean
the context window does not pop up).
Thanks,
Chris