Re: How to actually set an expert preference?

2020-06-15 Thread F. Alfredo Rego
Intriguing. From the man page:

BUGS
 Defaults can be structured in very complex ways, 
 making it difficult for the user to enter them with this command.

Gulp ;-)

Alfredo

> On Jun 15, 2020, at 4:35 PM, Patrick Woolsey  wrote:
> 
> On Jun 15, 2020, at 18:19, F. Alfredo Rego  wrote:
>> 
>> Now, for the 64k: Is there a shortcut to see the current settings for ALL 
>> expert preferences?
>> 
>> Something along the lines of "defaults read com.barebones.bbedit all” ?
>> 
> 
> There is no specific shortcut to display only the documented expert prefs.
> 
> One can however read _all_ of BBEdit's prefs via the 'defaults' command, 
> though I strongly encourage anyone who does so to exercise due caution -- if 
> you jump head first into the quicksand, we can always get you back out but 
> you may not enjoy the experience! ;-)
> 
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. 
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> --- 
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/C558E049-2E0E-46FE-8338-9170ACE1EED7%40barebones.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/261EDA27-9B89-4E9D-8FE3-3C10CDB0FEEB%40gmail.com.


Re: How to actually set an expert preference?

2020-06-15 Thread Patrick Woolsey
On Jun 15, 2020, at 18:19, F. Alfredo Rego  wrote:
> 
> Now, for the 64k: Is there a shortcut to see the current settings for ALL 
> expert preferences?
> 
> Something along the lines of "defaults read com.barebones.bbedit all” ?
> 

There is no specific shortcut to display only the documented expert prefs.

One can however read _all_ of BBEdit's prefs via the 'defaults' command, though 
I strongly encourage anyone who does so to exercise due caution -- if you jump 
head first into the quicksand, we can always get you back out but you may not 
enjoy the experience! ;-)


Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc. 


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/C558E049-2E0E-46FE-8338-9170ACE1EED7%40barebones.com.


Re: How to actually set an expert preference?

2020-06-15 Thread F. Alfredo Rego
# Cool-O.

Now, for the 64k: Is there a shortcut to see the current settings for ALL 
expert preferences?

Something along the lines of "defaults read com.barebones.bbedit all” ?

Thanks.

Alfredo

> On Jun 15, 2020, at 8:50 AM, Rich Siegel  wrote:
> 
> On 6/15/20 at 10:32 AM, b...@cruzio.com (Bruce Van Allen) wrote:
> 
>> 3. Some commands require root permissions, so on the Terminal you'd precede 
>> the pref command with 'sudo'
>> 
>> # Make finder show User's Library directory
>> sudo chflags nohidden ~/Library
>> 
>> But worksheets aren't interactive, so when you get prompted for your 
>> password, you can't enter it and continue.
> 
> Try it. :-) If `sudo` requires your password during a worksheet interaction, 
> BBEdit will prompt you.
> 
> R.
> -- 
> Rich Siegel Bare Bones Software, Inc.
>   
> 
> Someday I'll look back on all this and laugh... until they sedate me.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/98D3BB10-3EA0-45EB-ABF8-763721725BF0%40gmail.com.


Re: How to actually set an expert preference?

2020-06-15 Thread Patrick Woolsey

On 6/14/20 at 10:38 PM, wagsworl...@gmail.com (David G Wagner) wrote:


I looked at the doc and did some searches on the net and either I used the 
wrong wording or did not view the right outputs, but I never did see how one is 
to set a particular expert preference or see what expert preferences are set.



Please see the "BBEdit Expert Preferences" page:



In particular, I suggest you read the initial "Note", while 
beyond that, each option includes a Terminal command that you 
may run[*] to obtain the desired behavior.



[*: In most cases, you need only copy & paste the provided 
command into the Terminal, though a few options contain 
placeholders that you'll need to replace with actual info before running.]



Regards

 Patrick Woolsey
==
Bare Bones Software, Inc. 

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: 
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-2661A53BDF6C4F75B764E76D51148D97%40Cylinder.local.


Re: How to actually set an expert preference?

2020-06-15 Thread Bruce Van Allen

On 6/15/20 at 7:50 AM, sie...@barebones.com (Rich Siegel) wrote:

Try it. :-) If `sudo` requires your password during a worksheet 
interaction, BBEdit will prompt you.


I forgot that!

Thanks,
--

  - Bruce

_bruce__van_allen__santa_cruz__ca_

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: 
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-1F7EB3D5C41D44AFB750EA402B2CF747%40Forest.local.


Re: How to actually set an expert preference?

2020-06-15 Thread Rich Siegel

On 6/15/20 at 10:32 AM, b...@cruzio.com (Bruce Van Allen) wrote:


