Code Monkey home page Code Monkey logo

Comments (2)

antifuchs avatar antifuchs commented on August 18, 2024 1

I ended up giving up trying to use the mac tab-bar with bufler, as things like tab-bar-switch-to-tab (by name) doesn't work with the advice that's in place. What does work, however, is combining eyebrowse (and likely other window configuration systems) with bufler!

This customization code helps a lot:

(defvar asf--bufler-workspace-assignments (vector nil nil nil nil nil nil nil nil nil nil)) ; 10.

(add-hook 'bufler-workspace-set-hook
          (defun asf-register-bufler-ws-with-eyebrowse (workspace)
            (setf (aref asf--bufler-workspace-assignments (eyebrowse--get 'current-slot))
                  workspace)))

(add-hook 'eyebrowse-post-window-switch-hook
          (defun asf-eyebrowse-bufler-switch-group ()
            (let ((eb-workspace (eyebrowse--get 'current-slot)))
              (bufler-workspace-frame-set (aref asf--bufler-workspace-assignments eb-workspace)))))

Now, whenever I switch to one of the eyebrowse window configs (to one of the 10 that I have bound to s-<number key>, bufler switches workspaces too; and whenever my bufler frame workspace changes, that gets recorded so eyebrowse can keep up, as well.

I'm pretty happy with this solution, despite not being tab-bar based - hope this customization is useful to somebody else. I'll close this issue.

from bufler.el.

alphapapa avatar alphapapa commented on August 18, 2024

As you have probably guessed, I don't use a Mac. I'd prefer to not add platform-specific workarounds to this project. If you're able to come up with some code to work around this problem on a Mac, I'd be willing to mention it in the documentation.

from bufler.el.

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.