How to select and delete all Output cells in multiple notebooks programmatically without needing to (manually) opening them?
How to define a hot key for deleting all Output cells within a notebook from that notebook?
|
How to select and delete all Output cells in multiple notebooks programmatically without needing to (manually) opening them? How to define a hot key for deleting all Output cells within a notebook from that notebook? |
||||
| show 1 more comment |
|
Without adressing the hotkey issue (you could add a menu entry, or simply put an appropriate
Together with Example:
Take care what other styles you choose, they´ll be gone for good... Edit: You may also use the Option Example:
There is still an issue with the |
|||||||||||
|
|
This is how you do it through menus, As correctly noted in the comment this is equivalent to the shortcut ALT+C >> L >> ENTER.
|
|||||||||
|
|
Update December 6th: There is an updated version (plus a bug fix for M9) working on Windows, MacOSX and Linux available and installable by
On Windows (Mac does not work yet): Execute the following code in a notebook and restart Mathematica. Then hitting F4 will delete all Output, Print and Message cells in the selected notebook, while pressing F8 will do so in all open notebooks which are not Wolfram Documentation notebooks. This was more difficult to program than it should be ...
|
||||
|
$UserBaseDirectory. If the original is at$InstallationDirectory/foo/bar/file.tr, then you mirror the tree and copy it to$UserBaseDirectory/foo/bar/file.tr– rm -rf♦ Nov 1 '12 at 16:03