Comments (3)
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.
I'm going to close this but please feel free to comment or reopen if you have further questions.
from tabspaces.
from tabspaces.
Related Issues (20)
- advise tab-bar-new-tab? HOT 10
- [feature-requrest] ivy-integration HOT 3
- Error with opening tab space HOT 2
- Switch corresponding tab when switching between buffers? HOT 13
- tabspaces-switch-or-create not creating new 'workspaces'' HOT 8
- Saving tabspaces isolated buffer lists with desktop.el HOT 4
- [Sharing code] Switching tabs via frog-menu HOT 2
- error while installing from melpa HOT 1
- Searching files in a workspace HOT 3
- `tabspaces-session-auto-restore t` doesn't autorestore when switching to project HOT 7
- question about your README HOT 4
- C-c TAB b to switch buffers always lists the current buffer at the top of the list HOT 2
- when switching buffer and tab to an existing buffer, it gets added to the current tabspace HOT 3
- emacs-workspaces--project-name potential problems HOT 2
- Support restoring project eshell and dired buffers in tabspaces HOT 1
- Pick a license HOT 2
- Submit to MELPA HOT 4
- tabspaces-switch-to-or-create-workspace creates two tabs HOT 3
- tabspaces-open-existing-project-and-workspace includes current buffer in new workspace HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tabspaces.