-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #285 from jpgill86/global-config-file
Allow users to change CLI argument defaults in a global config file
- Loading branch information
Showing
10 changed files
with
434 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.. _global-config: | ||
|
||
Changing Default Behavior | ||
========================= | ||
|
||
Default parameters used by the command line interface for launching the app, | ||
such as which metadata file to open initially, can be configured using global | ||
configuration settings located in ``.neurotic/neurotic-config.txt`` in your | ||
home directory: | ||
|
||
- Windows: ``C:\Users\<username>\.neurotic\neurotic-config.txt`` | ||
- macOS: ``/Users/<username>/.neurotic/neurotic-config.txt`` | ||
- Linux: ``/home/<username>/.neurotic/neurotic-config.txt`` | ||
|
||
The file can be opened easily using the "View global config file" menu action. | ||
|
||
If this file does not exist when *neurotic* is launched, the following template | ||
is created for you: | ||
|
||
.. literalinclude:: ../neurotic/global_config_template.txt | ||
:language: toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ at the same datasets! | |
citations | ||
metadata | ||
examples | ||
globalconfig | ||
api | ||
releasenotes | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# --- neurotic global config -------------------------------------------------- | ||
# Use this file to configure the way neurotic behaves. This file uses the TOML | ||
# format. | ||
|
||
[defaults] | ||
# When the app is launched, the following customizable defaults are used unless | ||
# overridden by command line arguments. Example uses include: | ||
# - Uncomment the "file" parameter and insert the path to your favorite | ||
# metadata file so that it always opens automatically | ||
# - Uncomment the "lazy" parameter and set it to false to always disable fast | ||
# loading, ensuring that expensive procedures like spike detection and | ||
# filtering are performed by default | ||
# To open the example metadata file by default, either leave the "file" | ||
# parameter commented or set it to "example". To initially select the first | ||
# dataset in the file, either leave the "dataset" parameter commented or set it | ||
# to "none". | ||
|
||
# file = "example" | ||
# dataset = "none" | ||
# debug = false | ||
# lazy = true | ||
# thick_traces = false | ||
# show_datetime = false | ||
# ui_scale = "medium" | ||
# theme = "light" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.