Re: Edit all selected (?)

2015-12-08 Thread Christopher Stone
On Dec 07, 2015, at 09:44, Kerri Hicks  wrote:
> While a little more involved than I think you're asking for, this has helped 
> me a lot:
__

Hey Kerri,

You can skip a couple of steps.

Once you select your "silly" column you can just type in the replacement text 
(or paste).

--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com.


Re: Edit all selected (?)

2015-12-08 Thread Vlad Ghitulescu

> Am 05.12.2015 um 22:04 schrieb Vlad Ghitulescu :
> 
>> 
>> Am 05.12.2015 um 09:11 schrieb Oliver Boermans :
>> 
>> 2. Invoke: Search: Use Selection for Find (⌘E)
>> 3. Invoke: Search: Find… (⌘F)
>> 4. TAB into the Replacement field
> 
> I’ve made a Keyboard Maestro - macro for only the above steps (triggered by 
> CMD + H - which I don’t use at all in BBEdit) and everything is better now! 
> ;-)

I’ve made it once step better:



by adding the following actions:

a) Type the ⌥Left Arrow Keystroke
b) Type the ⌥⇧Right Arrow Keystroke

to the old ones:

c) Type the ⌘E Keystroke
d) Type the ⌘F Keystroke
e) Type the Tab Keystroke

so that I don’t have to activate the word any more but only put the cursor 
somewhere within.

It works and it feels fast enough for me but I suppose it will be even faster 
with an AppleScript (right, Chris?).


Regards,
Vlad



-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com.


Re: Edit all selected (?)

2015-12-07 Thread Kerri Hicks
While a little more involved than I think you're asking for, this has
helped me a lot:

https://www.youtube.com/watch?v=zqo12M6Crr8

Make sure Soft Wrap is off.

--Kerri

On Mon, Dec 7, 2015 at 12:44 AM, Jon B.  wrote:

> It certainly certainly be nice if Bare Bones added this functionality
> (multi-cursor/editing all selected/marked text in one fell swoop). The
> underpinnings all seem to be there now.
>
> On Wednesday, December 2, 2015 at 4:00:16 PM UTC-8, Greg Raven wrote:
>>
>> In the latest versions of BBEdit, if you have the cursor on a word (or
>> have a word or words selected), and the text under the cursor (or selected
>> text) occurs elsewhere in your document, those other instances will be
>> marked.
>>
>> Is there a way of editing all selected/marked text in a document in one
>> felt swoop?
>>
>> I wasn't able to find anything in the documentation.
>>
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> 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 post to this group, send email to bbedit@googlegroups.com.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com.


Re: Edit all selected (?)

2015-12-07 Thread Jon B.
It certainly certainly be nice if Bare Bones added this functionality 
(multi-cursor/editing all selected/marked text in one fell swoop). The 
underpinnings all seem to be there now.

On Wednesday, December 2, 2015 at 4:00:16 PM UTC-8, Greg Raven wrote:
>
> In the latest versions of BBEdit, if you have the cursor on a word (or 
> have a word or words selected), and the text under the cursor (or selected 
> text) occurs elsewhere in your document, those other instances will be 
> marked.
>
> Is there a way of editing all selected/marked text in a document in one 
> felt swoop?
>
> I wasn't able to find anything in the documentation.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com.


Re: Edit all selected (?)

2015-12-07 Thread Bruce Van Allen
What Fletcher describes is exactly what I do, too, and really, 
isn't it exactly what the OP is asking for? SEEING repeated 
instances of a bit of text is handy, but in my view, OPERATING 
on repeated instances rightly needs another couple steps. The 
assorted BBEdit commands Fletcher describes make it easy to 
operate quickly but also carefully if needed. If it isn't clear, 
much of the time you can use these commands with key 
combinations and never even see the "Find" dialog or click a 
Menu bar...



On 12/7/15 at 8:23 AM, fletc...@cumuli.com (Fletcher Sandbeck) wrote:

