如何从dired模式创建新文件? [英] How to create new file from dired mode?

查看:206
本文介绍了如何从dired模式创建新文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以dired模式创建一个新文件。有没有创建新文件命令在dired模式?例如,当我在dired模式下键入c时,它创建untitled.txt。这很简单,但我找不到它。

I want to create a new file in dired mode. Is there "create new file" command in dired mode ? For example, When I type "c" in dired mode, it creates "untitled.txt". It's very simple , but I can't find it.

推荐答案

只需按C-x C-f。这将提示输入文件名,使用当前缓冲区的当前目录作为目录将其放入。对于一个dired缓冲区,其当前目录只是您正在查看的目录。

Just press C-x C-f. This will prompt for a filename, using the current directory of the current buffer as the directory to put it in. For a dired buffer, its current directory is simply the directory you are looking at.

这篇关于如何从dired模式创建新文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