edit icon indicating copy to clipboard operation
edit copied to clipboard

Build MS Edit for Termux

Open itsKhalidHossain opened this issue 7 months ago • 3 comments

Assuming you have already cloned the repo, here is a step-by-step guide to Build Microsoft Edit for Termux:

  1. Install Rust nightly
  2. Install Android NDK through Android Studio or setup manually
  3. Add aarch64-linux-android build target
 rustup target add aarch64-linux-android
  1. Install cargo-ndk
cargo install cargo-ndk
  1. Build it using
 cargo ndk -t arm64-v8a build --release

Congrats! You have successfully built edit for Turmux.

Image

itsKhalidHossain avatar Jul 08 '25 21:07 itsKhalidHossain

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

Screenshot_2025-07-16-20-29-02-85_84d3000e3f4017145260f7618db1d683.jpg

itsKhalidHossain avatar Jul 16 '25 14:07 itsKhalidHossain

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 avatar Sep 07 '25 18:09 joeskeen

@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.

itsKhalidHossain avatar Sep 20 '25 02:09 itsKhalidHossain