⪼ Made with 💜 by Polyglot.
Gist Editor is a suite of tools that allow you to take advantage of Gists as not only an editor but as a way to store files and other stuff. While it's great to be able to store plain text, it provides a lot.
- GitHub API v3 Reference
- octokit/octokit.js#pagination
- Personal Access Tokens
- Using pagination in the REST API
- How can I index a github gist?
- Raw
git
access to repository which means you get versioning for free. - Each repo is essentially a filesystem directory containing files.
- Each repo can be retrieved via
git clone URL
. - A new repo can be created via
curl HTTP POST
- text or email yourself a note
- A user's authenticated Gists are paginated; thus, it can take several
**https**
calls in order to retrieve them all. - The listing all of a user's gists are ordered only by (creation or updated date)
- Lacks full-text search ability - can only search by text of title text must match (no fuzzy search)
- The "delete" button is way too accessible -- it's too easy to accidentally hit delete
- It isn't super easy to open a gist up in your local editor (an open in vscode button would be nice)
- Select a template from the dropdown
- Title, filename, content supported
- Variables in template trigger popups to allow data entry to hydrate the template on load
document.querySelector("[name=templates]").addEventListener("change", (event) => {
console.log(event.target.value)
});


-
esc
: shortcut mode
-
e
: Edit -
n
: New Gist -
a
: Add file -
/
: Search (already exists)
- vim
- If first file, default file name is
readme.md
(configurable), editor is populated with default text of#
and cursor is positioned to the right of default text.
- If first line of file starts with
#
, then everything after that should be the default title
- document can have lists of related documents:
- add documents manually by specific name/id
- add documents automatically via related tags
- search by name
- search by previous name (can find by old names after renaming: can also turn off searching for each name via configuration setting per document)
- search by id
- search by tag