git-open icon indicating copy to clipboard operation
git-open copied to clipboard

Customization option of url needed.

Open yunsangr opened this issue 3 years ago • 0 comments

Customization option of url needed since the keyword "tree" is added to the url by default it does not work with some repo websites, which is yona in my case.

This is the output when i type git open -p

➜  git open -p           
http://yona.linewalks.com/myName/myRepoName/tree/myBranchName

but to work in yona, the url has to be the following below. http://yona.linewalks.com/myName/myRepoName/code/myBranchName

So, just adding the customization to the url, it might work with other platforms too. I suggest the following options as examples.

➜  git open --default_url      
http://yona.linewalks.com/myName/myRepoName ( 0 )
http://yona.linewalks.com/myName/myRepoName/tree/myBranchName ( x )
-> git  open --remove_keyword=tree
http://yona.linewalks.com/myName/myRepoName/myBranchName ( O )
http://yona.linewalks.com/myName/myRepoName/tree/myBranchName ( x )
-> git  open --replace_keyword=tree --replace_with=code   
http://yona.linewalks.com/myName/myRepoName/code/myBranchName ( O )
http://yona.linewalks.com/myName/myRepoName/tree/myBranchName ( x )

yunsangr avatar May 14 '21 09:05 yunsangr