mistricky / codesnap.nvim

📸 Snapshot plugin with rich features that can make pretty code snapshots for Neovim
MIT License
473 stars 15 forks source link

Add `workspace` #93

Closed Mr-LLLLL closed 1 month ago

Mr-LLLLL commented 1 month ago

share code snippet to others. workspace is good to show this code blong to some project.

Mr-LLLLL commented 1 month ago

I think implement this will be simply. just custom function to get current workspace. maybe i will submit a PR, if i have some time.

mistricky commented 1 month ago

Hey @Mr-LLLLL thx for the issue reporting, If I understand correctly, do you mean add CWD name to breadcrumbs? It would be great if users could config whether they want to display CWD name. I tend to provide a config item named show_breadcrumbs_cwd_name, default as false, if any user wants to display CWD name, just open it by set it to true.

It would be great if you want to contribute to this feature. To display CWD name, you may need to check this function implementation:

image

Mr-LLLLL commented 1 month ago

Hey @Mr-LLLLL thx for the issue reporting, If I understand correctly, do you mean add CWD name to breadcrumbs? It would be great if users could config whether they want to display CWD name. I tend to provide a config item named show_breadcrumbs_cwd_name, default as false, if any user wants to display CWD name, just open it by set it to true.

It would be great if you want to contribute to this feature. To display CWD name, you may need to check this function implementation:

image

Good idea. i wll be submit PR in someday.

mistricky commented 1 month ago

Hey @Mr-LLLLL, the workspace implementation has already in latest(v1.3.1), can you test it in latest version?

Mr-LLLLL commented 1 month ago

thank you very much. it nice to show workspace now.