Both Windows NT and X Windows systems have a clipboard, which serves as a holder for text and data that has been cut or copied from any clipboard-compliant applications.
The editor has a scrapbook, which is a special workspace that maintains text that you cut and copy from the editor. The scrapbook was used prior to the clipboard, but remains as part of the editor. G2 creates a scrapbook workspace the first time you cut or copy text in the editor. The scrapbook is a transient, non-KB workspace, which is not saved when you save the KB. The text items stored in the scrapbook are text inserters, which means that you can also use them to insert text directly into the editor.
Whenever you complete a cut or copy operation in the editor, or drag your cursor over text that is outside the editor, G2 copies the text both to the clipboard and the scrapbook. The clipboard text is then used as the pasting source, and the scrapbook text remains unused. You can access scrapbook text as described in Interacting with the Scrapbook Directly.
The amount of text you can cut or copy at one time is limited by the G2 text clipboard buffer, which can hold a maximum of 32766 characters, including invisible characters such as a linefeed. Attempting to copy more than the maximum number of characters to the clipboard truncates the copied text.
To cut and paste text in the editor:
![]() |
cut command to delete the text from the current cursor location and place it in the scrapbook.Paste button on the left side of the editor to insert the text.
Note: Choosing the Paste button a second time inserts the same text again.
Choose Main Menu > Get Workspace > SCRAPBOOK.
For example, your scrapbook might look like this:
![]() |
To insert text directly from the scrapbook:
You can control the amount of text that the scrapbook holds, and you can delete individual text items in the scrapbook or the entire scrapbook.
To edit the maximum number of text items in the scrapbook:
Edit the Maximum-number-of-scraps-to-keep attribute in the Editor Parameters system table.
To delete a text item in the scrapbook:
Click on the border of a text inserter in the scrapbook, and select delete from its menu.
To delete the entire scrapbook:
Click on the background of the Scrapbook workspace, and select Delete Workspace.