Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the default of -d to be current directory, and require neuron.dhall #389

Closed
srid opened this issue Sep 12, 2020 · 3 comments
Closed
Assignees
Labels
CLI good first issue Good for newcomers
Milestone

Comments

@srid
Copy link
Owner

srid commented Sep 12, 2020

The default value for -d / --zettelkasten-directory is ~/zettelkasten. Change that to always be the current working directory. This allows users to run neuron in multiple zettelkastens without having to specify -d all the time; they only have to cd to the directory before running neuron.

Neuron must error-out if a neuron.dhall file does not exist in the current directory. This means, we make neuron.dhall a requirement. Because, we don't want users to run neuron accidentally on some non-zettelkasten directory, such as project directories with README.md.

In effect, neuron will behave like Git, treating neuron.dhall as .git, and -d behaving like Git's -C.

This will affect editor extensions, by @aca @felko @ihsanturk @fiatjaf

@srid srid added the CLI label Sep 12, 2020
@srid srid added this to the 1.0 milestone Sep 12, 2020
@srid srid changed the title Change the default of -d to be current directory Change the default of -d to be current directory, and require neuron.dhall Sep 12, 2020
@srid srid added the good first issue Good for newcomers label Sep 12, 2020
@srid srid self-assigned this Sep 13, 2020
@srid srid closed this as completed in 5f966a5 Sep 13, 2020
@fiatjaf
Copy link
Contributor

fiatjaf commented Sep 13, 2020

Well, that was fast.

@bryan4887
Copy link

Fast, indeed. neuron search doesn't work though, while neuron -d . search does...

@srid
Copy link
Owner Author

srid commented Sep 13, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants