ionaryu/dsh-copy-document

One-click copy of a whole document from the sidebar editor header, immediately right of Save.

Fixes a small but constant irritation: the right sidebar's file editor shows a document one screen at a time, so copying the whole thing means selecting past the viewport or scrolling until every page has loaded. This adds one control to that editor's header, right of Save, which copies the entire document text in a single click. Because it goes through the sidebar plugin's file API rather than the DOM, it works past the lazy-loaded pages and respects the same access checks as the editor.

Web UI Enhancements ★ 0
View on GitHub ↗

Install

dsh plugin --profile web add github:ionaryu/dsh-copy-document

The README gives this line and explains the button's behaviour. It has no configuration: the control appears in the file editor's header once the plugin is loaded.

Compatibility

Requires the dsh-better-sidebar plugin to be mounted — the editor header this button joins belongs to it, so without that plugin there is no header and the button never appears. It reads the document through that plugin's own /sidebar/api/fs.read route (and pages with fs.readPage above the editor's 5 MB threshold), so session scope, the browser-trust fence and encoding detection stay owned by the plugin that already implements them. The async Clipboard API needs a secure browser context, which any modern build on localhost qualifies for.

Details

Alternatives

ivanearisty/dsh-plugin-cmdk · asxiuxiu/dsh-quick-open · stardustlc666/dsh-docker

More plugins in Web UI Enhancements

Browse more in Web UI Enhancements

Guides for Web UI Enhancements plugins