TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: I Use Minimal In-Browser Text Drafting Area

1 点作者 primaprashant4 个月前
You are writing a prompt for Claude and you press the enter key to add a new line but you end up sending the text. How annoying! Has it ever happened to you on Slack? On Discord?<p>I spend a lot of time writing text in different places: Slack, Discord, Google Docs, Sheets, GitHub comments, prompting LLMs, and sometimes even in the chat in Google Meets. Each tool handles the Enter key a little differently, sometimes it sends the message, sometimes it adds a new line. I’ve lost count of the times I pressed Enter expecting to start a new line, only to see the message being sent. It’s frustrating and disrupts my train of thought.<p>To solve these problems, I created a simple HTML page that offers a single, consistent text area for drafting. It’s nothing fancy; it’s just a big `&lt;textarea&gt;` that covers the entire viewport. The text I enter is automatically saved to `localStorage`, so it’s preserved across browser restarts. I host this html file on a subdomain of my personal website so it’s available anywhere, including my phone.<p>I created this setup around July, 2024 and this minimal setup has brought a small but meaningful quality-of-life improvement in my daily workflow. I easily use this setup for drafting text 20-30 times a day. Hopefully it can be useful for you too!<p>The entire html file is present in this [GitHub Gist](<a href="https:&#x2F;&#x2F;gist.github.com&#x2F;primaprashant&#x2F;4b14f25eb66c48de97e5974a8bc79cef" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;primaprashant&#x2F;4b14f25eb66c48de97e597...</a>) for you to self-host on your own subdomain.

暂无评论

暂无评论