Idea: a commandline editor that doesn't go fullscreen by default
Jump to navigation
Jump to search
$ edit myfile.txt some lines here cool $ keep going ...
lmao this just ed 🤣🤣🤣🥲
Ok this is actually a good idea though, possible names: fjord, or fj for short, looks cool and short name ez to type, or jot which is short and descriptive. Ok jot is already a unix command.
Let's give this a go.
(side note: would be nice to have a script to automatically sync all my sourcehut repositories)
I made a c example to get a character, but it doesn't work with C-a for example:
#include <stdio.h>
int main() {
int ch = getchar();
printf("ch is %c", ch);
return 0;
}
For python people seem to recommend the readchar library. I got it with poetry but can't seem to import it.
(side note: fish completions for poetry are broken, seem to have nested single quotes without escaping)