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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

One-liner to sort clipboard

1 点作者 lucasgonze超过 8 年前

2 条评论

jepler超过 8 年前
On X-based systems, xsel -ob | sort | xsel -ib<p>But if you&#x27;re in a high-octane development environment like vi, there&#x27;s no need to resort to a separate terminal window to invoke &#x27;sort clipboard&#x27;. just mark a range of lines (v) then :!sort to filter through good old unix sort.
评论 #12869246 未加载
lucasgonze超过 8 年前
This is a trivial but super useful hack. The way you use it is:<p>1. You&#x27;re in an edit field in any old app - browser, Atom, vi<p>2. Select lines to sort and ^c<p>3. alt+tab to command line<p>4. pbsort<p>5. alt+tab back to app<p>6. ^v