-
Notifications
You must be signed in to change notification settings - Fork 22
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
add option to keep projects in nested directories #187
Comments
I am aware that it is possible to do this by setting |
Yeah, it seems to be related, if #23 were implemented that should fix my issue. |
Yeah I also agree this is something #23 could tackle (along with a slew of other customizations). /usr/bin/fw-add-nested:
and then you can just do It isn't the sexiest but that would work with unlimited flexibility today and we won't break CLI backwards compatibility especially in the case of something like fw add. |
This breaks fw sync.
On Mon, Jun 14, 2021, at 07:07, Maximilien Riehl wrote:
Yeah I also agree this is something #23 <#23> could tackle (along with a slew of other customizations).
I guess there is a workaround where you can "implement" your logic in a shell alias, by saying something like:
/usr/bin/fw-add-nested:
`#!/bin/bash
REMOTE=${1:?"Usage: $0 <git remote>"}
NAME=$(echo "$REMOTE" | cut -d "/" -f2 | tr -d ".git")
fw add "$REMOTE" --override-path "/tmp/$NAME/$NAME"
`
… and then you can just do `fw-add-nested ***@***.***:foo/bar.git`
It isn't the sexiest but that would work with unlimited flexibility today and we won't break CLI backwards compatibility especially in the case of something like fw add.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#187 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADCFBD2L6AZSJRKHPO6DVLTSWFAXANCNFSM46RN6IQA>.
|
@bomgar what do you mean it breaks fw sync? It's basically just a project with override path. |
A sorry I should no reply to threads after waking up. |
@LordMZTE is the workaround working for you? Or are you planning on working on the issue yourself? Or should we implement something if we decide what to do and have the time to implement it? |
I haven't tried the workaround yet, but once we decide what to do in #23 I'd be happy to contribute! |
This is a short title but would be a huge feature. I discovered |
this would solve a lot. I just don't have time to work at it at the moment. |
Also try |
@chevdor I just looked at the code. Tags can define the workspace. Can you try if that solves your problem? |
@bomgar happy new year 🎉 :) I am not sure I can/want to use tags for the use case. Honnestly I did not know about So say:
Do you think that would be possible ? My main use case is that I have soo many projects under the canonical root and I now group them so I go from:
to
|
If you create a tag like this:
Every project tagged with this tag will be synced to |
yes, for some subfolder per year, that seems to be a good option and that was indeed my exemple. I may use it but I will likely sort also per "topic" or project and I find it too much to have a tag per project and having to move the project to the right place. I think it would be more convenient if fw could simply detect the folder's location and set the path accordingly. Howver, I can foresee conflicts if say my |
do you need tags have a priority. |
|
It will be more like and fw will move the files. I already built something but i'm unsure about the move. It is only atomic if source and destination are on the same file system. |
@chevdor can you try |
So I just tested the following:
The issue may be due to MacOS and its funky |
if you already moved it you should use |
AFAIC, with all those options, we are good regarding the topic. Thanks for the hard work @bomgar |
I personally like keeping my projects in a nested directory.
For example, if I'm working on a project
foo
, then the git repo would be cloned at~/dev/foo/foo
.With this structure, I can keep additional things needed (such as testing environments) for
foo
in the outerfoo
directory, without interfering with the repo.However, fw doesn't seem to support this. It would be really awesome to have this, as fw currently wouldn't work with some of my projects for that reason.
The text was updated successfully, but these errors were encountered: