7.6 KiB
Hands on With GNOME’s New Text Editor for Linux Users
If you are a regular reader here on It’s FOSS, you might have read about GNOME’s 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 I’ll 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.
Don’t expect anything extraordinary here in terms of features. It’s not a replacement of coding focused editors like Atom or VS Code. This also doesn’t mean it’s as plain and simple as Windows’ Notepad.
Let’s 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.
Apart from that, you can choose between eight available themes (available in dark and light variants) under the preference section.
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.
You’ll 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 don’t 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.
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+?.
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.
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 doesn’t do?
It is essentially a text editor, so you cannot open doc files in it and that’s by design. If you open a doc file, you’ll 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 doesn’t 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 won’t 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 译者:aREversez 校对:校对者ID