Sha256: 69010b976e7533fe62ede50900578b64a7a1c394a94b71858f145d6df26afcbb
Contents?: true
Size: 1.39 KB
Versions: 1
Compression:
Stored size: 1.39 KB
Contents
= zoi(1) == NAME zoi - Manage snippets == DESCRIPTION ‘zoi' provides a way to organize snippets. When you create a new file by `create` command, zoi makes the file under ~/zoi. When you execute `open` command, zoi create a new file and open it with your editor. If you want to list all files or all directory in ~/zoi, use `list` command. [verse] zoi create ruby/foo.rb # ~/zoi/ruby/foo.rb is created. == SYNOPSIS [verse] zoi create <filepath> zoi open <filepath> zoi list [-d] zoi root zoi help == COMMANDS create:: Create a new file under zoi root directory. If the file already exists, the file isn't created. + In all cases, the full path of the file is printed to stdout. + For example: `zoi create memo/20210101.md` open:: Execute `create` command and open the file with the editor specified by `$EDITOR`. To open a file, set `$EDITOR`. + For example: `EDITOR=code zoi open memo/20210101.md` list:: List all files under zoi root directory. + With '-d' option, list all directories under zoi root directory. root:: Print zoi root directory. help:: Print a brief help message. == INSTALLATION gem install zoi == EXAMPLES * Open today's memo file in VSCode. + [verse] date "+%Y%m%d.adoc" | EDITOR=code zoi open + A new file ~/zoi/20210727.adoc is created and is opend in VSCode. * Change directories + [verse] cd $(zoi list -d | fzf) == AUTHOR https://github.com/9sako6[9sako6]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zoi-0.1.2 | README.adoc |