3. Some commands require root permissions, so on the Terminal you'd precede the 
pref command with 'sudo'

# Make finder show User's Library directory
sudo chflags nohidden ~/Library

But worksheets aren't interactive, so when you get prompted for 
your password, you can't enter it and continue.


Try it. :-) If `sudo` requires your password during a worksheet 
interaction, BBEdit will prompt you.


R.
--
Rich Siegel Bare Bones Software, Inc.
  

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


--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: 
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-8481EDE0EC6A4C009E98FD6B7425CFF0%40Stormwind.local.


Re: How to actually set an expert preference?

2020-06-15 Thread Bruce Van Allen

Hey David,

As Sam just mentioned, special preference commands are usually 
executed on the command line (i.e., in the Terminal for most Mac users).


A few more tips:

1. As I've learned useful expert prefs, I collect them together 
in a set of shell worksheets, one sheet each for BBEdit, other 
apps, and the OS itself. Then when I want to evoke a specific 
one, I only select that line of the worksheet, and hit Enter or 
my current key-combo to execute.


Here's an entry on my BBEdit Prefs worksheet:
# Include delimiters in balance command
defaults write com.barebones.bbedit BalanceIncludesDelimiters 
-bool YES
defaults write com.barebones.bbedit BalanceIncludesDelimiters 
-bool NO

defaults read com.barebones.bbedit BalanceIncludesDelimiters

Of these three, use only one at a time, to set, un-set, or read 
out the setting.


2. That latter is the answer to one of your questions. If you 
use the command 'read' instead of 'write', the current setting 
for that default pref will print out.


So if I select and hit Enter to execute the third command above
   defaults read com.barebones.bbedit BalanceIncludesDelimiters
the output is 0 (zero) because I previously executed the pref 
with -bool NO. That works in the Terminal, too, of course.


3. Some commands require root permissions, so on the Terminal 
you'd precede the pref command with 'sudo'


# Make finder show User's Library directory
sudo chflags nohidden ~/Library

But worksheets aren't interactive, so when you get prompted for 
your password, you can't enter it and continue. The two 
solutions I've used:
 * simply copy the pref command from the worksheet collection 
and paste it in into a Terminal and press Enter;


 * Take the more complex step of setting oneself (admin Mac 
user) as a "sudoer"  who can use sudo without having to enter 
their password each time. This is a bit complicated, and I'm not 
going to put the instructions here. (Ask and I will.)


HTH

On 6/14/20 at 7:38 PM, wagsworl...@gmail.com (David G Wagner) wrote:


I looked at the doc and did some searches on the net and either I used
the wrong wording or did not view the right outputs, but I never did
see how one is to set a particular expert preference or see what
expert preferences are set.

I tried a shell worksheet and executed ’env’ and got the output back.
But never understood how to set a preference or see what others are
set.

--

  - Bruce

_bruce__van_allen__santa_cruz__ca_

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: 
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-9593BB38E9714BAEA9FC08E2983B7982%40Forest.local.


Re: How to actually set an expert preference?

2020-06-15 Thread Sam Hathaway

Wags,

The Expert Preferences page in BBEdit’s “built-in Help book” shows 
the command to enter for each setting. (Help > BBEdit Help > Expert 
Preferences)


These commands are to be entered in the Terminal. They do not set 
environment variables so `env` will not help you here. For more 
information on macOS’s defaults system, run `man defaults` in the 
Terminal.

-sam

On 14 Jun 2020, at 22:38, David G Wagner wrote:

I looked at the doc and did some searches on the net and either I used 
the wrong wording or did not view the right outputs, but I never did 
see how one is to set a particular expert preference or see what 
expert preferences are set.


I tried a shell worksheet and executed ’env’ and got the output 
back. But never understood how to set a preference or see what others 
are set.


Any examples or if in doc, point me to it...

Thanks... ;)

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391

--
This is the BBEdit Talk public discussion group. If you have a feature 
request or need technical support, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on 
Twitter: 

---
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/278792e9-9922-4b15-ac3f-ac6b0ee949a1%40Spark.



--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: 
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CFF6FD32-7B7E-4393-BAFF-FC3E352EDA83%40munkynet.org.


How to actually set an expert preference?

2020-06-15 Thread David G Wagner
I looked at the doc and did some searches on the net and either I used the 
wrong wording or did not view the right outputs, but I never did see how one is 
to set a particular expert preference or see what expert preferences are set.

I tried a shell worksheet and executed ’env’ and got the output back. But never 
understood how to set a preference or see what others are set.

Any examples or if in doc, point me to it...

Thanks... ;)

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/278792e9-9922-4b15-ac3f-ac6b0ee949a1%40Spark.