On Jul 28, 2011 at 04:13 PM +0100, John Delacour wrote:
What do these motions achieve? Something that cannot be achieved with
scripts/keystrokes in BBEdit. I doubt it, but am always ready to be
The ability to delete or copy a sentence or word or paragraph or the
inner contents of a set of delimiters with a couple of keystrokes. You
can also perform the action around the above structure, i.e. including
the quotes or spaces around the word. It works like this: putting your
cursor on a sentence and typing 'das' will cut the full sentence
including the spaces around it. If you have arguments in parenthesis
that you want to replace, typing 'di(' will remove the contents, but not
the parenthesis. The command breakdown is as follows:
- d - delete
- a or i - around or in. includes the spaces around the
word/sentence/block or delimiters if 'a' is used, or does not include
them if 'i' is used
- w,s,p,',",(,etc. - the block of text to operate on. sentence,
paragraph, word, quoted text, text in parenthesis, brackets, etc.
Of course, the whole thing about a modal editor like Vim is that you
don't have to do all kinds of crazy key combos like command-control-key
to run your command. I'm sure you could write a ton of applescripts to
semi simulate the 'in' and 'around' motions that act on logical text
units, but the long and short of it is that if it's not a modal editor,
you can't string simple single letter commands together like you can in
a modal editor.
Sorry for a rushed explanation. If you have more questions I might be
able to respond more thoroughly and coherently later tonight.
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>