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

Support stripping multiple levels of ending folders in Copy > Copy Leading Path to Clipboard #784

Closed
brlin-tw opened this issue Mar 23, 2018 · 1 comment

Comments

@brlin-tw
Copy link
Contributor

brlin-tw commented Mar 23, 2018

Sometimes only fewer levels of path is necessary to describe the change, it would be helpful if Git Cola can strip them automatically.

For example a staged file distribution/snappy/snap/snapcraft.yaml, one may want to use distribution/snappy or simply distribution as the commit title tag.

The expected interface is a sub-menu under Copy > Copy Leading Path to Clipboard, with stripped paths of different levels as options.

Thanks!

@brlin-tw brlin-tw changed the title Support stripping selected level of ending folders in Copy > Copy Leading Path to Clipboard Support stripping multiple levels of ending folders in Copy > Copy Leading Path to Clipboard Mar 24, 2018
davvid added a commit to davvid/git-cola that referenced this issue Feb 5, 2023
Teach the "Copy Leading Path" action to strip an arbitrary number of
leading paths from the copy path.

Add an inline spinbox to the menu action that allows setting the value.

Closes git-cola#784
Reported-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
davvid added a commit that referenced this issue Feb 5, 2023
Related-to: #784
Signed-off-by: David Aguilar <davvid@gmail.com>
@davvid davvid closed this as completed in c53ba39 Feb 5, 2023
davvid added a commit that referenced this issue Feb 5, 2023
Related-to: #784
Signed-off-by: David Aguilar <davvid@gmail.com>
davvid added a commit that referenced this issue Feb 5, 2023
Related-to: #784 #779 #1047 #1062
Signed-off-by: David Aguilar <davvid@gmail.com>
@davvid
Copy link
Member

davvid commented Feb 5, 2023

Sorry it took so long, but this is now available via the right-click context menu. It remembers your session state and hopefully it's intuitive enough.

There's still some minor styling issues that I'll be looking into, but the core functionality is now available. Thanks again!

davvid added a commit to davvid/git-cola that referenced this issue Feb 5, 2023
…dget

Related-to: git-cola#784
Signed-off-by: David Aguilar <davvid@gmail.com>
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

2 participants