Edit > Show Clipboard (BBEdit 10)

264 views
Skip to first unread message

Jean-Christophe Helary

unread,
Jan 3, 2015, 10:11:21 AM1/3/15
to bbe...@googlegroups.com
Hello all,

I'm browsing the tutorial and I'm surprised to see a feature that does not seem to appear in the interface.

On page 22, it says "Like the Finder, BBEdit has a Show Clipboard command on the Edit menu." But I've been checking the Edit menu (and all the other menus for that matter) to no avail.

I can find a Previous/Next Clipboard at the bottom of the Edit menu, but a "Show Clipboard" is nowhere to be seen.

Am I missing something ?

Jean-Christophe Helary

jgill

unread,
Jan 3, 2015, 5:55:53 PM1/3/15
to bbe...@googlegroups.com
'Show Clipboard' is in the Edit Menu of the Finder, not BBEdit.

Lawrence San

unread,
Jan 3, 2015, 8:10:52 PM1/3/15
to BBEdit-Talk
> 'Show Clipboard' is in the Edit Menu of the Finder, not BBEdit.

I see a "Show Clipboard" item in both the Finder (Snow Leopard) and BBEdit 9, but of course those are older versions.

ego...@gmail.com

unread,
Jan 3, 2015, 9:13:10 PM1/3/15
to bbe...@googlegroups.com
BBEdit 10.5 Release Notes includes this:
  • The "Show Clipboard" command on the Edit menu has been retired. It now lives on a farm upstate.

Lee Hinde

unread,
Dec 16, 2015, 7:50:27 PM12/16/15
to bbe...@googlegroups.com
Replying here just to show I checked the archives first...

Is there a way to view the BBEdit clipboard history, other than selecting the previous clipboard and pasting X times?

Christopher Stone

unread,
Dec 17, 2015, 6:54:42 PM12/17/15
to BBEdit-Talk
On Dec 16, 2015, at 18:49, Lee Hinde <leeh...@gmail.com> wrote:
Replying here just to show I checked the archives first...

Is there a way to view the BBEdit clipboard history, other than selecting the previous clipboard and pasting X times?
______________________________________________________________________

Hey Lee,

No.  At least not built-in.

You can do it with an AppleScript though.

--
Best Regards,
Chris

-------------------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2015/12/17 17:37
# dMod: 2015/12/17 17:48 
# Appl: BBEdit
# Task: Set selection to text chosen from BBEdit's clipboards.
# Tags: @Applescript, @Script, @BBEdit, @Choose, @Clipboard, @Text
-------------------------------------------------------------------------------------------

tell application "BBEdit"
  set clipboardList to contents of clipboards

  

  set pickedClipboardList to choose from list clipboardList with title "BBEdit Clipboard Contents" with prompt ¬
    "Pick 1 or more:" default items {item 1 of clipboardList} ¬
    multiple selections allowed true ¬
    without empty selection allowed

  

  set AppleScript's text item delimiters to return

  

  if pickedClipboardListfalse then set selection to pickedClipboardList as text

  

end tell

-------------------------------------------------------------------------------------------



Lee Hinde

unread,
Dec 17, 2015, 8:33:46 PM12/17/15
to bbe...@googlegroups.com
Thank you!

verdonv

unread,
Dec 18, 2015, 8:12:45 AM12/18/15
to BBEdit Talk
Why not use a clipboard manager? I've been using http://www.clipmenu.com for years... can't imagine working without something like that. There are others out there too.

Matt Kanninen

unread,
Jul 17, 2018, 11:35:42 AM7/17/18
to BBEdit Talk
Guess I'll have to.  Easy clipboard access was one of the main reasons I decided to try BBEdit

Christopher Stone

unread,
Jul 20, 2018, 8:40:20 AM7/20/18
to BBEdit-Talk
On 07/16/2018, at 16:27, Matt Kanninen <mathi...@gmail.com> wrote:
Guess I'll have to.  Easy clipboard access was one of the main reasons I decided to try BBEdit


Hey Matt,

It's about as easy as you want it to be.

See this link.


The script creates a pop-up list of the various clipboard contents.

Here's another one that will dump all clipboards into new document.

----------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2018/07/20 07:32
# dMod: 2018/07/20 07:32 
# Appl: BBEdit
# Task: Dump BBEdit Clipboards to a new document.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @BBEdit, @Dump, @BBEdit, @Clipboards, @New, @Document
----------------------------------------------------------------

set _sep to linefeed & linefeed & "----------------------------------------------------------------" & linefeed & linefeed

set clipList to {}

tell application "BBEdit"
    repeat with i from 1 to 6
        set end of clipList to (contents of clipboard i)
    end repeat
end tell

set AppleScript's text item delimiters to _sep

bbeditNewDoc(clipList as text, true)

----------------------------------------------------------------
--» HANDLERS
----------------------------------------------------------------
on bbeditNewDoc(_text, _activate)
    tell application "BBEdit"
        set newDoc to make new document with properties {text:_text, bounds:{0, 44, 1920, 1200}}
        tell newDoc
            select insertion point before its text
        end tell
        if _activate = true or _activate = 1 or _activate = "activate" then activate
    end tell
end bbeditNewDoc
----------------------------------------------------------------

Personally I recommend a clipboard manager.  They are more full-featured and are a great productivity enhancement.

I use LaunchBar's clipboard manager and Keyboard Maestro's for different reasons.

I also have scripts for BBEdit that let me save the current clipboard to 1 of 10 pseudo-clipboards and can copy to or paste from with 1 keystroke.

--
Best Regards,
Chris

Reply all
Reply to author
Forward
0 new messages