Update documentation
This commit is contained in:
parent
6e7689e052
commit
9e8c05d80c
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -2,7 +2,7 @@
|
||||||
*.py[co]
|
*.py[co]
|
||||||
__pycache__/
|
__pycache__/
|
||||||
/.coverage
|
/.coverage
|
||||||
/.pytest_cache
|
/.pytest_cache/
|
||||||
/build
|
/build/
|
||||||
/dist
|
/dist/
|
||||||
/venv
|
/venv/
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
# Contributing
|
# Contributing
|
||||||
|
|
||||||
If you have an idea or feature request please open an [issue], even if you don't
|
If you have an idea or feature request please open an [issue][1], even if you
|
||||||
have time to contribute!
|
don't have time to contribute!
|
||||||
|
|
||||||
## Making Changes
|
## Making Changes
|
||||||
|
|
||||||
> **Note**: This guide assumes you have a working Python installation (most
|
> **Note**: This guide assumes you have a working Python installation (most
|
||||||
> versions are supported) and have the Python Package Installer available in
|
> versions are supported) and have the Python Package Installer available in
|
||||||
> your PATH.
|
> your $PATH.
|
||||||
|
|
||||||
To get started, [fork] this repository on GitHub and clone a working copy for
|
To get started, [fork][2] this repository on GitHub and clone a working copy for
|
||||||
development:
|
development:
|
||||||
|
|
||||||
$ git clone git@github.com:YOUR-USERNAME/vimwiki-cli.git
|
$ git clone git@github.com:YOUR-USERNAME/vimwiki-cli.git
|
||||||
|
@ -20,7 +20,7 @@ and activate the environment:
|
||||||
$ virtualenv venv
|
$ virtualenv venv
|
||||||
$ source venv/bin/activate
|
$ source venv/bin/activate
|
||||||
|
|
||||||
> **Note**: If the `virtualenv` command is not available, it can be installed
|
> **Note**: If the `virtualenv` package is not available, it can be installed
|
||||||
> locally by issuing `pip install --user virtualenv`.
|
> locally by issuing `pip install --user virtualenv`.
|
||||||
|
|
||||||
Dependencies are managed via `setuptools`; to set up the environment for
|
Dependencies are managed via `setuptools`; to set up the environment for
|
||||||
|
@ -32,10 +32,10 @@ Once you are finished making changes, be sure to check the output of
|
||||||
`pycodestyle` and `pytest`. At a minimum, there should be no test regressions
|
`pycodestyle` and `pytest`. At a minimum, there should be no test regressions
|
||||||
and additional tests should be added for new functionality. If user-facing
|
and additional tests should be added for new functionality. If user-facing
|
||||||
changes are introduced, be sure add an entry to the `Unreleased` section in
|
changes are introduced, be sure add an entry to the `Unreleased` section in
|
||||||
[CHANGELOG.md] as well.
|
[CHANGELOG.md].
|
||||||
|
|
||||||
With that out of the way, you can now commit your changes and create a [pull
|
With that out of the way, you may now commit your changes and create a
|
||||||
request] against the `master` branch for review!
|
[pull request][3] against the `master` branch for review!
|
||||||
|
|
||||||
## Making New Releases
|
## Making New Releases
|
||||||
|
|
||||||
|
@ -45,15 +45,13 @@ passing tests at all times.
|
||||||
|
|
||||||
To make a new release, follow these steps:
|
To make a new release, follow these steps:
|
||||||
|
|
||||||
1. Install dependencies by issuing `pip install -e ".[deploy]"` in an existing
|
1. Install deploy dependencies by issuing `pip install -e ".[deploy]"`.
|
||||||
virtualenv (see above).
|
|
||||||
2. Verify `pycodestyle` and `pytest` are passing locally.
|
2. Verify `pycodestyle` and `pytest` are passing locally.
|
||||||
3. Increment the version number by issuing `bump2version <major|minor|patch>`.
|
3. Increment the version number by issuing `bump2version <major|minor|patch>`.
|
||||||
4. Create a new section in [CHANGELOG.md] for the new version, and move items
|
4. Create a new section in [CHANGELOG.md] for the new version, and move items
|
||||||
from `Unreleased` to this section. Links should also be updated to point to
|
from `Unreleased` to this section. Links should also be updated to point to
|
||||||
the correct tags for comparisons.
|
the correct tags for comparison.
|
||||||
5. Verify release notes by issuing `scripts/release_notes.py v<version>` and
|
5. Verify release notes by issuing `scripts/release_notes.py v<version>`.
|
||||||
make adjustments as needed.
|
|
||||||
6. Commit changes by issuing `git commit -a -m "Release v<version>"`.
|
6. Commit changes by issuing `git commit -a -m "Release v<version>"`.
|
||||||
7. Create a release tag by issuing `git tag -a -m "Release v<version>"
|
7. Create a release tag by issuing `git tag -a -m "Release v<version>"
|
||||||
v<version>`.
|
v<version>`.
|
||||||
|
@ -65,7 +63,8 @@ To make a new release, follow these steps:
|
||||||
By contributing to this repository, you agree that your contributions will be
|
By contributing to this repository, you agree that your contributions will be
|
||||||
licensed under its Simplified BSD License.
|
licensed under its Simplified BSD License.
|
||||||
|
|
||||||
[CHANGELOG.md]: https://github.com/sstallion/vimwiki-cli/blob/master/CHANGELOG.md
|
[1]: https://github.com/sstallion/vimwiki-cli/issues
|
||||||
[fork]: https://docs.github.com/en/github/getting-started-with-github/fork-a-repo
|
[2]: https://docs.github.com/en/github/getting-started-with-github/fork-a-repo
|
||||||
[issue]: https://github.com/sstallion/vimwiki-cli/issues
|
[3]: https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request
|
||||||
[pull request]: https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request
|
|
||||||
|
[CHANGELOG.md]: CHANGELOG.md
|
||||||
|
|
3
LICENSE
3
LICENSE
|
@ -1,5 +1,4 @@
|
||||||
Copyright (c) 2021 Steven Stallion
|
Copyright (C) 2021 Steven Stallion <sstallion@gmail.com>
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
modification, are permitted provided that the following conditions
|
modification, are permitted provided that the following conditions
|
||||||
|
|
35
README.md
35
README.md
|
@ -1,20 +1,20 @@
|
||||||
# Vimwiki Command-Line Interface
|
# Vimwiki Command-Line Interface
|
||||||
|
|
||||||
[![](https://img.shields.io/travis/com/sstallion/vimwiki-cli)][Travis]
|
[![](https://img.shields.io/travis/com/sstallion/vimwiki-cli)][1]
|
||||||
[![](https://img.shields.io/pypi/v/vimwiki-cli)][PyPI]
|
[![](https://img.shields.io/pypi/v/vimwiki-cli)][2]
|
||||||
[![](https://img.shields.io/pypi/pyversions/vimwiki-cli)][PyPI]
|
[![](https://img.shields.io/pypi/pyversions/vimwiki-cli)][2]
|
||||||
[![](https://img.shields.io/github/license/sstallion/vimwiki-cli)][LICENSE]
|
[![](https://img.shields.io/github/license/sstallion/vimwiki-cli)][LICENSE]
|
||||||
|
|
||||||
`vimwiki-cli` is a command-line interface to [Vimwiki], a plugin for the [Vim]
|
`vimwiki-cli` is a command-line interface to [Vimwiki][3], a plugin for the
|
||||||
text editor. It provides a front-end for interactive editor commands and can be
|
[Vim][4] text editor. It provides a front-end for interactive editor commands
|
||||||
used to automate repetitive tasks such as rebuilding tag metadata and generating
|
and can be used to automate repetitive tasks such as rebuilding tag metadata and
|
||||||
links, all from the command line.
|
generating links, all from the command line.
|
||||||
|
|
||||||
[![](https://asciinema.org/a/411893.svg)](https://asciinema.org/a/411893?autoplay=1)
|
[![](https://asciinema.org/a/413921.svg)](https://asciinema.org/a/413921?autoplay=1)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
`vimwiki-cli` is available on [PyPI] and can be installed locally using the
|
`vimwiki-cli` is available on [PyPI][2] and can be installed locally using the
|
||||||
Python Package Installer:
|
Python Package Installer:
|
||||||
|
|
||||||
$ pip install --user vimwiki-cli
|
$ pip install --user vimwiki-cli
|
||||||
|
@ -73,7 +73,7 @@ startup file to provide completion:
|
||||||
|
|
||||||
### Git Integration
|
### Git Integration
|
||||||
|
|
||||||
For wikis managed with git, a pre-commit hook script is available that executes
|
For wikis managed with Git, a pre-commit hook script is available that executes
|
||||||
non-interactive commands to rebuild tag metadata and generate links before
|
non-interactive commands to rebuild tag metadata and generate links before
|
||||||
commit.
|
commit.
|
||||||
|
|
||||||
|
@ -108,10 +108,11 @@ Pull requests are welcome! See [CONTRIBUTING.md] for more details.
|
||||||
Source code in this repository is licensed under a Simplified BSD License. See
|
Source code in this repository is licensed under a Simplified BSD License. See
|
||||||
[LICENSE] for more details.
|
[LICENSE] for more details.
|
||||||
|
|
||||||
[CONTRIBUTING.md]: https://github.com/sstallion/vimwiki-cli/blob/master/CONTRIBUTING.md
|
[1]: https://travis-ci.com/sstallion/vimwiki-cli
|
||||||
[LICENSE]: https://github.com/sstallion/vimwiki-cli/blob/master/LICENSE
|
[2]: https://pypi.org/project/vimwiki-cli/
|
||||||
[pre-commit.sh]: https://github.com/sstallion/vimwiki-cli/blob/master/scripts/pre-commit.sh
|
[3]: https://vimwiki.github.io/
|
||||||
[PyPI]: https://pypi.org/project/vimwiki-cli/
|
[4]: https://www.vim.org/
|
||||||
[Travis]: https://travis-ci.com/sstallion/vimwiki-cli
|
|
||||||
[Vim]: https://www.vim.org/
|
[CONTRIBUTING.md]: CONTRIBUTING.md
|
||||||
[Vimwiki]: https://vimwiki.github.io/
|
[LICENSE]: LICENSE
|
||||||
|
[pre-commit.sh]: scripts/pre-commit.sh
|
||||||
|
|
|
@ -947,7 +947,7 @@
|
||||||
[58.778272, "o", "-"]
|
[58.778272, "o", "-"]
|
||||||
[58.993868, "o", "m"]
|
[58.993868, "o", "m"]
|
||||||
[59.10482, "o", " "]
|
[59.10482, "o", " "]
|
||||||
[59.268853, "o", "'"]
|
[59.268853, "o", "\""]
|
||||||
[59.548293, "o", "U"]
|
[59.548293, "o", "U"]
|
||||||
[59.708867, "o", "p"]
|
[59.708867, "o", "p"]
|
||||||
[59.796098, "o", "d"]
|
[59.796098, "o", "d"]
|
||||||
|
@ -967,7 +967,7 @@
|
||||||
[61.520288, "o", "k"]
|
[61.520288, "o", "k"]
|
||||||
[61.695677, "o", "i"]
|
[61.695677, "o", "i"]
|
||||||
[62.05812, "o", "!"]
|
[62.05812, "o", "!"]
|
||||||
[62.318457, "o", "'"]
|
[62.318457, "o", "\""]
|
||||||
[63.567055, "o", "\u001b[?2004l\r\r\n"]
|
[63.567055, "o", "\u001b[?2004l\r\r\n"]
|
||||||
[63.653316, "o", "\u001b[90mvim\u001b[92m|\u001b[37mwiki\u001b[0m: Generating links..."]
|
[63.653316, "o", "\u001b[90mvim\u001b[92m|\u001b[37mwiki\u001b[0m: Generating links..."]
|
||||||
[66.050112, "o", "done.\r\n"]
|
[66.050112, "o", "done.\r\n"]
|
||||||
|
@ -979,4 +979,3 @@
|
||||||
[73.022411, "o", "done.\r\n"]
|
[73.022411, "o", "done.\r\n"]
|
||||||
[73.035142, "o", "[master 593e5ec] Update vimwikiwiki!\r\n 2 files changed, 6 insertions(+), 2 deletions(-)\r\n"]
|
[73.035142, "o", "[master 593e5ec] Update vimwikiwiki!\r\n 2 files changed, 6 insertions(+), 2 deletions(-)\r\n"]
|
||||||
[73.035556, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[J> \u001b[K\u001b[67C \u001b[68D"]
|
[73.035556, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[J> \u001b[K\u001b[67C \u001b[68D"]
|
||||||
[75.268685, "o", "\u001b[?2004l\r\r\n"]
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# Copyright (c) 2021 Steven Stallion
|
# Copyright (C) 2021 Steven Stallion <sstallion@gmail.com>
|
||||||
# All rights reserved.
|
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# Copyright (c) 2021 Steven Stallion
|
# Copyright (C) 2021 Steven Stallion <sstallion@gmail.com>
|
||||||
# All rights reserved.
|
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# Copyright (c) 2021 Steven Stallion
|
# Copyright (C) 2021 Steven Stallion <sstallion@gmail.com>
|
||||||
# All rights reserved.
|
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# Copyright (c) 2021 Steven Stallion
|
# Copyright (C) 2021 Steven Stallion <sstallion@gmail.com>
|
||||||
# All rights reserved.
|
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# Copyright (c) 2021 Steven Stallion
|
# Copyright (C) 2021 Steven Stallion <sstallion@gmail.com>
|
||||||
# All rights reserved.
|
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# Copyright (c) 2021 Steven Stallion
|
# Copyright (C) 2021 Steven Stallion <sstallion@gmail.com>
|
||||||
# All rights reserved.
|
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# Copyright (c) 2021 Steven Stallion
|
# Copyright (C) 2021 Steven Stallion <sstallion@gmail.com>
|
||||||
# All rights reserved.
|
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
@ -54,10 +53,10 @@ logger = logging.getLogger(__name__)
|
||||||
def cli(ctx, *args, **kwargs):
|
def cli(ctx, *args, **kwargs):
|
||||||
"""Vimwiki Command-Line Interface
|
"""Vimwiki Command-Line Interface
|
||||||
|
|
||||||
vimwiki is a command-line interface to Vimwiki, a plugin for the Vim text
|
vimwiki-cli is a command-line interface to Vimwiki, a plugin for the Vim
|
||||||
editor. It provides a front-end for interactive editor commands and can
|
text editor. It provides a front-end for interactive editor commands and
|
||||||
be used to automate repetitive tasks such as rebuilding tag metadata and
|
can be used to automate repetitive tasks such as rebuilding tag metadata
|
||||||
generating links, all from the command line.
|
and generating links, all from the command line.
|
||||||
|
|
||||||
Global options may also be configured using environment variables:
|
Global options may also be configured using environment variables:
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# Copyright (c) 2021 Steven Stallion
|
# Copyright (C) 2021 Steven Stallion <sstallion@gmail.com>
|
||||||
# All rights reserved.
|
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# Copyright (c) 2021 Steven Stallion
|
# Copyright (C) 2021 Steven Stallion <sstallion@gmail.com>
|
||||||
# All rights reserved.
|
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# Copyright (c) 2021 Steven Stallion
|
# Copyright (C) 2021 Steven Stallion <sstallion@gmail.com>
|
||||||
# All rights reserved.
|
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
@ -114,7 +113,7 @@ class GlobalCommand(Command):
|
||||||
elif wiki.select:
|
elif wiki.select:
|
||||||
args.insert(0, 'VimwikiUISelect')
|
args.insert(0, 'VimwikiUISelect')
|
||||||
|
|
||||||
# Force interactive if VimwikiUISelect executed:
|
# Force interactive if VimwikiUISelect will be executed:
|
||||||
options['interactive'] = True
|
options['interactive'] = True
|
||||||
|
|
||||||
Command.__init__(self, wiki, *args, **options)
|
Command.__init__(self, wiki, *args, **options)
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# Copyright (c) 2021 Steven Stallion
|
# Copyright (C) 2021 Steven Stallion <sstallion@gmail.com>
|
||||||
# All rights reserved.
|
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# Copyright (c) 2021 Steven Stallion
|
# Copyright (C) 2021 Steven Stallion <sstallion@gmail.com>
|
||||||
# All rights reserved.
|
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
|
Loading…
Reference in a new issue