vscode-git-commit icon indicating copy to clipboard operation
vscode-git-commit copied to clipboard

Display file name only

Open fdawans opened this issue 3 years ago • 3 comments

Hello, Thank you for the extension, I am starting to use it. Do you think it could be possible to have an option to display only the file name and not the full path? I have a long path which makes it not really usable.

Thank you !

fdawans avatar Sep 24 '22 17:09 fdawans

Hi can change to only display like the last hundreds characters only, is that ok, or you need only filename ?

rioukkevin avatar Sep 30 '22 09:09 rioukkevin

I agree. And I think the file name only will be good.

Diogo-Rossi avatar Oct 27 '22 22:10 Diogo-Rossi

Hello @rioukkevin! Thanks for this great extension!

I started to make some contributes and wanted to help on this issue also.

I think the file name only will be good.

Actually, the real feature I was looking for was the relative file path (instead of the full path), and not only the file name.

I think that is easy to achieve. But when I tried to debug the extension, I found some strange behaviour:

1. The current version

Using the current version of the extension, a pop up list with the full paths appears.

image

By selecting some file, the full path of the file is used in the commit message.

image

That is ok, this is the matter of this issue.

2. The development version

When I try to debug the extension in development version, a different pop up list appears (file names on labels and full path in the descriptions).

image

By selecting one item, only the file name goes to the commit message

image


My questions ares:

  1. Wasn't the last commit of the repository included in the last release? (I thought that it was included because of the release date, but the different behaviour above shows that maybe the development version is still not released)
  2. Would you like to display the relative file path (instead of the full path or only the filename)? If you do, I can make a PR for that. I think that would be more useful.

Thanks!

Diogo-Rossi avatar Jan 08 '24 12:01 Diogo-Rossi