How to backspace over only one space?

65 views
Skip to first unread message

Walter Ian Kaye

unread,
Jun 14, 2017, 2:09:23 PM6/14/17
to BBEdit-Talk
If I have a line with several spaces, and I hit backspace at the end
of the line, it erases the entire line instead of only the last space.

How do I adjust BBEdit to only delete one space?

I looked through the prefs but couldn't find any relevant setting.

Fletcher Sandbeck

unread,
Jun 14, 2017, 3:43:31 PM6/14/17
to bbe...@googlegroups.com
It seems like BBEdit will delete spaces in multiples defined by the "Tab width" setting in the Editor Defaults section of the Preferences. If you set this to 1 then it will backspace like you want.

[fletcher]
> --
> This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email
> "sup...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
> To post to this group, send email to bbe...@googlegroups.com.
> Visit this group at https://groups.google.com/group/bbedit.

Rich Siegel

unread,
Jun 14, 2017, 3:47:08 PM6/14/17
to bbe...@googlegroups.com
On Wednesday, June 14, 2017, Fletcher Sandbeck <flet...@cumuli.com>
wrote:

> It seems like BBEdit will delete spaces in multiples defined by the
> "Tab width" setting in the Editor Defaults section of the Preferences.
> If you set this to 1 then it will backspace like you want.

You will also hate yourself in the morning.

R.
--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

Rich Siegel

unread,
Jun 14, 2017, 3:47:19 PM6/14/17
to bbe...@googlegroups.com
There is an expert preference; open the Expert Preferences help
and search for "backspace from the insertion point".

Enjoy,

Fletcher Sandbeck

unread,
Jun 14, 2017, 4:02:05 PM6/14/17
to bbe...@googlegroups.com
Ugh, yeah, you're right. I was focused on the problem at hand, but changing that setting like that would be pretty irritating in the long run.

[fletcher]

Todd Wachob

unread,
Jun 14, 2017, 6:05:19 PM6/14/17
to bbe...@googlegroups.com

Thank you!

F. Alfredo Rego

unread,
Jun 16, 2017, 10:13:57 AM6/16/17
to bbe...@googlegroups.com
Rich,

You wrote generically: “There is AN expert preference”. Can you please provide the SPECIFIC name and location of this preference, or the specific “defaults write” command?

My reason for asking: Searching the Expert Preferences help for “backspace from the insertion point” doesn’t lead anywhere (at least here in the mountains, under BBEdit version 11.6.7 (397078) ).

Thanks.

Alfredo

Kerri Hicks

unread,
Jun 16, 2017, 11:03:28 AM6/16/17
to bbe...@googlegroups.com
On Thu, Jun 15, 2017 at 11:02 PM, F. Alfredo Rego <F.Alfr...@gmail.com> wrote:
Searching the Expert Preferences help for “backspace from the insertion point” doesn’t lead anywhere (at least here in the mountains, under BBEdit version 11.6.7 (397078) ).

It works fine here in the colonies...maybe this will help:

Inline image 1

Patrick Woolsey

unread,
Jun 16, 2017, 12:11:41 PM6/16/17
to bbe...@googlegroups.com
On 6/15/17 at 11:02 PM, F.Alfr...@gmail.com (F. Alfredo
Rego) wrote:

>You wrote generically: "There is AN expert preference". Can you
>please provide the SPECIFIC name and location of this
>preference, or the specific "defaults write" command?
>
>My reason for asking: Searching the Expert Preferences help for
>"backspace from the insertion point" doesn't lead anywhere (at
>least here in the mountains, under BBEdit version 11.6.7
>(397078) ).


Searching the Expert Preferences page for "backspace" should
turn up the requisite key :-), namely:

========

Clippings, Editing and Text Completion

[...]

* When you backspace from the insertion point, BBEdit will
delete a
tab stop's worth of spaces if there are only spaces (and tabs)
between the insertion point and the start of the line on
which you're
editing. This may be disabled by an expert preference if desired:

defaults write com.barebones.bbedit
Editor_DeleteIndentationWhitespaceToTabStop -bool NO

[...]

========


Regards,

Patrick Woolsey
==
Bare Bones Software, Inc. <http://www.barebones.com/>

F. Alfredo Rego

unread,
Jun 17, 2017, 12:05:05 PM6/17/17
to bbe...@googlegroups.com
Thanks to your visual tip, Kerri, I manually navigated to “Clippings . . .” and I found it. Here it is, for those who might want to go straight to the point:

defaults write com.barebones.bbedit Editor_DeleteIndentationWhitespaceToTabStop -bool NO


However, for the record, this is what I get when I do my search-and-rescue in the mountains: 
SIXTY-NINE total results and just ONE for BBEdit Help, 
without a mention of “BBEdit Expert Preferences”:





Versus the TEN total results and TWO for BBEdit Help that you get in the colonies, 
including the desired reference to “BBEdit Expert Preferences”.

Here is the relevant slice from YOUR animated GIF:





Any explorers/conquerors out there who might know WHY we get different results?


Just curious.

Alfredo




<backspace from the insertion point.gif>


Patrick Woolsey

unread,
Jun 17, 2017, 12:23:00 PM6/17/17
to bbe...@googlegroups.com
The cause of this behavior is that Help Viewer does not perform
exact string searches; instead, it behaves more like Spotlight
and thus is likely to report lots of spurious matches when fed
such a set of words: for instance, "point" leading to the entry
for "Set advanced Point-to-Point Protocol settings" (which has
no relation to your intent :-).

Regards,

Patrick Woolsey
==
Bare Bones Software, Inc. <http://www.barebones.com/>



On 6/16/17 at 1:26 PM, F.Alfr...@gmail.com (F. Alfredo Rego) wrote:

>However, for the record, this is what I get when I do my
>search-and-rescue in the mountains:
>SIXTY-NINE total results and just ONE for BBEdit Help, without
>a mention of “BBEdit Expert Preferences”:
>
[...]


Reply all
Reply to author
Forward
0 new messages