How to isearch a text file Emacs-style in your browser
Published:
🔍

A quick guide to the browser rebuild of Emacs incremental search. (Background on all three “almost Emacs” tools in the original post.)
Steps
- Open https://www.clearevo.com/isearch/ and paste your text, or open a text file.
- Press C-s and start typing - the match moves as you type, incrementally. C-s again jumps forward to the next match, C-r searches backward.
- Case folding is smart: lowercase queries match any case, add an uppercase letter and it becomes case-sensitive.
- The echo area speaks authentic Emacs -
I-search:,Failing I-search:,Wrapped I-search:- with match counts in the mode line. - C-g quits the search; RET ends it and saves the mark where the search started. There’s a one-click copy-out when you’re done.
Pure client-side, nothing leaves your machine (Google Analytics for visit stats only). If your Emacs muscle memory catches a binding behaving wrong, comment on the original post.
This tool is free software and open source: ykasidit/clearevo_online_tools - issues and pull requests welcome.
คู่มือฉบับย่อสำหรับ incremental search ตามแบบ Emacs ที่ถูกสร้างเลียนแบบขึ้นใหม่ให้ใช้ในเบราว์เซอร์ (อ่านที่มาของเครื่องมือ “almost Emacs” ทั้งสามตัวได้ในโพสต์ต้นฉบับ)
วิธีใช้
- เปิด https://www.clearevo.com/isearch/ แล้ววางข้อความ หรือจะเปิดจากไฟล์ text ก็ได้
- กด C-s แล้วเริ่มพิมพ์ — ตำแหน่งที่เจอจะขยับตามทันทีทุกตัวอักษรที่พิมพ์ แบบ incremental กด C-s อีกครั้งเพื่อกระโดดไปผลลัพธ์ถัดไป ส่วน C-r ค้นย้อนกลับ
- เรื่องตัวพิมพ์เล็ก-ใหญ่จัดการให้อัตโนมัติ: ค้นด้วยตัวพิมพ์เล็กล้วนจะจับได้ทุกแบบ แต่ถ้ามีตัวพิมพ์ใหญ่สักตัวจะกลายเป็น case-sensitive ทันที
- echo area พูดภาษา Emacs ของแท้ —
I-search:,Failing I-search:,Wrapped I-search:— พร้อมจำนวนผลลัพธ์ที่เจอแสดงใน mode line - C-g ยกเลิกการค้นหา ส่วน RET จบการค้นหาและบันทึก mark ไว้ตรงจุดที่เริ่มค้น เสร็จแล้วมีปุ่มคัดลอกข้อความออกได้ในคลิกเดียว
ทำงานฝั่ง client ล้วน ๆ ไม่มีข้อมูลถูกส่งออกจากเครื่องของคุณ (มีเพียง Google Analytics สำหรับนับสถิติผู้เข้าชมเท่านั้น) ถ้ากล้ามเนื้อนิ้วสาย Emacs ของคุณจับได้ว่า binding ไหนทำงานเพี้ยน แจ้งได้ในคอมเมนต์ของโพสต์ต้นฉบับ
เครื่องมือนี้เป็นซอฟต์แวร์เสรีและโอเพนซอร์ส: ykasidit/clearevo_online_tools — ยินดีรับ issue และ pull request ครับ
คำแปลภาษาไทยนี้มี AI ช่วยเรียบเรียง — หากพบจุดที่อ่านแล้วขัด แจ้งได้ในคอมเมนต์ครับ
Full disclosure: this post - and any code or tool it describes - was co-authored with Claude (Anthropic’s AI, via Claude Code). I directed, guided and reviewed. I don’t want to pretend otherwise.
Leave a Comment