Skip to content

Save open tab sets #13951

Closed
Closed

Description

@devtanc

Feature Request

I often need to switch between tasks and will open a set of files for each task that I am working on. For instance, I may be working on a long-term feature ticket on the server side of my app and have open our server.js and a few other files related to the issue. I then get a hotfix that I need to take care of on the client side and need to close those tabs, open another set of client-side code files to work on that hotfix, then go back and try to remember which files I had open for the long-term feature.

It would be useful to be able to save the tab set that I have open, switch to the new task and finish it up, then simply use that saved set to reopen those tabs and restore that workspace.

Initial thoughts on feature requirements

  • Ability to save a tab set with a user-specified identifier (this would save the tabs and the tab ordering)
  • Ability to remove saved tab sets
  • Ability to rename saved tab sets (this may add unnecessary complexity for a v1 feature)
  • Menu for accessing the saved tabs, I'm thinking similar to switching files with ⌘/Ctrl+P (maybe even use that same shortcut, since it's a sort of file-switching functionality)
  • When accessing a tab set, either completely ignore files that no longer exist, or give a user-facing warning that certain files were not found, but still open all remaining files.

Activity

  1. roblourens commented on Oct 18, 2016

    @roblourens
    Member

    In your scenario, are these files different subsets of files in the same folder? If the client/server files are in different folders, it's easier :)

  2. added
    feature-request
    on Oct 18, 2016
  3. devtanc commented on Oct 18, 2016

    @devtanc
    Author

    tl;dr I guess typically it's sets of files that are in different folders, but not necessarily. If that's all that can be done for now, that's definitely a step up.

    It could be anywhere. It may be that I'm working on a page on the client app that hits a route on the server, which requires a something.util.js file to perform the functions on the route. I'd have those three files open as I work so that I can quickly reference what exactly is being passed from the client page in the req.body or the req.params to the server, and then what the server route code is doing to the data before it hits the util functions.

    Sometimes there will need to be changes in all three/four/more files, and other times they're just open for reference.

  4. added
    *extension-candidate
    on Oct 18, 2016
  5. roblourens commented on Oct 18, 2016

    @roblourens
    Member

    Got it. This could be done by an extension, I suppose. There might be one that can do this already, if not, maybe you can give it a shot.

  6. devtanc commented on Oct 18, 2016

    @devtanc
    Author

    Actually, someone else pointed that out to me and I went ahead and threw together a super basic initial version. Just having some trouble getting the background tabs when the app first opens and haven't looked into persistence yet. It's called Tab Hero

    https://github.com/devtanc/vscode-tab-hero

  7. devtanc commented on Oct 19, 2016

    @devtanc
    Author

    roblourens I'm having difficulty interacting with the tabs, especially when the editor has first opened. Any tabs without focus on startup don't register with either vscode.workspace.textDocuments or with vscode.window.visibleTextEditors until they are given focus, and I am unable to find another way to interact with those tabs. This seems like it may need to be a feature request for the API, since VS Code obviously knows that they're there and they were open. Seems like there should be a function on window that allows the extension to see all text editors, not just the visible/active one.

  8. roblourens commented on Oct 19, 2016

    @roblourens
    Member

    I'm not sure about that one so could you ask on Stack Overflow, or open a new issue as a feature request for a new API?

  9. penguin020 commented on Jun 7, 2017

    @penguin020

    Tanner C (@devtanc) - I like your idea of all things. I hope you continue work on it!

  10. fabiospampinato commented on Nov 8, 2017

    @fabiospampinato
    Contributor

    This kind of extension can't be properly implemented because of #15178

  11. bpasero commented on Nov 17, 2017

    @bpasero
    Contributor

    This feature request will not be considered in the next 6-12 months roadmap and as such will be closed to keep the number of issues we have to maintain actionable. Thanks for understanding and happy coding!

  12. locked and limited conversation to collaborators on Jan 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    *extension-candidatefeature-requestworkbench-tabs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions