Idea: a commandline editor that doesn't go fullscreen by default: Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
cool |
cool |
||
$ keep going ... |
$ keep going ... |
||
</pre>lmao this just ed 🤣🤣🤣🥲 |
|||
</pre> |
|||
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:<syntaxhighlight lang="c"> |
|||
#include <stdio.h> |
|||
int main() { |
|||
int ch = getchar(); |
|||
printf("ch is %c", ch); |
|||
return 0; |
|||
} |
|||
</syntaxhighlight>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) |
|||
Ok so I started on this with python, and spent a while trying to get that library to import with poetry. Now I'm thinking about how that library is probably full of junk I don't really need and how it might be a good idea to cut down on dependencies. Perhaps even use a compile language like c or rust or go to build a binary. I've been meaning to wrap my head around rust, could help with my ambition to build a browser. |
|||
Still I might as well build a prototype in python, it'd be way faster... |
Latest revision as of 12:11, 6 June 2023
$ 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)
Ok so I started on this with python, and spent a while trying to get that library to import with poetry. Now I'm thinking about how that library is probably full of junk I don't really need and how it might be a good idea to cut down on dependencies. Perhaps even use a compile language like c or rust or go to build a binary. I've been meaning to wrap my head around rust, could help with my ambition to build a browser.
Still I might as well build a prototype in python, it'd be way faster...