How to select a sentence?

Do
DogDutyAscetic
Posts: 8
Joined: Wed Dec 17, 2008 5:51 am

Wed Jan 07, 2009 1:59 am Post

How do you select a sentence? Select a word by double clicking. Select a paragraph by triple clicking. In MS Word it's always been control+click to select a sentence. What is the magic way to select a sentence in Scrivener? I know it's using the TextEdit engine. So, this is probably determined through that.

User avatar
AmberV
Posts: 24307
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Wed Jan 07, 2009 2:08 am Post

Yes, though to be more technically accurate, both TextEdit and Scrivener use the same engine. TextEdit is just a simple demo of what can be done with the engine. Anyway, this question has come up before and I don't think there is any way to do this. There are a lot of keyboard shortcuts available for doing various things, but sentence level selection is not one of them.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

dr
druid
Posts: 1721
Joined: Fri Jun 22, 2007 2:29 pm
Platform: Mac, Win + Linux
Location: Princeton NJ, USA

Wed Jan 07, 2009 2:38 am Post

Know what I could use more than sentence selection?
The "twiddle" function that appears in BBedit.
It handles transposed letters but also words.
Like when I write bare old and I'd rather have old bare.

Apparently it's possible to add to Cocoa apps via a keybinding:

http://www.macosxhints.com/article.php? ... 8&query=dd
Last edited by druid on Wed Jan 07, 2009 2:44 am, edited 1 time in total.

Do
DogDutyAscetic
Posts: 8
Joined: Wed Dec 17, 2008 5:51 am

Wed Jan 07, 2009 2:44 am Post

Words and paragraphs are given a means of quick selection, but sentences are not? Is this true? Most puzzling if this is indeed the case. Is there any workaround other than dragging with a mouse?

User avatar
AmberV
Posts: 24307
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Wed Jan 07, 2009 3:19 am Post

Well, when you consider the problem from a technical angle it makes more sense. What defines a sentence is much less rigidly defined than what defines a word, or a paragraph. Those are easy, just look for something surrounded by spaces (and maybe ignore stuff like underscores), or something surrounded by newlines. Sentences on the other hand can be foiled by abbreviations, line numbering conventions, just to name two.

I don't use the mouse by the way. I just use Shift-Option-Arrow keys to quickly jump from word to word while selecting. I'll sometimes use Cmd-Shift-Arrow if the end of the sentence is closer to the end of the line than my current position. Might seem complicated, but it is all habit by now.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

User avatar
Wock
Posts: 2540
Joined: Fri Aug 24, 2007 8:09 pm
Location: Gallatin, Tennessee (USA)
Contact:

Wed Jan 07, 2009 9:39 pm Post

option-left arrow move left one word
option-right arrow move right one word
option-delete back delete one word
shift-option-delete foward delete one word
option-up arrow move up one paragraph
option-down arrow move down one paragraph
control-left arrow move to start of current line
command-left arrow
control-right arrow move to end of current line
command-right arrow
shift + any of the above extend selection by appropriate amount
click then drag select text
double-click then drag select text, wrapping to word ends
triple-click then drag select text, wrapping to paragraph ends
shift-select text with mouse add to selection (contiguous)
command-select text with mouse add to selection (non-contiguous)
option-drag select rectangular area (non-contiguous)
command-option-drag add rectangular area to selection
drag selection move text
option-drag selection copy text
control-A move to start of current paragraph
control-B move left one character
control-D forwards delete
control-E move to end of current paragraph
control-F move right one character
control-H delete
control-K delete remainder of current paragraph
control-N move down one line
control-O insert new line after cursor
control-P move up one line
control-T transpose (swap) two surrounding character
control-V move to end, then left one character
control-Y paste text previously deleted with control-K

those are the Cocoa Text shortcuts. Selecting a sentence would have to be a custom coding thing I would assume since it is not part of the actual Apple Engine used....
The wheel is turning but the hamster is still dead.

User avatar
p a t r i c k
Posts: 61
Joined: Fri Nov 14, 2008 11:30 am
Location: Brighton & Hove, UK
Contact:

Thu Jan 08, 2009 1:59 am Post

Hi

The classic OS version of Nisus Writer would select a sentence with three clicks. Four clicks would select a para. I've just checked the current version of Nisus Writer for OSX and I see that it won't do this. It is the same I think as all the other current word-processors and text editors. The classic OS version of Nisus Writer used its own unique and extremely powerful text engine however the OS X version of Nisus Writer uses the engine behind TextEdit.

Sentence selection can be set up in BBEdit and in TextSoap, indeed the user can set it up in anything with sufficient scripting capability and powerful RegEx. However in neither BBEdit nor TextSoap can it be made something that is initiated by multiple clicks, to my knowledge anyway.

I suspect that in word-processing terms Keith may want to keep things much like they are in the other applications at present.

th
thewolfgang
Posts: 151
Joined: Thu Oct 25, 2007 7:23 pm

Thu Jan 08, 2009 2:00 am Post

Is there a way to select a string of entire words using just the mouse and a function key, without having to worry about being precise about where you stop and start?

User avatar
xiamenese
Posts: 4412
Joined: Mon Jan 29, 2007 1:32 am
Platform: Mac
Location: London or Exeter, UK.

Thu Jan 08, 2009 2:08 am Post

thewolfgang wrote:Is there a way to select a string of entire words using just the mouse and a function key, without having to worry about being precise about where you stop and start?

Double click the first word in the string, hold down the shift key, move the mouse to the last word in the string and click!

:)

Mark
The Scrivenato sometimes known as Mr X.
iMac 27" (late 2015) 10.15.6, 24GB RAM, 512GB SSID
MBP17" (late 2011) 10.13.6, 16GB RAM, 2TB SSID
2017 iPad, iPadOS 14, 128GB, Apple Pencil
Scrivener, Scapple, Nisus Writer Pro, Bookends …

th
thewolfgang
Posts: 151
Joined: Thu Oct 25, 2007 7:23 pm

Thu Jan 08, 2009 4:37 am Post

Very cool - thanks Mark!

Laurence

Ta
Talisman39
Posts: 5
Joined: Wed Jan 07, 2009 6:59 pm

Thu Jan 08, 2009 6:44 pm Post

And an alternative to Mark's approach is to double click and word and then simply drag with the mouse. Whole words will then be selected rather than individual characters, making it easier to grab a sentence or whatever. Same thing works for paragraphs - triple click and drag.

th
thewolfgang
Posts: 151
Joined: Thu Oct 25, 2007 7:23 pm

Thu Jan 08, 2009 7:30 pm Post

Also very excellent -

Laurence

Do
DogDutyAscetic
Posts: 8
Joined: Wed Dec 17, 2008 5:51 am

Thu Jan 08, 2009 11:53 pm Post

I know everyone hates MS Word, but you can hold down the control key and click anywhere in a sentence to select it. In fact, you can just drag into the next sentence and it will highlight that one too. Seems so odd that there's no sentence selection in OS X applications. The sentence is the the main structural element for writers. To not be able to select sentences with utmost ease is an odd oversight. I'm just looking at the new Pages and it seems there's no way of selecting sentences there either. Sometimes I find Apple puzzling.