Hacker News new | ask | show | jobs
by archargelod 1019 days ago
I've been using termux + neovim as my default text editor on my phone. And it is surprisingly comfortable even with a touch screen keyboard.
2 comments

Agreed! Termux profoundly changed my life. I do all of my programming inside Termux now. I find it to be pretty comfortable too.

Only thing I'm still missing is a way to build Android applications from inside Termux. We can write software for normal computers from inside themselves. Conversely, phones have always been these consumer machines, only running software produced for them and with no ability to program themselves. Feels like it's the only remaining barrier in the way of Android phones becoming truly general purpose computers.

I opened an issue on their repository about packaging the Android development tools:

https://github.com/termux/termux-packages/issues/17701

Someone linked a discussion where someone got it to work. I haven't had any luck setting this up though.

You can do that with Godot, I think - have a look.
Does it come with a modal keyboard or the same static one?
Android allows you to swap the virtual keyboard. I use unexpected keyboard which is also free software. It's excellent for programming. Before that I used Hacker's Keyboard which has actual arrow keys.

Termux also has a configurable bar at the bottom where you can map any keys you want. I use it for function and arrow keys plus a bunch of common symbols.

Here's an example from my dotfiles:

https://github.com/matheusmoreira/.files/blob/38565320fefb92...

Not sure what you mean by modal keyboard, but there is fully customizable row of keys in termux.

I disabled it, because I use special android keyboard app[0] with a custom layout made from scratch[1]: all common symbols, arrows, esc, ctrl, alt, forward delete, paste and enter gestures etc. etc.

[0] - https://jbak2.ucoz.net/ (yes it's horrible website, but it's free and easy to maintain for the handicapped developer)

[1] - https://github.com/Archargelod/jbak2Templates-Skins

Well, the modal command system is sort of hacked onto the qwerty keyboard. Surely it'd be more natural to just "insert" directly rather than hitting "i".
It's the same static keyboard, but navigation is easier as you can swipe to navigate around.