You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't believe I've done this instead of real work, but I crave formalization of this feature request I've tossed your way a few times in the past couple months.
Current behavior
To work with a given project, users must manually select it by ID. Projects are not associated with anything in particular.
Desired behavior
When my shell's working directory is in ~/code/project-foo, I invoke your utility, and no .hidden project files exist1, prompt me to name a new project, then save it to the DB and write its ID to .hidden. Do this even if I did not pass the "new project" flag.
When a .hidden file does exist and I invoke your utility, do things without requiring me to pick a proj.
With these powers combined, you could support a workflow like the following:
$ cd ~/code/my-new-proj
$ bbpm entry
No bbpm project in ~/code/my-new-proj. Enter the project's name (default my-new-proj): bread's toaster
Created new project bread's toaster.
<editor automatically opened, I write my entry>
Saved new entry #1 in bread's toaster.
$ emacs work.rs
$ bbpm entry
<editor automatically opened, I write my entry>
Saved new entry #2 in bread's toaster.
$ emacs work2.rs
$ bbpm export --format=pdf
Usecase(s)
I double-dog dare you to tell me the workflow I described is not super good.
1: Worth considering how you want this to behave when .hidden exists and doesn't contain a valid ID, or when it exists and contains a valid ID that doesn't exist in the DB. Also, .hidden is just a placeholder name; use something that won't conflict with other hidden files lying around.
The text was updated successfully, but these errors were encountered:
os.Getwd might be what I'm looking for to get the pwd when the executable is run. Maybe I can check if dir name matches a project to start? OR I can require a hidden file in the pwd with the project name defined?
I would not want to litter any and all directories with .hidden files. I would think it is better to have a simple metadata file somewhere that has projects and their associated directories, and have them support globs or alternatively just does it start with the associated directory.
That to me sounds like it can support the workflow mentioned above whilst keeping everything nice and ordered and contained within the application context. Just use the XDG_CONFIG_HOME, XDG_STATE_HOME or XDG_DATA_HOME.
I can't believe I've done this instead of real work, but I crave formalization of this feature request I've tossed your way a few times in the past couple months.
Current behavior
To work with a given project, users must manually select it by ID. Projects are not associated with anything in particular.
Desired behavior
When my shell's working directory is in
~/code/project-foo
, I invoke your utility, and no.hidden
project files exist1, prompt me to name a new project, then save it to the DB and write its ID to.hidden
. Do this even if I did not pass the "new project" flag.When a
.hidden
file does exist and I invoke your utility, do things without requiring me to pick a proj.With these powers combined, you could support a workflow like the following:
Usecase(s)
I double-dog dare you to tell me the workflow I described is not super good.
1: Worth considering how you want this to behave when
.hidden
exists and doesn't contain a valid ID, or when it exists and contains a valid ID that doesn't exist in the DB. Also,.hidden
is just a placeholder name; use something that won't conflict with other hidden files lying around.The text was updated successfully, but these errors were encountered: