News for hackers. Stuff that matters.
Re:Ask HN: Is there an editor with insert mode and free cursor? by timonoko on Wednesday November 23, 2022 @02:01AM (#33716065)
Yes. It is called 'emacs', but you need to add (xterm-mouse-mode 1) to ~/.emacs.

Then it is almost amazing, because in a phone (and termux) your fingers are the mouse.

You can do scrolls with youres fingeries too, if you add

    (global-set-key (kbd "<mouse-5>") 'scroll-up-command) 
    (global-set-key (kbd "<mouse-4>") 'scroll-down-command)
Somebody should study howto turn long finger press into emacs cut/paste. Now it is regular Android cut/paste, which is little cumbersome.
Re:Ask HN: Is there an editor with insert mode and free cursor? by timonoko on Wednesday November 23, 2022 @02:36AM (#33716279)
Rapid two presses seems to do something, it is "set-mark" and "select-word" or "select-line" depending where your fat fingers happen to land.
Re:Ask HN: Is there an editor with insert mode and free cursor? by timonoko on Wednesday November 23, 2022 @03:04AM (#33716435)
Ach. It depends on mode. In C-mode if you two-tab the "{" it selects the whole block.