macos剪切_如何使用macOS的內置“ Kill and Yank”作為替代剪切和粘貼

macos剪切

macos剪切

Everyone knows about cutting and pasting by now. But did you know that your Mac sort of has a second clipboard known as kill and yank?

現在,每個人都知道剪切和粘貼。 但是您是否知道Mac上還有第二個剪貼板,稱為“ kill and yank”?

Kill and yank?originates from Emacs, which is a “family of text editors that are characterized by their extensibility.” If you’ve never heard of Emacs, that’s okay—it’s usually found on Unix and Linux systems. Emacs is said to have over 2000 built-in commands, of which the aforementioned kill and yank are two of them.

Kill and yank源于Emacs,Emacs是“以可擴展性為特征的文本編輯器家族”。 如果您從未聽說過Emacs,那就沒關系-通常在Unix和Linux系統上可以找到。 據說Emacs具有2000多個內置命令,其中上述的kill和yank是其中的兩個。

Killing?is similar to cutting, and yanking is like pasting…with some slight (useful differences).

殺死類似于剪切,猛拉就像粘貼……有一些細微(有用的區別)。

To try it out, open TextEdit from the Applications folder or using Spotlight. Then load up?a document you’ve created, or simply?create some new text.

要進行嘗試,請從“應用程序”文件夾或使用Spotlight打開TextEdit。 然后加載您創建的文檔,或者簡單地創建一些新文本。

The kill command is Control+K, and the yank command is Control+Y. For the most part, they work just like cut and paste. You can select any portion of a text document and kill it (cut), and then yank it (paste) back into your document or somewhere else.

kill命令為Control + K,yank命令為Control + Y。 在大多數情況下,它們的工作就像剪切和粘貼一樣。 您可以選擇文本文檔的任何部分并將其殺死(剪切),然后將其拉回(粘貼)回到您的文檔或其他位置。

You can use this as a second clipboard (so you can store two strings of text at a time), but here’s the other cool part: you don’t necessarily have to select text to use kill and yank.

您可以將其用作第二個剪貼板(這樣就可以一次存儲兩個字符串),但這是另一個很酷的部分:您不必選擇要使用kill和yank的文本。

For instance, in the following example, we typed out some quick text. By simply inserting the cursor at the end of “word” and using the?kill command, we cut everything from there to the end of the line of text, and then yanked it back.

例如,在下面的示例中,我們輸入了一些快速文本。 通過簡單地將光標插入“ word”的末尾并使用kill命令,我們將所有內容從此處剪切到文本行的末尾,然后將其拉回。

The works just as well?if you were to insert the cursor at the beginning of a long paragraph or sentence. Instead of selecting the whole thing so you can cut?it, you can simply insert the cursor?at the beginning and kill it, no selecting required.

如果將光標插入到較長的段落或句子的開頭,效果也一樣。 無需選擇整個對象即可剪切它,您只需將光標插入開頭并殺死它,而無需選擇。

This will work across a variety of applications such as Notes, Reminders, and Mail, so you’re not limited to just using it on TextEdit. We’ve found that it works in Chrome, but not Microsoft Office apps—even more oddly, kill seems to work in Slack, but Yank doesn’t. So your mileage may vary in terms of which apps can take advantage, but it can be a powerful addition to your daily toolbox.

這將適用于各種應用程序,例如Notes,提醒和郵件,因此您不僅限于在TextEdit上使用它。 我們發現它可以在Chrome瀏覽器中運行,但不能在Microsoft Office應用程序中運行-更奇怪的是,kill似乎可以在Slack中運行,但Yank卻不行。 因此,就哪些應用可以利用而言,您的工作量可能會有所不同,但這可能是您日常工具箱的有力補充。

Just remember, cut and paste are initiated with the Command key, whereas kill and yank are done with Control.

只需記住,剪切和粘貼是通過Command鍵啟動的,而kill和yank是通過Control完成的。

Image Credit: Bruce Guenter/Flickr

圖片提供: Bruce Guenter / Flickr

翻譯自: https://www.howtogeek.com/293850/how-to-use-macos-built-in-kill-and-yank-as-an-alternative-cut-and-paste/

macos剪切

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/280638.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/280638.shtml
英文地址,請注明出處:http://en.pswp.cn/news/280638.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

ExtJS 折線圖趟過的坑

問題: 1、根據條件檢索后繪制折線圖,之前的坐標沒有清除如圖 解決方案: 在繪制之前,清空坐票: leftLine.surface.removeAll(); leftLine.redraw(false); 完整代碼如下 storeBar.load({params: { SDate: bTime, EDate: …

EventBus的實現

EventBus概要 EventBus是消息傳遞的一種方式,基于一個消息中心,訂閱和發布消息的模式。這種方式的實現不僅僅局限于前端,在iOS中的消息消息中心也是如此實現。 設計模式:訂閱者發布者模式,這種設計模式在前端很常見。A…

Django05-1: 有名分組、無名分組與反向解析

有名、無名分組 分組正則表達式,加小括號 url(r^test/(\d), views.test),def test(request,xx):print(xx)return HttpResponse("OK") 無名分組 將括號正則表達式匹配的內容,當作位置參數傳遞到后面的視圖函數 有名分組 正則表達式起一個別…

Django的第一步(第一節)

寫下你的第一個Django應用第一部分讓我們通過例子來學習.在本教程中,我們將引導您完成基本投票應用程序的創建.其中包括兩部分:一個讓人們查看民意調查并投票的公共網站.允許您添加,更改和刪除民意調查的管理網站.我們假設你django已經安裝好了,你可以通…

ad中電源插座怎么封裝_您可以在房屋中安裝的各種電源插座

ad中電源插座怎么封裝You may already know about smart outlets, or outlets with integrated USB ports. But you might be surprised at how many “normal” outlets you can actually buy for your house. They’re all built for different situations, and you want to …

Arithmetic Slices

這兩天一直復習動態規劃,就想到leetcode上刷刷題,easy難度的很少,大部分都是medium和hard。本題是第一道DP類型medium難度的題目,但是用其他的方法比如暴力法也可以求解。首先來看題目描述: A sequence of number is c…

在Data Lake Analytics中使用視圖

在Data Lake Analytics中使用視圖 1. 概述 在Data Lake Analytics(以下簡稱DLA)中使用視圖(VIEW)功能,可以大大簡化對于重復SQL,特別是較為復雜的SQL語句的編寫和維護。目前DLA中還不支持SQL視圖的物化。在…

C# 實例詳解委托之Func、Action、delegate(精品)

概述委托是.NET編程的精髓之一,在日常編程中經常用到,在C#中實現委托主要有Func、Action、delegate三種方式,本節主要就這三種委托的用法通過實例展開講解。Func用法解析【Func】:Func是帶返回值的委托:原型函數如下(以…

Django05-2:路由分發/命名空間/偽靜態/虛擬環境/django版本區別

路由分發 補充:每一個應用可以有獨立的templates模板文件夾,static靜態文件加,urls.py 總路由 #方法一from app01 import urls as app01_urls from app02 import urls as app02_urlsurlpatterns [url(r^publisher_list/, views.publisher_…

Word中查找替換軟回車鍵和回車鍵

在Word中使用搜索功能搜索“^p”組合字符串可以查找文檔中的所有換行符(回車鍵),使用“^l”(英文輸入狀態下shift6與小寫字符L的組合)可以搜索所有的軟回車符。使用替換功能就可以搜索替換二者。轉載于:https://www.cn…

minecraft服務器_如何使用Minecraft領域設置簡單的無壓力Minecraft服務器

minecraft服務器There are a lot of ways to go about hosting a Minecraft game but it’s tough to beat the simplicity of buying a server directly from Mojang, the company behind Minecraft (and now it even comes with a free 30 day trial!) Read on as we show yo…

自動化測試基礎篇--Selenium瀏覽器操作

Selenium 主要提供的是操作頁面上各種元素的方法,但它也提供了操作瀏覽器本身的方法,比如瀏覽器的大小以及瀏覽器后退、前進按鈕等。一、控制瀏覽器窗口大小有時候我們希望能以某種瀏覽器尺寸打開,讓訪問的頁面在這種尺寸下運行。例如可以將瀏…

Sublime text3配置xdebug調試記錄

第一次配置遇到的問題記錄; 問題:配置php.ini的時候xdebug.remote_port 9001剛開始我一直配置9000端口沖突,然后一切弄好了訪問瀏覽器就一直在轉圈無法訪問; 現在開始配置: 1.打開sublime 輸入install Package如下顯示在按回車&a…

.NET Conf China 2022 今天(12.4) 日程一覽

點擊藍字關注我們.NET Conf China 2022 誠邀您的加入立即掃碼預約加入.NET年度盛宴!!CSDN 直播https://bbs.csdn.net/forums/DotNET?typeId20680 思否直播https://segmentfault.com/area/dotnetconf-2022主論壇分論壇前端專場-A會場出品人:張…

移動web開發適配rem

移動的meta標簽 <meta name"viewport" content"widthdevice-width, initial-scale1,user-scalableno"> 常見移動web適配方法&#xff1a; 1.定高&#xff0c;百分比布局 2.flex布局 3.media媒體查詢 rem&#xff08;font size of the root element…

Django06:視圖層/上傳文件/request 方法補充/FBV與CBV

三板斧 HttpResponse, 返回字符串類型render, 返回html頁面&#xff0c;而且在返回給瀏覽器之前&#xff0c;可以給html文件傳值redirect 重定向 總結&#xff1a;視圖函數必須返回一個HttpResponse對象&#xff0c; 查看源代碼能發現。 JsonResponse對象 json用途&#x…

《Java核心技術 卷Ⅱ 高級特性(原書第10版)》一2.4.6 為克隆使用序列化

2.4.6 為克隆使用序列化 序列化機制有一種很有趣的用法&#xff1a;即提供了一種克隆對象的簡便途徑&#xff0c;只要對應的類是可序列化的即可。其做法很簡單&#xff1a;直接將對象序列化到輸出流中&#xff0c;然后將其讀回。這樣產生的新對象是對現有對象的一個深拷貝&…

談談ASP.NET Core過濾器和中間件的區別

什么是中間件中間件Middleware是所有請求都會執行的,適合用在權限校驗,一些公用字段處理,例如分頁信息獲取.asp.net core 提供了IApplicationBuilder接口來讓把中間件注冊到asp.net的管道請求當中去&#xff0c;中間件是一個典型的AOP應用。下面是一個微軟官方的一個中間件管道…

11 個 Nginx 參數性能優化工作

工作上&#xff0c;需要配置 Nginx&#xff0c;要投入生產使用&#xff0c;做了一點優化工作&#xff0c;加上以前也經常折騰 Nginx&#xff0c;故記下一些優化工作。 優化 Nginx 進程數量 配置參數如下&#xff1a; worker_processes 1; # 指定 Nginx 要開啟的進程數&#xff…

如何在Windows 8中將舊控制面板添加到Metro Start屏幕

By default there is no way to easily access the old Control Panel in Windows 8, in order to get to it you have to go through the new Metro Control Panel or switch to Explorer. Here’s how to create your own tile for it. 默認情況下&#xff0c;無法輕松訪問Wi…