A code snippets manager for your terminal.
BREAKING RELEASE - Make sure to back up your snippets
PLEASE RUN the-way sync local
AFTER UPDATE (or delete and recreate the Gist)
This is needed as the new Gist format has tags attached and running the-way sync date
will get rid of all your tags.
Using the-way sync local
or deleting and recreating the Gist will upload local snippets to synced gist with tags attached.
Subsequent syncing can then use the-way sync date
.
the-way sync
is now split into three different commands (Issue 125):
the-way sync date
(old behavior, checks each snippet's updated date and uploads if newer than Gist updated date, downloads otherwise)the-way sync local
(uses local snippets as truth, needed after upgrading to this release in order to upload tags to Gist. Also useful if Gist gets messed up for some reason)the-way sync gist
(uses Gist snippets as truth, useful when syncing across computers)-s
for --stdout
in copy
and search
commands (Issue 122)the-way
-style gist with the-way import -w <gist-url>
(Issue 98)copy_cmd
in configuration file which allows user to change the default copy command.
(Issue 110, Issue 76)
In case of empty field value (empty string) the default command is used.
(PR 118)NoDefaultCopyCommand
to represent the case where the OS copy
command is not supported by default.termux-clipboard-set
as copy command for Android (Issue #93)--stdout
prints to stdout without copying--stdout
flag to copy and search (Issue #93)