frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: a REPL in an IME?

2•zahlman•1h ago
Recently I've been finding myself wishing more and more, while in the middle of using Discord or some other chat, or while writing a forum post, or even in a text editor, wishing that I could just write some code one-liner to generate the next bit of text I want to write (perhaps, calling a function I'd defined ahead of time in a "config" file that's really more of a personal library; as one might do with ~/.bashrc).

I already use an IME (fcitx-mozc) to input Japanese text, but that feels really limited and special-case to me. It'd be neat to be able to switch to e.g. Fraktur "font" by using https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols , or any other variation, by writing a simple call to convert the text in Bash, Python or whatever else. Since an IME already commonly shows you a separate text input field where you can prepare the text that is eventually inserted into the original context, I thought of using that same mechanism to implement a REPL — provide temporary text to an interpreter, get the evaluated result back, and insert that into the main text field. Perhaps the system could allow for further editing of the result first; or with a language like Python that has typed results, the handling could be type-dependent (e.g. if the code evaluates to a list, the UI could show a window with the results and allow for selecting one, just like how Japanese IMEs let you choose the kanji you want after inputting ambiguous romaji).

Does anything like that exist for Linux already? It seems like something that would take quite a bit of effort (mainly research) to create from scratch.

Comments

kej•1h ago
There are a handful of projects for making vim available in any textbox. They work by having some kind of hotkey that opens a temporary file in vim and then pasting the contents of that file into the original program when vim is closed. Examples are vim-anywhere, nvim-anywhere, vimlauncher-kde, probably others.

If you like vim, you could just use one of those methods to do everything you described. If not, you could probably use one of those as a starting point and just change the part that calls vim to call some other text-generating program or custom repl instead.

Human Drivers Will Kill 11 People While You Read This

https://secondthoughts.ai/p/autonomous-vehicles-will-save-lives
1•gk1•35s ago•0 comments

DockerHub Is Down [Auth]

https://registry-1.docker.io/v2/library/golang/manifests/1.24.5-alpine
3•thehamkercat•5m ago•0 comments

Is cashless bail leading to spikes in jail population?

https://www.nbcchicago.com/news/local/chicago-politics/is-cashless-bail-leading-to-spikes-in-jail...
1•stockresearcher•6m ago•1 comments

Intel Seeks Investment from Apple

https://finance.yahoo.com/news/intel-seeks-investment-apple-bloomberg-200530381.html
1•mgh2•9m ago•0 comments

Docker Hub is down (again)

https://hub.docker.com/_/python
5•frabonacci•9m ago•1 comments

Indeed updated terms: Forced Arbitration and bundling of consent

https://consumerrights.wiki/w/Indeed_Forced_Arbitration_%26_bundling_of_consent
1•Improvement•11m ago•0 comments

Sop Is All You Need

https://runbook.run/
1•clement1107•13m ago•0 comments

Show HN: Free Visual JSON Schema Builder (Generate, Validate and Export)

https://jsonpost.com/free-html-form-generator
1•ubergeekady•14m ago•0 comments

Helium Browser

https://helium.computer/
16•spacebuffer•19m ago•11 comments

The Rise of the Operator

https://markmaunder.com/2025/the-rise-of-the-operator/
1•mmaunder•19m ago•0 comments

Why MAGA Evangelicals Can Cheer Love and Hate at the Same Time

https://www.nytimes.com/2025/09/23/opinion/erika-kirk-charlie-trump-miller.html
5•whack•20m ago•1 comments

Fox News' Jesse Watters suggests bombing UN after Trump's escalator

https://www.nydailynews.com/2025/09/24/jesse-watters-bomb-gas-un-trump-escalator-teleprompter/
5•duxup•20m ago•1 comments

Autism Has Always Existed. We Haven't Always Called It Autism

https://www.nytimes.com/2025/09/24/opinion/autism-rates-science-diagnosis-parent.html
4•bell-cot•22m ago•0 comments

Show HN: I made an Airtable powered Drag-and-Drop Website Builder

https://shareables.ai/
1•Ryanwalker64•23m ago•0 comments

Nothing Prepares You for Your First Director Role and That's Kinda the Point

https://www.honeycomb.io/blog/nothing-prepares-you-first-director-role
2•mooreds•24m ago•0 comments

iReal Pro custom chord chart protocol

https://www.irealpro.com/ireal-pro-custom-chord-chart-protocol
1•bobbiechen•26m ago•0 comments

Israeli attempt to annex West Bank would be 'red line' for US, says Macron

https://www.theguardian.com/world/2025/sep/24/israeli-attempt-to-annex-west-bank-would-be-red-lin...
2•NomDePlum•32m ago•1 comments

Blitzy System 2 AI Platform: Topping SWE-Bench Verified [pdf]

https://paper.blitzy.com/blitzy_system_2_ai_platform_topping_swe_bench_verified.pdf
1•stevenjgarner•36m ago•0 comments

The Kekulé Problem (2017)

https://nautil.us/the-kekul-problem-236574/
1•jger15•43m ago•0 comments

Tesla is now buying ads on X in support of Musk’s $1 trillion compensation

https://electrek.co/2025/09/24/tesla-buying-ads-elon-musk-x-vote-1-trillion-compensation/
7•breve•44m ago•3 comments

Wild Linker Update – 0.6.0

https://davidlattimore.github.io/posts/2025/09/23/wild-update-0.6.0.html
1•agluszak•45m ago•0 comments

Eliminating the hypervisor tax to enhance GPU utilization

https://www.ori.co/blog/bare-metal-as-the-primitive
1•jtsymonds•51m ago•0 comments

Ask HN: Exploring the Energy Sector – Looking for Guidance

2•tminima•53m ago•0 comments

Enzyme behind diet-induced obesity and diabetes can be 'switched off'

https://old.reddit.com/r/science/comments/1np8zn6/enzyme_behind_dietinduced_obesity_and_diabetes/
2•ivewonyoung•53m ago•1 comments

Open Source Has Too Many Parasocial Relationships

https://pivotnine.com/blog/open-source-has-too-many-parasocial-relationships/
4•jay_kyburz•53m ago•1 comments

10,000 Drum Machines

https://10kdrummachines.com/
1•CharlesW•53m ago•0 comments

Facebook data reveals real-world harms caused by spread of misinformation

https://theconversation.com/facebook-data-reveal-the-devastating-real-world-harms-caused-by-the-s...
6•defrost•54m ago•0 comments

Private offices in the heart of San Francisco - not your average office space

https://frontiertower.io/
4•Katjayakov•54m ago•2 comments

New gene therapy slows progression of Huntington's disease by 75%

https://news.sky.com/story/new-gene-therapy-slows-progression-of-huntingtons-disease-by-75-13437292
3•austinallegro•55m ago•0 comments

Germany Woos Indian Workers Spooked by U.S. Visa Changes

https://www.nytimes.com/2025/09/24/business/germany-india-skilled-workers-visa.html
3•breadwinner•56m ago•1 comments