mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-25 23:11:02 +08:00
TSL&PRF
This commit is contained in:
parent
081610f38d
commit
729bfd291a
@ -1,70 +0,0 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (wxy)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (Beginner-friendly Terminal-based Text Editor GNU Nano Version 5.0 Released)
|
||||
[#]: via: (https://itsfoss.com/nano-5-release/)
|
||||
[#]: author: (Abhishek Prakash https://itsfoss.com/author/abhishek/)
|
||||
|
||||
Beginner-friendly Terminal-based Text Editor GNU Nano Version 5.0 Released
|
||||
======
|
||||
|
||||
_**Open source text editor GNU nano has reached the milestone of version 5.0. Take a look at what features this new release brings.**_
|
||||
|
||||
There are plenty [terminal-based text editors available for Linux][1]. While editors like Emacs and Vim require a steep learning curve with bunch of unusual keyboard shortcuts, GNU nano is considered easier to use.
|
||||
|
||||
Perhaps that’s the reason why Nano is the default terminal-based text editor in Ubuntu and many other distributions. Upcoming [Fedora 33 release][2] is also going to set Nano as the default text editor in terminal.
|
||||
|
||||
GNU nano 5.0 has just been released. Here are the new features it brings.
|
||||
|
||||
### New features in GNU nano 5.0
|
||||
|
||||
![][3]
|
||||
|
||||
Some of the main highlights of GNU nano 5.0 as mentioned in its [changelog][4] are:
|
||||
|
||||
* The –indicator option will show a kind of scroll bar on the right-hand side of the screen to indicate where in the buffer the viewport is located and how much it covers.
|
||||
* Lines can be tagged with Alt+Insert keys and you can jump to these tags with Alt+PageUp and Alt+PageDown keys.
|
||||
* The Execute Command prompt is now directly accessible from the main menu.
|
||||
* On terminals supporting at least 256 colors, there are new colors available.
|
||||
* New –bookstyle mode in which any line that begins with whitespace is considered as the start of a paragraph.
|
||||
* Refreshing the screen with ^L now works in every menu. It also centers the line with the cursor.
|
||||
* Bindable function ‘curpos’ has been renamed to ‘location’, long option –tempfile has been renamed to –saveonexit and short option -S is now a synonym of –softwrap.
|
||||
* Backup files will retain their group ownership (when possible).
|
||||
* Data is synced to disk before “… lines written” is shown.
|
||||
* Syntaxes for Markdown, Haskell, and Ada were added.
|
||||
|
||||
|
||||
|
||||
### Getting GNU nano 5.0
|
||||
|
||||
The current version of nano in Ubuntu 20.04 is 4.8 and it’s less likely that you’ll be getting the new version anytime soon in this LTS release. When and if it is available from Ubuntu, you should get it via the system updates.
|
||||
|
||||
Arch users should be getting it before everyone else, as always. Other distributions should also provide the new version, sooner or later.
|
||||
|
||||
If you are one of the few who likes [installing software from its source code][5], you can get it from its [download page][6].
|
||||
|
||||
If you are new to it, I highly recommend this [beginner’s guide to Nano editor][1].
|
||||
|
||||
How do you like the new release? Are you looking forward to using Nano 5?
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/nano-5-release/
|
||||
|
||||
作者:[Abhishek Prakash][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://itsfoss.com/author/abhishek/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://itsfoss.com/nano-editor-guide/
|
||||
[2]: https://itsfoss.com/fedora-33/
|
||||
[3]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2018/09/Nano.png?ssl=1
|
||||
[4]: https://www.nano-editor.org/news.php
|
||||
[5]: https://itsfoss.com/install-software-from-source-code/
|
||||
[6]: https://www.nano-editor.org/download.php
|
@ -0,0 +1,66 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (wxy)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (Beginner-friendly Terminal-based Text Editor GNU Nano Version 5.0 Released)
|
||||
[#]: via: (https://itsfoss.com/nano-5-release/)
|
||||
[#]: author: (Abhishek Prakash https://itsfoss.com/author/abhishek/)
|
||||
|
||||
适于初学者的基于终端的文本编辑器 GNU Nano 5.0 版发布
|
||||
======
|
||||
|
||||
> 开源文本编辑器 GNU nano 已经达到了 5.0 版本的里程碑。看看这个新版本带来了哪些功能。
|
||||
|
||||
Linux 上有很多[基于终端的文本编辑器][1]。像 Emacs 和 Vim 这样的编辑器需要经历陡峭的学习曲线和掌握一堆不寻常的键盘快捷键,但公认 GNU nano 更容易使用。
|
||||
|
||||
也许这就是为什么 Nano 是 Ubuntu 和许多其他发行版中默认的基于终端的文本编辑器的原因,而即将发布的 [Fedora 33 版本][2]也将把 Nano 设置为终端的默认文本编辑器。
|
||||
|
||||
### GNU nano 5.0 的新功能
|
||||
|
||||
![][3]
|
||||
|
||||
在 GNU nano 5.0 的[变更日志][4]中提到的一些主要亮点是:
|
||||
|
||||
* `-indicator` 选项将在屏幕右侧显示一种滚动条,以指示视口在缓冲区中的位置和覆盖范围。
|
||||
* 可以用 `Alt+Insert` 键标记行,你可以用 `Alt+Page` 和 `Alt+PageDown` 键跳转到这些标记的行。
|
||||
* 执行命令提示符现在可以直接从主菜单中访问。
|
||||
* 在支持至少 256 种颜色的终端上,有新的颜色可用。
|
||||
* 新的 `-bookstyle` 模式,任何以空格开头的行都会被认为是一个段落的开始。
|
||||
* 用 `^L` 刷新屏幕现在在每个菜单中都可以使用。它还会将行与光标居中。
|
||||
* 可绑定函数 `curpos` 已经改名为 `location`,长选项 `-tempfile` 已经改名为 `-saveonexit`,短选项 `-S` 现在是 `-softwrap` 的同义词。
|
||||
* 备份文件将保留其组的所有权(如果可能的话)。
|
||||
* 数据会在显示 “……行写入” 之前同步到磁盘。
|
||||
* 增加了 Markdown、Haskell 和 Ada 语法的支持。
|
||||
|
||||
### 获取 GNU nano 5.0
|
||||
|
||||
目前 Ubuntu 20.04 中的 nano 版本是 4.8,而在这个 LTS 版本中,你不太可能在短时间内获得新版本。如果 Ubuntu 有新版本的话,你应该会通过系统更新得到它。
|
||||
|
||||
Arch 用户应该会比其他人更早得到它,就像往常一样。其他发行版也应该迟早会提供新版本。
|
||||
|
||||
如果你是少数喜欢[从源代码安装软件][5]的人,你可以从它的[下载页面][6]中获得。
|
||||
|
||||
如果你是新手,我强烈推荐这篇 [Nano 编辑器初学者指南][1]。
|
||||
|
||||
你喜欢这个新版本吗?你期待使用 Nano 5 吗?
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/nano-5-release/
|
||||
|
||||
作者:[Abhishek Prakash][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[wxy](https://github.com/wxy)
|
||||
校对:[wxy](https://github.com/wxy)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://itsfoss.com/author/abhishek/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://itsfoss.com/nano-editor-guide/
|
||||
[2]: https://itsfoss.com/fedora-33/
|
||||
[3]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2018/09/Nano.png?ssl=1
|
||||
[4]: https://www.nano-editor.org/news.php
|
||||
[5]: https://itsfoss.com/install-software-from-source-code/
|
||||
[6]: https://www.nano-editor.org/download.php
|
Loading…
Reference in New Issue
Block a user