GNOME 有了一个全新的“文本编辑器”，它会成为默认编辑器吗？
GNOME Gedit

> 
> GNOME 新的“文本编辑器”正在增加新的功能，有可能在下一个 GNOME 桌面版本中取代 Gedit。
> 
> 
> 


![](/data/attachment/album/202112/08/114455pnwafw8n1niwn222.jpg)


Gedit 是 GNOME 桌面环境的默认文本编辑器。它是一个受欢迎的编辑器，也是一个便捷的文本编辑器，以简单的用户界面提供了所有的基本功能。


但是，随着 GNOME 的发展，有了一个新的“文本编辑器”（LCTT 译注：没错，就叫“<ruby> 文本编辑器 <rt>  Text Editor </rt></ruby>”），虽然它还没有取代 Gedit。但让我们来看看它的下一个版本，在即将到来的 GNOME 42 版本中，它进行了大量改进，有可能取代 Gedit。


[Christian Hergert](https://twitter.com/hergertme) 在他的 [博文](https://blogs.gnome.org/chergert/2021/12/03/text-editor-happenings/) 和 Twitter 上分享了它的很多细节。


在这篇文章中，让我介绍一下 GNOME 文本编辑器的那些新改进。


### 偏好设置对话框卷土重来


作为其上一个版本中的实验的一部分，偏好设置对话框被移到了侧边栏，


![](/data/attachment/album/202112/08/114455suxxxljjxqnuvcqj.png)


但是，事实证明，它并不那么方便和好看。


因此，偏好设置对话框又回来了（如下图所示），其目的是与其他 GNOME 应用程序的设计语言相融合，而不显得笨拙。


![鸣谢：Christian Hergert](/data/attachment/album/202112/08/114456gv57p22j2oi3om2h.png)


在我看来，这很不错，与侧边栏的实施相比，应该用户体验更好。


### 改进的 “弹出式” 打开功能


![鸣谢：Christian Hergert](/data/attachment/album/202112/08/114458u9zosqwt3707vgv4.jpg)


当你试图打开一个最近的文件或搜索某个东西时，会出现一个弹出式窗口来快速查找任何最近的文件，而不需要启动一个新的对话框。


这节省了时间，是一个不错的功能。在即将发布的“文本编辑器”中还进行了一些细微的改进，显得更苗条、更便捷。


换句话说，你会发现它改进了键盘导航，只需按下 `Ctrl + K`，就可以寻找你想要的文件。


### 引入重新着色支持


即将发布的 GNOME 文本编辑器可以让你轻松地应用不同的风格模式（或主题），而改变整个应用程序。


博文中提到了更多关于它的内容：



> 
> 本周最直观的工作是引入了重新着色支持。它建立在 [libadwaita](https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/) 之上，并使用一个 CSS 提供者来覆盖主题中的颜色。我希望在不远的将来，libadwaita 会有一个重新着色的 API，为我们提供这个功能。
> 
> 
> 


下面是一个应用样式表时的例子：


![鸣谢：Christian Hergert](/data/attachment/album/202112/08/114459knlx7dsian6fas4a.png)


它有一些自带的主题，而且你还可以找到更多的主题。你可以在 Christian 的博客文章中找到更多截图：


![鸣谢：Christian Hergert](/data/attachment/album/202112/08/114500z0ahakwhwhaage9g.png)


你可以看看 [博客文章中的更多内容](https://blogs.gnome.org/chergert/2021/12/03/text-editor-happenings/)，还可以发现一些其他的技术变化，和一个由 Christian 设计的 vim 仿真的复活节彩蛋。


### GNOME “文本编辑器”会取代 Gedit 吗？


到现在为止，官方还没有确认这一点。然而，看一下 [Gedit 的开发活动](https://gitlab.gnome.org/GNOME/gedit)（目前有 41 个 alpha 版本），在过去的几个版本中没有明显增加变化，这可能意味着新的 GNOME “文本编辑器”将在GNOME 42 中取代 Gedit。


事实上，正如其 [GitLab 页面](https://gitlab.gnome.org/GNOME/gnome-text-editor) 中所提到的，GNOME 的新文本编辑器计划正式取代 Gedit，但它会在 GNOME 42 中发生吗？它的开发者 Christian Hergert 在他的博客中提到：



> 
> 随着我们为 GNOME 42 的准备工作而进行的竞赛，[文本编辑器](https://gitlab.gnome.org/GNOME/gnome-text-editor) 在过去的几周里已经成型。
> 
> 
> 


这可以被认为是一个暗示，GNOME 42 可能会包含这个新的文本编辑器。


不仅仅是 GNOME，[KDE 也对 Kate 进行了改造](https://news.itsfoss.com/kate/)，增加了针对开发者的功能。你将会有很多 [开源的文本编辑器](https://itsfoss.com/best-modern-open-source-code-editors-for-linux/) 可以选择。


当它发布时，我们将继续关注它。你怎么看？




---


via: <https://news.itsfoss.com/gnome-text-editor-to-replace-gedit/>


作者：[Ankush Das](https://news.itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[wxy](https://github.com/wxy) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![](/assets/images/pikapods-banner-v3.webp)


![](/assets/images/pikapods-banner-v3.webp)

Gedit is the default text editor for the GNOME desktop environment. It is a popular option and an effective text editor that offers all the essentials with a simple user interface.

But, with GNOME evolving, there is a new text editor that hasn’t yet replaced gedit. And, looking at its next release, it might just be ready to replace gedit in the upcoming GNOME 42 release with a bunch of improvements.

[Christian Hergert](https://twitter.com/hergertme?ref=news.itsfoss.com) shares more details about it in his [blog post](https://blogs.gnome.org/chergert/2021/12/03/text-editor-happenings/?ref=news.itsfoss.com) and on Twitter.

In this article, let me highlight those new improvements to GNOME Text Editor.

## Preferences Dialogue Makes a Comeback

The preferences setting was moved to the sidebar as part of an experiment in its previous release.

![](https://news.itsfoss.com/content/images/wordpress/2021/12/gnome-text-editor-old-preferences.png)

But, it did not prove to be as convenient and good-looking.

So, the preferences dialogue is coming back (as shown in the screenshot below) that aims to blend in with the design language of other GNOME apps without being clunky.

![](https://news.itsfoss.com/content/images/wordpress/2021/12/gnome-text-editor-preferences-677x1024.png)

Looks pretty sweet to me and should give a better user experience compared to the sidebar implementation for sure!

## Improved Open ‘Popover’ Feature

![](https://news.itsfoss.com/content/images/wordpress/2021/12/gnome-text-editor-popover-1024x685.jpg)

When you try to open a recent file or search for something, a popover appears to quickly look for any recent files without launching a new dialogue box.

This saves time and is a nice feature to have. With the upcoming release for text editor, this has received some slight improvements to appear slimmer and more effective.

In other words, you will find it improved for keyboard navigation by simply hitting Ctrl + K and then looking for the file you want.

## Introducing Recoloring Support

The upcoming release for GNOME’s text editor will let you easily apply different style-scheme (or themes) that affects the entire application.

The blog post mentions more about it:

The most visual piece of work this week was in introducing recoloring support. It builds atop

[libadwaita]and uses a CSS provider to override the colors in the theme. I expect there will be a recoloring API in the not-too distant future for libadwaita which will provide this for us.

Here’s a sample of what it looks like when you apply a style-scheme:

![](https://news.itsfoss.com/content/images/wordpress/2021/12/gnome-text-editor-style-scheme-1024x757.png)

You can find some of the themes bundled and can look for more as you explore. You can find more screenshot in Christian’s blog post.

![](https://news.itsfoss.com/content/images/wordpress/2021/12/gnome-text-editor-style-scheme-1-1024x757.png)

You can also find some other technical changes and a vim emulation easter egg by Christian as you explore the [blog post for more details](https://blogs.gnome.org/chergert/2021/12/03/text-editor-happenings/?ref=news.itsfoss.com).

## Will GNOME Text Editor Replace Gedit?

As of now, there is no official confirmation on this. However, looking at the [development activity for gedit](https://gitlab.gnome.org/GNOME/gedit?ref=news.itsfoss.com) (currently as 41 alpha version) with no significant additions in the past few releases, it could mean that the new GNOME Text Editor will replace gedit in GNOME 42.

In fact, GNOME’s new text editor plans to officially replace gedit as mentioned in its [GitLab page](https://gitlab.gnome.org/GNOME/gnome-text-editor?ref=news.itsfoss.com), but will it happen with GNOME 42? Its developer, Christian Hergert, mentions in his blog


[Text Editor]has really been shaping up in the past couple weeks as we race towards getting things ready for GNOME 42.

This could be taken as a hint that GNOME 42 may seem the inclusion of this new text editor.

It’s not just GNOME. [KDE also has revamped Kate](https://news.itsfoss.com/kate/) by adding features for developers. You’ve got plenty of [open source text editors](https://itsfoss.com/best-modern-open-source-code-editors-for-linux/?ref=news.itsfoss.com) to choose from.

We shall keep an eye on it when it releases. What do you think?

## More from It's FOSS...

- Support us by opting for
[It's FOSS Plus](https://itsfoss.com/#/portal/signup)membership. - Join our
[community forum](https://itsfoss.community/). - 📩 Stay updated with the latest on Linux and Open Source. Get our
[weekly Newsletter](https://itsfoss.com/newsletter/).