Request: URLs that perform operations without opening Plaintext.
Proposed Design:
URL Structure:
Option 1.) plaintext://<operation>/path/to/file.txt?body=some text here
Option 2.) plaintext://path/to/file.txt?action=<operation>&text=some text here
where <operation> can be any of {open, new, create, append, prepend}.
Operation details:
open: (To open a file or folder in Plaintext)
+ if intermediate folders don't exist
++ create intermediate folders
+ if path ends in "/"
++ if no text passed in
+++ open folder in plaintext
++ else ( text passed in )
+++ create new document with current timestamp.
+ append any text passed in
+ open file in plaintext.
new: (To open a "new" file or folder in Plaintext)
+ if intermediate folders don't exist
++ create intermediate folders
+ if path ends in "/"
++ if no text passed in
+++ open folder in plaintext
++ else ( text passed in )
+++ create new document with current timestamp.
+ append any text passed in
+ open file in plaintext.
create: (To create a file without opening plaintext)
+ if intermediate folders don't exist
++ create intermediate folders
+ if path ends in "/"
++ create new document with current timestamp.
+ append any text passed in
+ NOT open the file for editing in plaintext
append: (To append to an existing file without opening plaintext)
+ if intermediate folders don't exist
++ create intermediate folders
+ if path ends in "/"
++ create new document with current timestamp.
+ append any text passed in
+ NOT open the file for editing in plaintext
prepend: (To prepend to an existing file without opening plaintext)
+ if intermediate folders don't exist
++ create intermediate folders
+ if path ends in "/"
++ create new document with current timestamp.
+ prepend any text passed in
+ NOT open the file for editing in plaintext
My main concern is the ability to append to files in Plaintext from Drafts, without requiring internet connectivity (Dropbox) or opening Plaintext. This requires a URL that will create files if they don't exist, append by default, and not open Plaintext.
Thanks for reading.
- Brian Lindsay.
P.S. May the community be vocal in their agreement or frustration with this proposed design.