A> Hmm.. does this mean that you need additional action to "switch" clipboards
A> before getting content from CB2 for example?
Yes, exactely.
A> For me it not very usable.
Mhmm. OK, i see. But since this is like i understand this feature and saw it it in other editors
i want to stay on "my" suggestion for the next few lines. You may adapt the parts you like and drop the rest.
A> Clipboard is not scriptable yet, but this can be added easy, and will be done.
A> In real scripting you can also use global variables to store intermediate results or what ever.
A> Plus you will have global/workspace/file storages.
A> By scriptable I mean real scripting access but not using macros.
You don't want to say that we can't access the CBs by macro?, don't you? ;-)
Since macro have nothing like var's to set, the CB are an fine work around for that issue.
A> To summarize what you want and what I will accept

:
A> - you want to get in addition to Clipboard ring, which contains numbered items which are not stable
A> (because position is changed with any new copy)
A> some kind of Named Clipboard items (as HE has for bookmarks).
Yes. Clipboards is commonly used as name. Or register with VIM.
A> - Such Named Clipboard Items are not used in normal Copy/Paste process by can be accessed
A> by special dedicated commands as CopyToClipboard1 and PasteFromClipboard1
I think that point is not usable:
Ctrl+C = Win system CB
Ctrl+X
Ctrl+V
CopyToClipboard1 = internal CBs
CutToClipboard1
PasteFromClipboard1
CopyToClipboard2
CutToClipboard2
PasteFromClipboard2
CopyToClipboard3
CutToClipboard3
PasteFromClipboard3
CopyToClipboard4
CutToClipboard4
PasteFromClipboard4
CopyToClipboard5
CutToClipboard5
PasteFromClipboard5
CopyToClipboard6
CutToClipboard6
PasteFromClipboard6
CopyToClipboard7
CutToClipboard7
PasteFromClipboard7
CopyToClipboard8
CutToClipboard8
PasteFromClipboard8
CopyToClipboard9
CutToClipboard9
PasteFromClipboard9
== 30 shortcuts
SetActiveClipboard0 = Win sys CB
SetActiveClipboard1 = internal CBs
SetActiveClipboard2 Ctrl+Shift+2
SetActiveClipboard3
SetActiveClipboard4
SetActiveClipboard5 Ctrl+Shift+5
SetActiveClipboard6
SetActiveClipboard7
SetActiveClipboard8
SetActiveClipboard9
Common Ctrl+C
Common Ctrl+X
Common Ctrl+V
== 13 shortcuts
And my suggestion has the advantage of using always the same shortcuts for cut/copy/paste
(after you have set one CB as active you could forget which is active)
For your solution you have to remember always which CB you want to use currently (have i to press Ctrl+3 or +4?...
do you remember even after half an hour? I can take an look at the status bar ;-) )
A> - Such Named Clipboard items should be also presented in main menu
Yes.
A> and in Clipboard Ring menu.
Which "Clipboard Ring menu"? I know only an "Clipboard Ring"-entry in Edit menu.
I see this new CBs not related to your current "Clipboard Ring".
Clipboard Ring is for to show/access last few Win-System-Clipboard history.
This new CBs are like register to just store one single piece of text, no history.
A> - I do not like to implement such switch of active Clipboard, because from one side for everyday work
A> I think it will be too much confusion to switch from one clipboard to another before edit operation,
A> you need to visualize which clipboard is currently active, users will forget to switch back, and
A> technically for me this is not easy because Clipboard is hardly connected with Clipboard Ring.
A> And I do not think that it will be good to implement Clipboard ring for every named Clipboard...
A> (but who knows, maybe this is and not bad... but not definitely not a partial usage without ring)
I think there is no history (= Clipboard Ring) for this new CB needed.
A> Please point from your editor examples for best, from your point of view, implementation.
I think this feature are useful:
* Main menu item "Clipboards"
with Submenu showing an list like
0 Windows Clipboard Ctrl+Shift+0
1 Internal Clipboard Ctrl+Shift+1
...
9 Internal Clipboard Ctrl+Shift+9
switch to next CB Ctrl+Shift+N
switch to prev CB Ctrl+Shift+P
clear CB... ( New Dialog " [ ]1 [ ]2 -...- [ ]9 [ ]All" (maybe?)
* an check mark showing which CB is the active one
* hoovering an CB item show an yellow tooltip with content
* Status bar shows which CB is active: "Ln 114 Ch 47, CB1", "Ln 114 Ch 47, CB4", "Ln 114 Ch 47, CBW"
use left double click to switch to next CB OR to open CB context menu.
There is also an status bar message saying: “the active cb has been set to cb4”
* To clear an CB set it active and copy an blank
* To edit an CB set it active, paste, modify and copy back
* If (writeaccess) save CB for next start
Usage:
Set an CB active by its index number or by next/prev, using menu or shortcut
Ctrl+C/V/X works now with this currently active clipboard
Scripting:
SetClipboard(1)
Copy
SetClipboard(2)
Copy
GoToLine(1)
GoToColumn(1)
SetClipboard(2)
Paste
GoToLine(1)
GoToColumn(1)
SetClipboard(1)
Paste
SetClipboardNext()
SetClipboardPrev()
ClearClipboard(6)
or
SetClipboard(6)
ClipboardClear
ClearAllClipboards()
var = Clipboard //what ever is current
SysClip = var
SysClip += var //append
HTH?
