Commit graph

1336 commits

Author SHA1 Message Date
Micah Jerome Ellison
897943857d
Simplify VS Code documentation for all platforms and add note about PATH variable (#1160) 2021-01-23 13:35:32 -08:00
Jrnl Bot
b535782621 Update changelog [ci skip] 2021-01-23 21:29:43 +00:00
dependabot[bot]
ea7357ca26
Bump pyyaml from 5.3.1 to 5.4.1 (#1158)
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.3.1 to 5.4.1.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/5.3.1...5.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-23 13:27:54 -08:00
Jonathan Wren
f80f033d5d
fix typos 2021-01-17 11:22:02 -08:00
Jrnl Bot
99d0198530 Update changelog [ci skip] 2021-01-17 01:42:03 +00:00
Jonathan Wren
c06b5cf297
Fix homebrew release, add options for relase pipeline (#1154) 2021-01-16 17:40:09 -08:00
Jrnl Bot
2e254d55fb Update changelog [ci skip] 2021-01-16 23:22:56 +00:00
Jrnl Bot
b117c7a260 Increment version to v2.7-beta 2021-01-16 23:20:59 +00:00
Micah Jerome Ellison
9e6cd8820f
Fix OS compatibility issues for editors with spaces, slashes, and quotes (#1153)
* Fix inverted POSIX check, refactor os_compat, and add tests for it
* Fix missing parentheses and remove skip_win on test that is passing in Windows now
* Fix expected quotes in quoted args
* Make  output clearer on failing test
* Bringing skip_win back to test whose failure is a bit more complicated than expected
2021-01-16 15:19:11 -08:00
Jrnl Bot
b6b6e7750e Update changelog [ci skip] 2021-01-16 22:57:15 +00:00
Karim Rahal
f0e8fa2060
Add new -today-in-history, -month, -day, and -year search filters (#1145)
* Introduce -reminisce, -month, -day, and -year
* Update expected_args in parse_args tests
* Add check before creating compare_d
* Misc changes
* Implement testing for -month, -day, -year, and -reminisce
* Compress tests into one Scenario Outline
* Fix failing tests by updating dates_similar journal
* Create 'we set current date and time to' step
* Use time.parse in reminisce
* Update dates_similar journal
* Make 'Searching in a journal' test shorter
* Lint
* Implement reminiscing test
* Add combination tests
* Finalize tests
* Finalize pytests
* Simplify reminisce tests
* Change reminsice help (since it also shows today's entries)
* Re-do tests; use various tests
* Remove old test data
* Better scenario description
* Standardize format for compare_d
* Rename -reminisce to -today-in-history
2021-01-16 14:55:27 -08:00
Jrnl Bot
18058c74e5 Update changelog [ci skip] 2021-01-16 22:52:40 +00:00
Karim Rahal
a6b828e892
Add new date format (--format date) for heatmapping (#1146)
* Create datecount plugin
* Fix plugin import
* Update datecount format
* Create datecount test
* Remove outdated comment
* Remove unnecessary datecount export condition
* Update test config
* Move get_date_counts into DateCountExporter; misc changes
* Use --format instead of --export in datecount test
* Update datecount test to include configs
* Better datecount test
* Remove old tests
* Change 'datecounts' to 'dates'
2021-01-16 14:50:47 -08:00
Seopril
5c0a2d4c4e
Fix YAML export formatting(#1065) (#1150)
* Fix YAML export syntax
* Fix YAML body block indentation
2021-01-16 14:44:55 -08:00
Jrnl Bot
61f8406412 Update changelog [ci skip] 2021-01-09 20:40:42 +00:00
Seopril
dbd12fc500
Clarify installation documentation (#1097) (#1137)
* Clarify installation documentation (#1097)
* Update installation docs
2021-01-09 12:39:06 -08:00
Jrnl Bot
08a0c2d11f Update changelog [ci skip] 2021-01-09 19:08:44 +00:00
Gustavo Matias
6980ed1906
Emphasize installing dependencies before testing (#1148)
As a beginner in Python it wasn't clear that `poetry install` needed to be run before `make test` for instance. That threw a sort of obscure error until I figured it out what the solution was. This is extremely minor, but make sure installing dependencies is the very first instruction can reduce some friction when contributing.
2021-01-09 11:07:03 -08:00
Micah Jerome Ellison
c155bafa84
Notify user when config directory can't be created because there is already a file with the same name (#1134)
* Moving configuration values and methods from install.py to config.py -- everything is broken right now
* Using context to store config path - still lots broken
* Use mocks and context.config_path to store test configs - many tests still broken though
* Update changelog [ci skip]
* Fix jrnl --ls crash
* Fix crash when no editor configured
* Attempt to patch config path with test data - doesn't appear to be working
* Properly use patched config path and add config given to scenario that wasn't using it
* Fix copypasta
* Fix editor test that needed patched config and trapping for system exit
* Add exception and handling for when configuration directory is actually a file
* Remove extraneous comment
* Use more generic JrnlError with messaging switchboard
* Format code a bit nicer
* Remove unnecessary given in diagnostic test
* Ensure full error message is output
* Remove unnecessary whitespace characters
2021-01-02 15:19:44 -08:00
Jrnl Bot
e0c53c28bb Update changelog [ci skip] 2021-01-02 22:55:45 +00:00
Jonathan Wren
f041402533
Add packaging label to included sections in changelog (#1140) 2021-01-02 14:53:54 -08:00
Jrnl Bot
bddec64faa Update changelog [ci skip] 2021-01-02 21:28:22 +00:00
Karim Rahal
57de4f9ba4
Fix keyring error handling (#1138)
* Capture KeyringLocked exception and allow manual password entry
* Create LockedKeyring for steps
* Support types in set_keyring step
* Clarify LockedKeyring docs
* Deal with locked exceptions elsewhere too
* Create behave tests for locked keyring
* Fix linting
* Fix keyring step to allow no type
* Handle all keyring retrieval errors
* Better keyring error handling
* Remove locked keyring for steps; generalize failed keyring
* Finalize tests for keyring handling
* Update set_keyring step
* Make password of failed keyring encryption test more semantic
2021-01-02 13:26:45 -08:00
Jrnl Bot
9f1bef7fde Update changelog [ci skip] 2021-01-02 21:24:55 +00:00
Karim Rahal
e9fd5cdc0e
Allow custom extensions when editing (for easier syntax highlighting) (#1139)
* Create tests and steps for temporary filename suffix
* Have temporary filename suffix be -{template_filename} or .jrnl
* Finalize extension_editor_file
* Make suffix local variable in get_text_from_editor
2021-01-02 13:23:15 -08:00
dependabot[bot]
c47c1e209e
Bump keyring from 21.7.0 to 21.8.0 (#1136)
Bumps [keyring](https://github.com/jaraco/keyring) from 21.7.0 to 21.8.0.
- [Release notes](https://github.com/jaraco/keyring/releases)
- [Changelog](https://github.com/jaraco/keyring/blob/main/CHANGES.rst)
- [Commits](https://github.com/jaraco/keyring/compare/v21.7.0...v21.8.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-02 12:28:03 -08:00
Jrnl Bot
ada7393979 Update changelog [ci skip] 2021-01-02 20:27:26 +00:00
Jonathan Wren
d4ca29ed2c
Fix broken search bar in docs site (#1135)
* Fixes for search on docs site

We previously didn't include the search results page in our CI testing,
so we missed some issues on that page. This ensures that page is part of
regular testing, and also includes fixes for the issues present.

* fix sidebar contrast
2021-01-02 12:24:21 -08:00
Jonathan Wren
31ada29a37
fix doc site css 2020-12-28 09:55:15 -08:00
Jrnl Bot
4d58bac123 Update changelog [ci skip] 2020-12-26 23:24:54 +00:00
Jonathan Wren
7930d9750a
Fix search on docs site (#1133) 2020-12-26 15:23:01 -08:00
Jrnl Bot
d111b04c14 Update changelog [ci skip] 2020-12-26 21:10:29 +00:00
Jonathan Wren
f8513d3859
Add packaging label to changelog generator config (#1132)
We added dependabot and told it to use a new packaging label. This
change gives that label its own separate section in the changelog.
2020-12-26 13:08:39 -08:00
Jrnl Bot
3bce055c89
Update changelog [ci skip] 2020-12-26 12:08:13 -08:00
dependabot-preview[bot]
8b70497802
Create Dependabot config file (#1131)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-12-26 11:59:53 -08:00
Jrnl Bot
fc8eafa451 Update changelog [ci skip] 2020-12-26 19:02:42 +00:00
Jonathan Wren
870f9aed17
Fix failing contrast test in accessibility tools on docs site (#1126)
* add background-color as fallback for gradients on docs site

This is both for old browser support, and for accessibility. Some
accessibility tools turn off gradients since they can make text hard to
read for those with visual impairment.

* change mobile header color for docs site

The mobile header was using a light-purple to dark-purple gradient, even
though every other gradient on the site is mid-purple to dark-purple.
This commit changes that both for consistency on the site, and because
light-purple causes an accessibility issue with the white text in the
header (even though the accessibility tools don't notice because of the
gradient).
2020-12-26 11:01:27 -08:00
Jrnl Bot
9a4c3e41a6 Update changelog [ci skip] 2020-12-26 19:00:18 +00:00
Jonathan Wren
37c5b0eb11
Fixes to changelog generator (#1127)
* Fix version header detection in changelog

This updates the regex to find the version header in our changelog.
There was a bug that affected patch, alpha, and beta versions. For
example, if we were looking for "v2.5" we might find "v2.5.1" or
"v2.5.1-alpha" or other versions like that.

This led to the changelog not being cleared properly on update, and old
versions sticking around longer than they should.

* re-add option to include author link for merged PRs in changelog

This option was accidentally left out when migrating the changelog
generator tool to github actions.

* fix conditional in changelog workflow

In github actions, booleans always end up as strings. So, it's not
enough to test `env.FULL_RELEASE` because both 'true' and 'false' will
evaluate as true. This fixes the conditional to check for the string
value 'true' instead of relying on a boolean.
2020-12-26 10:58:23 -08:00
Jrnl Bot
2f4ec7ca98 Update changelog [ci skip] 2020-12-26 18:56:53 +00:00
dependabot-preview[bot]
16e313ab70
Bump pytz from 2020.4 to 2020.5 (#1130)
Bumps [pytz](https://github.com/stub42/pytz) from 2020.4 to 2020.5.
- [Release notes](https://github.com/stub42/pytz/releases)
- [Commits](https://github.com/stub42/pytz/compare/release_2020.4...release_2020.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-12-26 10:55:19 -08:00
dependabot-preview[bot]
b25ea7409a
Bump keyring from 21.5.0 to 21.7.0 (#1128)
Bumps [keyring](https://github.com/jaraco/keyring) from 21.5.0 to 21.7.0.
- [Release notes](https://github.com/jaraco/keyring/releases)
- [Changelog](https://github.com/jaraco/keyring/blob/main/CHANGES.rst)
- [Commits](https://github.com/jaraco/keyring/compare/v21.5.0...v21.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-12-26 10:53:47 -08:00
dependabot-preview[bot]
f999caa3a3
Bump pytest from 6.2.0 to 6.2.1 (#1129)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.0 to 6.2.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.0...6.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-12-26 10:52:55 -08:00
Jrnl Bot
3fb9fe5e28
Update changelog [ci skip] 2020-12-19 22:28:31 -08:00
Jrnl Bot
b0de760621
Increment version to v2.6 2020-12-19 22:28:29 -08:00
Jrnl Bot
7cf977a3cb
Increment version to v2.6-beta5 2020-12-19 22:28:27 -08:00
Jonathan Wren
e1cbce8a08
add more debug data to changelog workflow, update changelog 2020-12-19 22:28:26 -08:00
Jonathan Wren
68cf2d773d
do additional check for json data, and retry for 5-ish minutes on failure (#1125) 2020-12-19 22:28:25 -08:00
Jonathan Wren
2e9e857b7b
standardize version regex in release pipeline (#1124) 2020-12-19 22:28:24 -08:00
Jrnl Bot
3dec22651e
Update changelog [ci skip] 2020-12-19 22:28:23 -08:00