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.mzph.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…