Build MS Edit for Termux
Assuming you have already cloned the repo, here is a step-by-step guide to Build Microsoft Edit for Termux:
- Install Rust nightly
- Install Android NDK through Android Studio or setup manually
- Add
aarch64-linux-androidbuild target
rustup target add aarch64-linux-android
- Install
cargo-ndk
cargo install cargo-ndk
- Build it using
cargo ndk -t arm64-v8a build --release
Congrats! You have successfully built edit for Turmux.
Or, you can build it directly in Termux. Here's how-
# 1. Install Rust (official Termux package)
pkg install rust
# 2. Clone the repository
git clone https://github.com/microsoft/edit.git
cd edit
# 3. Compile the project with nightly features enabled
RUSTC_BOOTSTRAP=1 cargo build --release
One thing I wish would work with msedit on Termux is selecting text via touch. I'm sure this is more on the Termux side than anything though...
@joeskeen If I double/triple tap, it selects a word/line. But there is no way to modify the selection. But you can delete selected text. Long press selects texts and UI elements together. And you can't do anything with it except to copy the whole thing, with line numbers. So, that's useless. If TermuX had a Shift button, you could select texts by pressing arrow keys while holding the Shift key.