Skip to content

Commit ee91bd7

Browse files
committed
Explain how to force saving plain text
1 parent 5da9964 commit ee91bd7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,22 @@ When holding `CTRL` while the program starts, the file will be saved to a subdir
6060
The corresponding template can be configured via command line.
6161

6262
The available **file extensions** depend on the formats available in the clipboard.
63-
For example, if you copy a range of cells from a spreadsheet, the data is available not only as text, but also in DIF, RTF, SLK and HTML formats and even as screenshot.
63+
For example, if you copy a range of cells from a spreadsheet, the data is available not only as text, but also in DIF, RTF, SLK and HTML formats and even as screenshot.
6464
Either select one of the suggested or enter a custom extension (which will be remembered).
65-
An appropriate format is then chosen and a preview shown.
65+
An appropriate format is then chosen automatically[^save_plain_text] and a preview shown.
6666
In autosave mode, the clipboard is saved as image, if available, or else as text.
6767
The file extension is then determined by the last used extension for the respective filetype (which can also be set via command line).
6868

6969
A special **batch mode** exists to monitor the clipboard and save it every time new contents are copied.
7070
If enabled, the filename is purely determined by the template (which supports a dedicated counter variable).
7171

72+
[^save_plain_text]: To force saving plain text data to a file with a special extension,
73+
use uppercase letters or prepend a dot to the file extension (neither will change the actual filename).
74+
For example, when copying syntax highlighted HTML code snippets from a browser,
75+
using `html` will cause the html-formatted text to be saved,
76+
while using `HTML` will save the plain text.
77+
78+
7279
### Copy file contents
7380
Run the program with the hotkey, from the file explorer context menu, the start menu or the command line.
7481

0 commit comments

Comments
 (0)