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

Make tabs auto pin when edited #11

Closed
Awbmilne opened this issue Dec 12, 2020 · 2 comments
Closed

Make tabs auto pin when edited #11

Awbmilne opened this issue Dec 12, 2020 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@Awbmilne
Copy link

I use VScode a lot, and it has a great feature that could make editing and browsing notes easy without the hassle of manually pinning and unpinning tabs.

When you open a file in vscode, the title in the tab shows up as italic. This indicates that the file is termprarily open. If you open another file without editing the temporary one, it closes and the tab is removed. BUT, if you edit the temporary file, The title becomes non-italic and the tab is open. You then need to close the tab with the x or use ctrl+w to close it.

Here is an example:

VScode Tabs

Notice:

  • A tab stops being temporary when the file in the list is double-clicked (whether already open or not)
  • A tab stops being temporary when the tab is double clicked
  • A tab stops being temporary when the file is edited

It may be hard to tell the difference between a temporary and non-temporary tab in that Gif, here is a better shot of just the italics changing:

VScode Tabs (Zoom)

You can also close any tab easily using the x, or the Current tab with Ctrl+W

VScode Tabs (Close)

These are very developer oriented functions, allowing you to read through a file without adding to your numerous tabs already open. But i find it would help me greatly with managing multiple open notes at the same time.

Though, it may be a nucence for some who would use tabs rarely. So a option to toggle this functionality may be required.

@benji300
Copy link
Owner

Thank you for this detailed specification 👍
You have listed some interesting points, which would be quite useful extensions. Let me summarize your requirements:

  • A tab stops being temporary when the file in the list is double-clicked (whether already open or not)

  • A tab stops being temporary when the tab is double clicked

    • I'm not quite sure, but I guess this could be added to the panel.
  • A tab stops being temporary when the file is edited

    • This one is interesting, but could be difficult to implement. Actually there's only one event which is triggered anytime the note is edited. But it is triggered when any property of the note is changed. So not only the content or title. I could possibly save the note content temporarily and compare each time to see if it has changed. But that won't be very performant for large notes. Long story short, I'll take a look at it, but can't promise anything.

@benji300 benji300 added the enhancement New feature or request label Dec 14, 2020
@benji300
Copy link
Owner

Addition:
For "A tab stops being temporary when the file is edited", I would add an option like: Automatically pin edited notes

@benji300 benji300 added this to the v1.0.0 milestone Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants