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

Implement gitspaces [setup] - default action when no ~/.gitspaces folder #11

Open
davfive opened this issue Feb 29, 2024 · 0 comments
Open
Assignees
Labels
completed Issue is completed and can be closed enhancement New feature or request
Milestone

Comments

@davfive
Copy link
Owner

davfive commented Feb 29, 2024

Background

After a user runs go install /~https://github.com/davfive/gitspaces/v2@latest for the initial install and run gitspaces for the first time, they are missing two key configurations:

  1. The ProjectPaths list in ~/.gitspaces/config.yml
    This list is used to search for projects when switching spaces

  2. The shell wrapper
    gitspaces often needs to cd into the requested space after an action (e.g., create, sleep, rename, switch). Since the go/bin/gitspaces runs as a subprocess, it can't change directories in the calling (parent) shell. To address this, I use a shell function wrapper of the same name which looks for a file after go/bin/gitspaces exits successfully and cd's to it if found.

Requirements

  1. Until setup is complete and go/bin/gitspaces is being called by the shell function, provide instructions to run the . ~/.gitspaces/<shell>rc to their shell's rc file (~/.bashrc or ~/.zshrc) file.
  2. Until ProjectPaths has paths in it, report an error and provide information on how to fix it.
@davfive davfive added the enhancement New feature or request label Feb 29, 2024
@davfive davfive changed the title Implement first-time setup workflow GitSpace Command: setup Mar 2, 2024
@davfive davfive changed the title GitSpace Command: setup GitSpace v2 Command: setup Mar 2, 2024
@davfive davfive added this to the 2.0.0 milestone Mar 2, 2024
@davfive davfive changed the title GitSpace v2 Command: setup Implement gitspaces setup (or default action when no ~/.gitspaces folder Mar 25, 2024
@davfive davfive changed the title Implement gitspaces setup (or default action when no ~/.gitspaces folder Implement gitspaces [setup] - default action when no ~/.gitspaces folder Mar 25, 2024
davfive pushed a commit that referenced this issue Apr 8, 2024
… explicity setup command. Verified on Mac.
@davfive davfive self-assigned this Apr 9, 2024
@davfive davfive added the completed Issue is completed and can be closed label Apr 9, 2024
davfive added a commit that referenced this issue Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed Issue is completed and can be closed enhancement New feature or request
Development

No branches or pull requests

1 participant