I do this more times a day than I can count.
Select text to replace, Cmd-E to use selection for find. Edit the text
and re-select it. Cmd-Opt-E to use selection for replace. And then
Cmd-G for find next to see if there's another instance in the
document. I'll do this pretty much any time I'm cleaning up or
refactoring code just to double-check whether the change I'm making
now needs to be repeated elsewhere in the current file. I then use
Cmd-Opt-F for replace and find next. If there are a lot I use
Cmd-Opt-= to simply do the replace all. And sometimes Cmd-Shift-F to
switch over to multi-file mode to search the entire code base for the
same change. There might be a custom menu shortcut in there (or at
least a throwback to an older menu shortcut) and it's all so much
muscle memory now.

[fletcher]


On Dec 5, 2015, at 8:41 PM, Oliver Boermans  wrote:


On 6 December 2015 at 08:59, Greg Raven > wrote:

I gave it the keyboard shortcut of Cmd-E!

When there is an instance of the desired replacement within easy reach the Use

Selection for Replace shortcut is nice to have too:


1. Select text to replace.
2. Invoke: Search: Use selection for find (⌘E)
3. Select the text to replace it 4. Invoke: Search: Use 
Selection for Replace (⌘⌥E)

5. Invoke: Search: Find… (⌘F)
6. Invoke: Replace All (⌥⌘=)


--
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email

"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com

.


--

  - Bruce

_bruce__van_allen__santa_cruz__ca_

--
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email

"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com.


Re: Edit all selected (?)

2015-12-07 Thread Fletcher Sandbeck
I do this more times a day than I can count. 

Select text to replace, Cmd-E to use selection for find. Edit the text and 
re-select it. Cmd-Opt-E to use selection for replace. And then Cmd-G for find 
next to see if there's another instance in the document. I'll do this pretty 
much any time I'm cleaning up or refactoring code just to double-check whether 
the change I'm making now needs to be repeated elsewhere in the current file. I 
then use Cmd-Opt-F for replace and find next. If there are a lot I use 
Cmd-Opt-= to simply do the replace all. And sometimes Cmd-Shift-F to switch 
over to multi-file mode to search the entire code base for the same change. 
There might be a custom menu shortcut in there (or at least a throwback to an 
older menu shortcut) and it's all so much muscle memory now.

 [fletcher]

> On Dec 5, 2015, at 8:41 PM, Oliver Boermans  wrote:
> 
> 
> On 6 December 2015 at 08:59, Greg Raven  > wrote:
> I gave it the keyboard shortcut of Cmd-E!
> 
> When there is an instance of the desired replacement within easy reach the 
> Use Selection for Replace shortcut is nice to have too:
> 
> 1. Select text to replace.
> 2. Invoke: Search: Use selection for find (⌘E)
> 3. Select the text to replace it 
> 4. Invoke: Search: Use Selection for Replace (⌘⌥E)
> 5. Invoke: Search: Find… (⌘F)
> 6. Invoke: Replace All (⌥⌘=)
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> 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 post to this group, send email to bbedit@googlegroups.com 
> .

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com.


Re: Edit all selected (?)

2015-12-05 Thread Greg Raven
That's the process I use when I remember it. Thanks for the reminder.

On Saturday, December 5, 2015 at 12:11:35 AM UTC-8, ollie wrote:
>
> I have seen the feature multi cursor feature in other editors, BBEdit does 
> not.
>
> The BBEdit way would be to use search and replace:
>
> 1. Select the text
> 2. Invoke: Search: Use Selection for Find (⌘E)
> 3. Invoke: Search: Find… (⌘F)
> 4. TAB into the Replacement field and enter a replacement
> 5. Replace All (⌥⌘=)
>
> On 3 December 2015 at 10:30, Greg Raven  
> wrote:
>
>> In the latest versions of BBEdit, if you have the cursor on a word (or 
>> have a word or words selected), and the text under the cursor (or selected 
>> text) occurs elsewhere in your document, those other instances will be 
>> marked.
>>
>> Is there a way of editing all selected/marked text in a document in one 
>> felt swoop?
>>
>> I wasn't able to find anything in the documentation.
>>
>> -- 
>> 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: 
>>
>> --- 
>> 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 
>> .
>>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com.


Re: Edit all selected (?)

2015-12-05 Thread Oliver Boermans
On 6 December 2015 at 08:59, Greg Raven  wrote:

> I gave it the keyboard shortcut of Cmd-E!


When there is an instance of the desired replacement within easy reach the
Use Selection for Replace shortcut is nice to have too:

1. Select text to replace.
2. Invoke: Search: Use selection for find (⌘E)
3. Select the text to replace it
4. Invoke: Search: Use Selection for Replace (⌘⌥E)
5. Invoke: Search: Find… (⌘F)
6. Invoke: Replace All (⌥⌘=)

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com.


Re: Edit all selected (?)

2015-12-05 Thread Oliver Boermans
I have seen the feature multi cursor feature in other editors, BBEdit does
not.

The BBEdit way would be to use search and replace:

1. Select the text
2. Invoke: Search: Use Selection for Find (⌘E)
3. Invoke: Search: Find… (⌘F)
4. TAB into the Replacement field and enter a replacement
5. Replace All (⌥⌘=)

On 3 December 2015 at 10:30, Greg Raven  wrote:

> In the latest versions of BBEdit, if you have the cursor on a word (or
> have a word or words selected), and the text under the cursor (or selected
> text) occurs elsewhere in your document, those other instances will be
> marked.
>
> Is there a way of editing all selected/marked text in a document in one
> felt swoop?
>
> I wasn't able to find anything in the documentation.
>
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> 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 post to this group, send email to bbedit@googlegroups.com.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com.


Re: Edit all selected (?)

2015-12-05 Thread Vlad Ghitulescu
Thanks for writing it down! :-)

> Am 05.12.2015 um 09:11 schrieb Oliver Boermans :
> 
> 2. Invoke: Search: Use Selection for Find (⌘E)
> 3. Invoke: Search: Find… (⌘F)
> 4. TAB into the Replacement field

I’ve made a Keyboard Maestro - macro for only the above steps (triggered by CMD 
+ H - which I don’t use at all in BBEdit) and everything is better now! ;-)

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com.


Re: Edit all selected (?)

2015-12-05 Thread Christopher Stone
On Dec 05, 2015, at 15:04, Vlad Ghitulescu  wrote:
> I’ve made a Keyboard Maestro - macro for only the above steps
__

Hey Vlad,

Good idea.

Those who don't have Keyboard Maestro can save an AppleScript to the scripts 
folder, and give it a keyboard shortcut in BBEdit's Menus & Shortcuts prefs.


tell application "BBEdit"
  set _text to contents of text of selection
  set findWindow to open find window
  tell findWindow to set text 1 to _text
end tell
tell application "System Events" to keystroke tab


--
Take Care,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com.


Re: Edit all selected (?)

2015-12-05 Thread Greg Raven
I gave it the keyboard shortcut of Cmd-E!

On Saturday, December 5, 2015 at 2:23:40 PM UTC-8, Christopher Stone wrote:
>
> On Dec 05, 2015, at 15:04, Vlad Ghitulescu  > wrote:
>
> I’ve made a Keyboard Maestro - macro for only the above steps
>
> __
>
> Hey Vlad,
>
> Good idea.
>
> Those who don't have Keyboard Maestro can save an AppleScript to the 
> scripts folder, and give it a keyboard shortcut in BBEdit's Menus & 
> Shortcuts prefs.
>
> 
> *tell* *application* "BBEdit"
>   *set* _text *to* contents *of* *text* *of* selection
>   *set* findWindow *to* *open* find window
>   *tell* findWindow *to* *set* *text* 1 *to* _text
> *end* *tell*
> *tell* *application* "System Events" *to* *keystroke* tab
> 
>
> --
> Take Care,
> Chris
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com.


Edit all selected (?)

2015-12-02 Thread Greg Raven
In the latest versions of BBEdit, if you have the cursor on a word (or have 
a word or words selected), and the text under the cursor (or selected text) 
occurs elsewhere in your document, those other instances will be marked.

Is there a way of editing all selected/marked text in a document in one 
felt swoop?

I wasn't able to find anything in the documentation.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
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 post to this group, send email to bbedit@googlegroups.com.