Git Product home page Git Product logo

Comments (3)

mclearc avatar mclearc commented on July 2, 2024

Thanks for your questions. The project as currently stands is pretty dead simple. It just provides a filtered buffer list for the current tab and some help functions for opening projects in workspaces. As for your two use cases, let me see if I can help. You add a buffer to a tab/workpace by simply opening it in the tab. So tabs are themselves indifferent to which project(s) are open in them, or even whether you have multiple projects open in them. If you want to open a project in its own tab use tabspaces-open-existing-project-and-workspace. If you just want to open a project in a tab that already exists and has other buffers you want to keep you would just use project-switch-project (or you could use my project-switch-project-open-file if you want to skip project.el's interactive menu).

Your second case is such that you needn't specify the buffers -- remember all you need to do to add a buffer to a tab/workspace is simply open it in the tab/workspace. So, for example, I have this function to open my email tabspace:

(defun cpm/open-email-in-workspace ()
  "Open mu4e email in its own workspace"
  (interactive)
  (if (member "Email" (tabspaces--list-tabspaces))
      (progn
        (tab-bar-switch-to-tab "Email")
        (cond ((get-buffer "*mu4e-headers*")
               (switch-to-buffer "*mu4e-headers*"))
              ((get-buffer " *mu4e-main*")
               (progn
                 (switch-to-buffer " *mu4e-main*")
                 (delete-other-windows)))
              (t (mu4e))))
    (progn
      (tabspaces-create-workspace)
      (tab-bar-rename-tab "Email")
      (require 'org) 
      (find-file (concat org-directory "mail.org"))
      (mu4e)
      (switch-to-buffer " *mu4e-main*"))))

(bind-key* "s-5" 'cpm/open-email-in-workspace)

If you want separate tabs for mail, rss, etc., but also want them all grouped within one overarching tab you want to use tab-groups. There's a related package for this: https://github.com/fritzgrabo/tab-bar-groups. I think that should work with tabspaces but I haven't tested it extensively. I'm hoping to more clearly accommodate tab-groups in the future.

from tabspaces.

mclearc avatar mclearc commented on July 2, 2024

I'm going to close this but please feel free to comment or reopen if you have further questions.

from tabspaces.

titaniumbones avatar titaniumbones commented on July 2, 2024

from tabspaces.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.