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

suggestion - Pin file across visual studio sessions #27

Closed
marco2250 opened this issue Oct 31, 2019 · 11 comments
Closed

suggestion - Pin file across visual studio sessions #27

marco2250 opened this issue Oct 31, 2019 · 11 comments

Comments

@marco2250
Copy link

This plugin is great and promises a lot. Thank you and congratulations for the great job!

I would love to be able to be able to pin a file and keep it on the list even if I close the file in visual studio editor, even if I close and re-open visual studio.

That would be useful with files that I tent to work from time to time.

Thank you.

@Ant-f
Copy link
Owner

Ant-f commented Oct 31, 2019

Hi Marco

Thanks for using Working Files List; glad you like it. If I understand your question correctly, you should be able to do this already. See here for more info:

https://github.com/Ant-f/WorkingFilesList/wiki/User-Guide#pinned-items

The documentation is a little old: pinned items are persisted when the solution is closed/reopened as of version 1.4

@marco2250
Copy link
Author

Thank you for your answer, but my request is bit different.

I want to be able to CLOSE the file and keep it pinned...

Thank you

@Ant-f
Copy link
Owner

Ant-f commented Oct 31, 2019

Sorry, I may be missing something. When I pin a file by either:

  • Double-clicking the item in Working Files List
  • Click the pin button that appears on the right of an item in Working Files List on mouse-over

it appears in the top part of Working Files List. I can then close the file in Visual Studio by any of the following methods:

  • Close it from the Visual Studio text editor tab
  • Click the 'x' button that appears on the right of an item in Working Files List on mouse-over
  • Middle click an item in Working Files List

For me in all three scenarios, the editor is closed in Visual Studio, and the item in the bottom part of Working Files List disappears. However, the pinned item at the top of Working Files List remains there. Do the pinned items disappear when you close the file?

@marco2250
Copy link
Author

No problem!

The fact is that when I close a pinned file, it's removed from "Working Files List".

What I would like is to keep it on "Working Files List", even though I closed it in Visual Studio or even if I close and re-open visual studio.

Explaining: There are files that I tend to work from time to time and it would be useful to be able to open them more easily.

Thank you

@Ant-f
Copy link
Owner

Ant-f commented Oct 31, 2019

I've just created a new console app that has two classes: class1.cs and class2.cs. I have both classes open and have pinned class1.cs by double-clicking it. Working Files List looks like this:

WorkingFilesListClass1Open

You can see that class1.cs (highlighted in yellow) appears twice: the one above is where pinned items appear. The one below is in the list of all open files. When I close the editor for class1.cs in Visual Studio, Working Files List looks like this:

WorkingFilesListClass1Closed

class1.cs (highlighted in yellow) now only appears once: in the above section, where pinned items appear. As class1.cs has been closed, it no longer appears in the section for open files (as shown in the first image).

Unless I have misunderstood something, the functionality you're asking for already exists

@marco2250
Copy link
Author

Please, check enclosed video showing it's not working for me, vstd 2019.

Thank you!!!

@Ant-f
Copy link
Owner

Ant-f commented Oct 31, 2019

Sorry, I can't find a link to the video.

Also, which version of Working Files List are you using?

Thanks

@marco2250
Copy link
Author

The latest one (downloaded it today).

Link to video:
http://www.ticow.com.br/files/media/2019-10-31_17-12-31.zip

@Ant-f
Copy link
Owner

Ant-f commented Oct 31, 2019

Thanks for the video. It seems the problem is that pinning does not work when using files that are not part of a Visual Studio project (e.g. opening individual files). This may require a bit more thought and investigation, when I have a bit more time.

Pinning does work when used with files that are part of a Solution and Project though.

@marco2250
Copy link
Author

I understand. Thank you for all your help!

How can I add a feature request (I'm new to github)

@Ant-f
Copy link
Owner

Ant-f commented Oct 31, 2019

I've created a new issue, with a reference to this, and will close this to avoid confusion

@Ant-f Ant-f closed this as completed Oct 31, 2019
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