TranslateProject/sources/tech/20220427 Hands on With GNOME-s New Text Editor for Linux Users.md
DarkSun a3ba96939f 选题[tech]: 20220427 Hands on With GNOME’s New Text Editor for Linux Users
sources/tech/20220427 Hands on With GNOME-s New Text Editor for Linux Users.md
2022-04-27 05:02:31 +08:00

7.6 KiB
Raw Blame History

Hands on With GNOMEs New Text Editor for Linux Users

If you are a regular reader here on Its FOSS, you might have read about GNOMEs plan to replace Gedit with their own text editor.

Yes, GNOME has a brand-new text editor and it is called, well, Text Editor.

While Gedit is still the default, this new editor has made an entry with the release of GNOME 42. I am using Ubuntu 22.04 and it is available to install from the repositories.

Not exactly a brand-new feature of Ubuntu 22.04, this new editor is available to install in the latest Ubuntu LTS version and perhaps other distributions using GNOME 42.

Intrigued? Let me share my experience with this new editor and then Ill show you the installation steps.

Experience with GNOME Text Editor

Built on top of the controversial libadwaita, GNOME Text Editor follows the new design principles set by its development committee. It has a sleek, modern look with rounded corners.

Dont expect anything extraordinary here in terms of features. Its not a replacement of coding focused editors like Atom or VS Code. This also doesnt mean its as plain and simple as Windows Notepad.

Lets see what it has to offer.

Saved sessions

By default, GNOME Text Editor automatically opens the last opened files. This is a neat feature that lets you resume your work.

This behavior can be controlled by the Restore Session option under Preferences.

You can also search and open the recently opened files. Clearing the history (as shown in the above image) will clear the recently accessed files.

Themes and in-built themes

Like new GNOME applications, it gives you three theming style to choose from: system theme, light theme and dark theme. If you have chosen system theme, the editor will automatically switch between light and dark theme based on the system theme (light or dark) in use.

System theme option gnome text editor

Apart from that, you can choose between eight available themes (available in dark and light variants) under the preference section.

Theme options under preference

You can see the changes immediately as you select the themes.

Changes and Unsaved file handling

Modified and unsaved files are prominently reflected while you work on them.

Unsaved files are more prominently marked

Youll obviously be warned if you try to close the editor with modified files.

There is no automatic save options here. Gedit has option for automatically saving files without using any additional plugins.

No plugins

Speaking of plugins, there is no such system for the new text Editor yet. Gedit has a decent plugin ecosystems that helps in enhancing the capacity of the editor.

I dont have any concrete information if plugins will be allowed in this editor in the future or not.

Syntax highlighting

Syntax highlight is an integral part of text editors these days. GNOME Text Editor promptly highlights syntax for various programming language.

This is usually done based on the extension of the code file. However, I noticed that it also detects and highlights syntax for bash scripts and C/C++ programs even before saving the file.

Bash scripts. C/C++ code are detected even without file extension

Keyboard shortcuts

I love using keyboard shortcuts in my favorite applications. It makes things quicker.

The GNOME Text Editor supports plenty of keyboard shortcuts for all kind of actions. You can find the list of keyboard shortcuts under the hamburger menu (☰) or use the keyboard shortcut Ctrl+?.

Keyboard shortcuts in GNOME Text Editor

Search and replace

Text Editor has pretty decent find and replace feature. You can use set extra parameters like regex search, case-sensitive search or match exact words.

search replace gnome text editor

More features

There are several other features that you may find in Gedit:

  • Spell check
  • Line numbers
  • Automatic indentation
  • Space/tab indentation
  • Change case
  • Text wrapping

What it doesnt do?

It is essentially a text editor, so you cannot open doc files in it and thats by design. If you open a doc file, youll see gibberish. The same goes for PDF files.

Also, it is not intended for hardcore coding. It cannot replace the likes of VS Code. It is okay for occasional code reading or shell scripting but it doesnt have the features like project folders or running the codes.

Installing GNOME Text Editor

As stated earlier, it is available with GNOME 42, but not installed by default. In Ubuntu 22.04, it is available in the Universe repository and can be installed with the following command:


    sudo apt install gnome-text-editor

It should be available in other distros with GNOME 42. Please check the version of desktop environment you are using.

Once installed, you can search and open it in the Activities area. The icon for the new editor is a refreshed version of the Gedit icon.

Conclusion

The good old Gedit has been a part of GNOME for a long time. There were lack of development a few years ago but the development has resumed again. However, the GNOME team is working on revamping their core applications for GTK 4 and libadwaita.

This new Text Editor looks like a reimplementation of the Gedit with similar interface and feature but a more fluid experience which is more consistent with the new GNOME design.

It wont surprise me that this new editor becomes the default text editor in the coming version of GNOME. It would be interesting to see if a plugin ecosystem is developed for the new editor or not.


via: https://itsfoss.com/gnome-text-editor/

作者:Abhishek Prakash 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出