3 ms·
I want a token based keyboard with the following properties Language and syntax awareness. When I’m writing JavaScript - it should provide keys for ‘if’ ‘each’
by flappyeagle 4y ago
I want a token based keyboard with the following properties
Language and syntax awareness. When I’m writing JavaScript - it should provide keys for ‘if’ ‘each’ ‘function’ etc.
When I have unbalanced parens, braces etc, it should tell me how many levels deep I am and what context I’m in.
Instead of me naming variables it should generate random names and let me declare with a single tap. Provide easy refactoring tools so I can rename them later.
On mobile I want to manipulate symbols or the AST directly rather than rely on text input.
Take advantage of a keyboard that can display infinite variation and change on the fly.
- vanjajaja1 4y agoGood point. I'm very excited about the prospect of AST editors but never saw it working well with a keyboard. In a phone/touch environment it feels like forcing move. Would be cool to explore.
- Svetlitski 4y agoThis reminds me of programming on a TI-84 calculator. You selected from a list of keywords (as opposed to having to type them out), and the language being TI-BASIC meant variable names were usually just one letter.
- girvo 4y agoImplementing a simple program to run the quadratic formula on my TI was a lot of fun in school
- Fatnino 4y agoVariables were always one letter. You could however create a list with up to 100 entries and give it a custom name up to 5 letters long. This is in addition to the several (5?6?) default lists named L1 through L5or6.
- stevewatson301 4y agoSeems like a good use case (and perhaps the only useful use case) for the Touch Bar, though it has been understandably deprecated now.
- pfortuny 4y agoWe had this with the Spectrum in the 80s. Somehow someone decided it was not a good idea. Wonder why.
- sedatk 4y agoSpectrum had numerous input modes which made the typing experience complicated and prone to errors. On a mobile device, you can just add another key row on top of existing keyboard without incurring complexity. La Terminal is a great example.
- pfortuny 4y agoYes, of course, I was simply saying that... it should not be too complicated in our era. Thanks.
- harperlee 4y ago> When I have unbalanced parens, braces etc, it should tell me how many levels deep I am and what context I’m in. Better yet: structural editing to avoid an unbalanced thing ever.