meow icon indicating copy to clipboard operation
meow copied to clipboard

Feature Request: Shim for Eat

Open jgarte opened this issue 1 year ago • 10 comments

https://elpa.nongnu.org/nongnu/eat.html

Eat needs a shim 😹

jgarte avatar Sep 14 '23 02:09 jgarte

I just tried eat, it works weird with my emacs config. Even though in insert mode, the backspace doesn't work properly, is this expected?

DogLooksGood avatar Sep 15 '23 23:09 DogLooksGood

Hi,

Why does the backspace not work properly? What does it do instead of what you expect?

jgarte avatar Sep 16 '23 04:09 jgarte

Should eat be added to this list and starting in motion state?

https://github.com/meow-edit/meow/blob/master/meow-var.el#L183C22-L183C22

meow-mode-state-list

jgarte avatar Sep 23 '23 19:09 jgarte

No, terminal and repl should use normal state .

DogLooksGood avatar Sep 24 '23 00:09 DogLooksGood

terminal and repl should use normal state .

Right, I realize where there might be an issue then.

Eat starts in semi-char mode instead of emacs-mode:

https://codeberg.org/akib/emacs-eat#headline-1

jgarte avatar Sep 24 '23 13:09 jgarte

@DogLooksGood It would be great if you could dogfood eat for a while with meow. I realize that this might be a tall ask if your not interested in using eat.

Are you interested in using eat?

jgarte avatar Sep 24 '23 13:09 jgarte

I'll take a time to look at this issue even though I think I'm not interested in using terminal in Emacs.

DogLooksGood avatar Sep 24 '23 13:09 DogLooksGood

I'll take a time to look at this issue even though I think I'm not interested in using terminal in Emacs.

Cool, thanks. Much appreciated!

What terminal do you use BTW?

jgarte avatar Sep 24 '23 14:09 jgarte

I use wezTerm and I use the layout feature of zellij to start multiple tasks in same tab.

DogLooksGood avatar Sep 24 '23 14:09 DogLooksGood

Cool! I'm thinking of giving wezTerm another try now, maybe with zellij.

jgarte avatar Sep 24 '23 14:09 jgarte

(defun eat-meow-setup ()
  (add-hook 'meow-normal-mode-hook 'eat-emacs-mode nil t)
  (add-hook 'meow-insert-mode-hook
            (lambda ()
              (goto-char (point-max))
              (eat-char-mode))
            nil
            t))

(with-eval-after-load "eat"
  ;; Replace semi-char mode with emacs mode
  (advice-add 'eat-semi-char-mode :after 'eat-emacs-mode)
  (add-hook 'eat-mode-hook 'eat-emacs-mode)
  (add-hook 'eat-mode-hook 'eat-meow-setup))

It works well except I didn't find a better way to set EAT's default mode to eat-emacs-mode.

DogLooksGood avatar Apr 01 '24 05:04 DogLooksGood

@DogLooksGood What are your thoughts on eat versus the wezterm and zellij workflow that you've been using?

Do you still prefer the latter?

I'm curious because I recently started learning zellij.

jgarte avatar Apr 01 '24 15:04 jgarte

I'm still using zellij workflow, it's very good.

DogLooksGood avatar Apr 02 '24 01:04 DogLooksGood

How does pasting something in an eat buffer work? It says the buffer is read only when pressing y which I believe is meow-yank? And C-y or M-y don't do nothing.

I'm curious because I recently started learning zellij. Funnily I'm coming from zellij! I didn't need such power for a few things and Emacs + just with eat could be a great combo

zetashift avatar Apr 17 '24 03:04 zetashift

@zetashift Just bind all the eat commands you care about.

(defun meomacs-eat-meow-setup ()
  (add-hook 'meow-normal-mode-hook 'eat-emacs-mode nil t)
  (add-hook 'meow-insert-mode-hook 'eat-char-mode nil t))

(with-eval-after-load "eat"
  (define-key eat-char-mode-map (kbd "C-y") 'eat-yank)
  ;; Replace semi-char mode with emacs mode
  (advice-add 'eat-semi-char-mode :after 'eat-emacs-mode)
  (add-hook 'eat-mode-hook 'meomacs-eat-meow-setup))

DogLooksGood avatar Apr 17 '24 15:04 DogLooksGood