a-shell icon indicating copy to clipboard operation
a-shell copied to clipboard

emacs?

Open ifuchs opened this issue 4 years ago • 7 comments

I know we have Vim but is there any chance you could add emacs?

ifuchs avatar Jan 31 '20 17:01 ifuchs

Emacs is covered by the GPL, and thus incompatible with AppStore rules as far as I know. But I will add microemacs at some point.

holzschu avatar Jan 31 '20 17:01 holzschu

If you provide the emacs binary as a standalone file, it won’t be in the build itself, but users could download it (and perhaps execute a script to install it!) and wouldn’t violate the GPL.

TheGamer1002 avatar Jan 19 '22 01:01 TheGamer1002

iOS security rules are pretty strict: in order for the system to execute a binary, it must be signed by the developer and placed in a directory that can only be accessed at installation time (so, not accessible by the user).

holzschu avatar Jan 19 '22 07:01 holzschu

That wouldn’t inhibit execution of webassembly files, which there is a compiler for, if placed in the user directory. I can make a very simple C file that just prints “hello world” and compile it (without manually signing it) and it’ll execute.

TheGamer1002 avatar Jan 19 '22 13:01 TheGamer1002

Ah, yes, a WebAssembly version of emacs would work. The problem right now is to get interactive input to the WASM binary. I haven't found a way yet.

holzschu avatar Jan 19 '22 13:01 holzschu

Well, I suppose one of the best ways to go about it would be to work off the same kind of framework done with Vim.

TheGamer1002 avatar Jan 19 '22 16:01 TheGamer1002

Vim is running native, instead of using WebAssembly. Very few commands in a-Shell are using WebAssembly (file, tree, ctags, xz).

holzschu avatar Jan 19 '22 16:01 holzschu