Commit graph

1198 commits

Author SHA1 Message Date
Suhas
77646eaa1a make format 2021-01-23 11:18:13 -05:00
Suhas
263c79cea6 add dev dependencies on pytest -mock and -cov 2021-01-23 11:13:06 -05:00
Suhas
43b8407ad5 implement editor override step 2021-01-23 11:08:01 -05:00
Suhas
12d2f48f97 add linewrap override scenario 2021-01-23 11:07:51 -05:00
Suhas
2fc19c41b9 start writing integration test 2021-01-21 22:48:01 -05:00
Suhas
692a979efe clean up unused import 2021-01-21 22:47:46 -05:00
Suhas
9e2b7dd0c1 refactor override unittest 2021-01-21 22:47:29 -05:00
Suhas
c4b3d51181 make format 2021-01-20 21:35:26 -05:00
Suhas
5fe6caf805 implement runtime override 2021-01-20 15:12:30 -05:00
Suhas
554d25ae17 trivial whitespace change 2021-01-20 15:11:48 -05:00
Suhas
53d7d8cea4 add jrnl interface test for overriden configurations 2021-01-20 15:09:45 -05:00
sugas182
ee7cd44a32 remove unneeded import 2021-01-19 21:15:03 -05:00
sugas182
a64fa82a06 update gitignore 2021-01-19 21:13:51 -05:00
sugas182
744824ddee identify location to apply override in "main" 2021-01-19 21:13:51 -05:00
sugas182
110e2b9022 add test and argument handler for runtime override of configurations. 2021-01-19 09:03:43 -05: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