Skip to content

ee-xxx command does not top out the terminal window #26

Description

@harisonkhlil

Each time, I need to manually use Command + Tab to switch windows in order to select wezterm and to choose and input.

Activity

  1. eval-exec commented on Jan 14, 2025

    @eval-exec
    Owner

    Are you living in MacOS? I am a Linux user and have no experience with macOS.

    Hey @yibie, do you know how to configure the window focus rules or related settings on macOS?

  2. eval-exec commented on Jan 14, 2025

    @eval-exec
    Owner

    Hi @harisonkhlil, could this be helpful to you?

  3. harisonkhlil commented on Jan 14, 2025

    @harisonkhlil
    Author

    Yes, I'm using macOS, and the method you recommend does work, but it's just an overkill, are there other ways?

  4. yibie commented on Jan 14, 2025

    @yibie

    Another way to focus to WezTerm windows is like this, from here:

    (defun ee-git-diff()
      (interactive)
      (let* ((working-directory (ee-get-project-dir-or-current-dir))
             (full-command (format  "cd %s && osascript -e 'tell application \"WezTerm\" to activate' && PAGER=delta git diff HEAD~1"
                                    working-directory)))
        (ee-start-process-shell-command-in-terminal
         "ee-git-diff" full-command #'ee-git-diff--callback)))
    
  5. harisonkhlil commented on Feb 8, 2025

    @harisonkhlil
    Author

    Hi everyone, I found solution!!!

    now, brew uninstall wezterm

    And go to Wezterm official website download dmg...

    To use wezterm binary from a terminal emulator, like wezterm ls-fonts you'll need to add the location to the wezterm binary folder that exists inside the WezTerm.app, to your environment's $PATH value. For example, to add it to your ~/.zshrc file, and assuming your WezTerm.app was installed to /Applications, add:

    export PATH="/Applications/WezTerm.app/Contents/MacOS:$PATH"

    Add this follows to you config.el

    (defun switch-to-wezterm ()
        "Switch to WezTerm terminal."
        (interactive)
        (do-applescript "
        tell application \"WezTerm\"
          activate
        end tell"))
    
      (advice-add 'ee-run :after
                  (lambda (&rest _)
                   (sleep-for 0.1)
                    (switch-to-wezterm)))

    Why it didn't work before, it would show two wezterm apps, it turns out that the binary installed by homebrew calls wezterm-gui instead of Wezterm. Oh shit

  6. harisonkhlil commented on Feb 8, 2025

    @harisonkhlil
    Author

    (sleep-for 0.1) is a no-brainer, any other optimizations?

  7. eval-exec commented on Jan 10, 2026

    @eval-exec
    Owner

    @yibie Greetings. Did you find a way to get ee-xxx working well on macOS yet?

  8. yibie commented on Jan 10, 2026

    @yibie

    I tried Kitty and Ghostty, and the conclusion is that Ghostty can currently open a window above Emacs when entering the ee-xxx command, and after the operation is completed, it can transfer the data back to Emacs. However, the problem is that the Ghostty window is severely offset in position. I am still trying to find a way to solve this final step.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions