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剪切

macos剪切_如何使用macOS的内置“ Kill and Yank”作为替代剪切和粘贴相关推荐

  1. rtsp有没有好使_轻量级RTSP服务和内置RTSP网关有什么不同?

    好多开发者疑惑,什么是内置RTSP网关,和轻量级RTSP服务又有什么区别和联系?本文就以上问题,做个简单的介绍: 轻量级RTSP服务 为满足内网无纸化/电子教室等内网超低延迟需求,避免让用户配置单独的 ...

  2. python 类调用不存在的方法_[python] 类常用的内置方法

    内置方法 说明 __init__(self,...) 初始化对象,在创建新对象时调用 __del__(self) 释放对象,在对象被删除之前调用 __new__(cls,*args,**kwd) 实例 ...

  3. 禁用笔记本键盘_如何禁用/启用笔记本内置键盘?

    有些小伙伴外接了USB键盘想屏蔽掉笔记本的内置键盘,绞尽脑汁都没有办法禁用,其实方法很简单只需要一个简单的命令即可.1.右键点击左下角开始图标(Win+X),选择Windows Powershell( ...

  4. python什么元素为真_如何使用Python基础内置函数

    如何使用Python基础内置函数 发布时间:2020-08-05 13:46:59

  5. python 序列类型函数_序列类型可用的内置函数

    python的内置函数有很多,以下列举一些序列类型的内置函数:如有雷同,仅供参考 1>enumerate( )函数用于将一个可遍历的数据对象(如列表.元组或字符串)组合为一个索引序列,同时列出数 ...

  6. python内置函数可以返回列表元组_十九、python内置函数汇总

    ''' 内置函数 abs():取绝对值 all():每个元素都为真,才是真any():有一个元素为真即为真 bin():十进制转二进制 hex():十进制转十六进制 int():所有的转成十进制 oc ...

  7. eclipse不报错 intelliji 报错_小白提问:导入内置包winsound不报错但没声音是什么情况?...

    6月6日网友@Puyang The Process 在python论坛提问: 导入内置包winsound不报错但没声音是什么情况? 咱公众号的大佬们能帮助解答吗? 哈哈,python论坛设置了邮箱提醒 ...

  8. 我的世界服务器修改器1.7.10,我的世界修改器_我的世界TMI内置修改器1.7.10 - 99单机游戏...

    我的世界TMI内置修改器适用于1.7.10版本的我的世界,可以修改我的世界内部的参数,非常的有意思,想要的朋友欢迎前来下载. 安装方法: 1.有FORGE版 关闭Minecraft. 使用winrar ...

  9. 大学计算机python编程的函数及作用总结_【转】python 内置函数总结(大部分)...

    python 内置函数大讲堂 python全栈开发,内置函数 1.内置函数 python的内置函数截止到python版本3.6.2,现在python一共为我们提供了68个内置函数.它们就是python ...

最新文章

  1. C语言入门题-计算指数 (15分)
  2. java字符串表表容量_java – 我可以使用什么符号表来存储~50 mil的字符串,快速查找而不会耗尽堆空间?...
  3. 原生JS字符串操作方法汇总
  4. “约见”面试官系列之常见面试题第三十五篇之轮循机制(建议收藏)
  5. python买东西_Python实战之ATM+购物车
  6. python关于二手房的课程论文_python之数据清理-以二手房信息为例
  7. jquery on方法原理_jQuery 学习小结
  8. 多数人只有一种工资收入,想赚更多钱,只有去做副业
  9. 5类6类7类网线对比_超6类网线和7类网线有何区别?有何用途?家用电脑,看这!...
  10. 角谱 matlab,关于角谱法实现数字全息 - 程序语言 - MATLAB/Mathematica - 小木虫论坛-学术科研互动平台...
  11. kindeditor 文件上传 java_富文本编辑器kindeditor上传图片的配置方法
  12. Android中打开浏览器更新App的最新版本
  13. 微信昵称 mysql_MySQL数据库之解决微信昵称含特殊表情或字符无法存入数据库的异常问题...
  14. 237. 删除链表中的节点
  15. [Shell命令] tar -cvf -xvf 打包解包文件夹
  16. 用MATLAB实现高斯投影正反算且画出高斯投影图形
  17. 010❤Anaconda的安装及使用方法
  18. python 协程库gevent学习 -- 超时、互斥锁(BoundedSemaphore)、local
  19. 单片机搭建环境烧录方法_万物互联-stm32单片机简介、烧录、编程及其项目环境搭建...
  20. 手撸一个Switch开关组件

热门文章

  1. php对象底层结构,PHP 底层原理之类和对象
  2. java基础JDK的安装和环境变量的配置
  3. linux中的fork方法(python)
  4. U Sparkle 开发者计划招募中!
  5. Centos 7 搭建.net web项目
  6. java读取csv文件
  7. 19.Silverlight调用webservice上传多个文件
  8. C语言面试题之华为篇2(答案全)
  9. found.000文件夹的问题
  10. PHP Token(令牌)设计