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

Suggest: a way to export neohub workspaces #23

Open
unphased opened this issue Feb 18, 2025 · 1 comment
Open

Suggest: a way to export neohub workspaces #23

unphased opened this issue Feb 18, 2025 · 1 comment

Comments

@unphased
Copy link

unphased commented Feb 18, 2025

I think the one thing I want to be able to do is make it easy upon e.g. rebooting the computer to make all my projects quickly accessible.

Current friction points

  • If i work on 5 projects i to get a terminal open to 5 dirs and run neohub in each.
  • opening neohub to switch to a project only to see i havent started a neovide instance in it is not ideal
  • preemptively opening 5 neovide instances just so the neohub is populated with projects i want to work on is not ideal (just from memory consumption of initially-unneeded editors)

Suggestions

  1. first pass: persistence of active sessions. Any dir that has been neohub'd gets added to a config file or something. Each subsequent neohub open (on startup) will auto-open all the neovides. Bullet 3 above is a factor but I don't care yet, even with only 16GB ram and 100 plugins I think neovide/neovim are pretty much efficient enough here and i might go to up to 8 projects at a time, but not more.

  2. second pass: active sessions can exist in neohub without their neovides actually spawned yet! This is a bit harder than it seems because after a while the list will be filled with random dirs that were opened once and never again. I might suggest just making these evict based on time into a separate section at the bottom of the picker.

@unphased
Copy link
Author

unphased commented Feb 18, 2025

Zeroth pass: allow neohub CLI to accept more than one command. that way i can at least have neohub projects/proj_A projects/projB work/frontend work/backend work/CICD in my zsh command history so i can streamline the first two bullets.

Current workaround:

echo neohub" "{projects/proj_A,projects/projB,work/frontend,work/backend,work/CICD}"\n" | xargs -n2 -I{} sh -c '{}'

it does work but as you can see is a bit ugly; much more practical to have it just be defined as a shell alias...

One thing that is definitely good is that running neohub on the same dir extra times doesnt spawn extraneous neovide instances, so that helps a lot already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant