Score:2

How do I close the current document in GNOME Text Editor?

bd flag

When I open GNOME Text Editor (not gedit), by default it opens the last document that I had edited. How do I close this current document so that I get a blank new file that hasn't been saved yet?

bd flag
If you don't want GNOME Text Editor to always open the last edited document when launched, you can disable the "Restore Session" option in the preferences. [screenshot](https://i.stack.imgur.com/9M1BL.png)
user643722 avatar
jp flag
CTRL+W (as in Firefox and Chrome)
Score:1
jp flag

As suggested by @muru the keyboard shortcut CTRL+w will close the current tab (as in Firefox and Chrome). If there is only one document open, the main application window will still remain afterwards.

Score:1
bd flag

First, click on the "+" button to open a new document:

Screenshot

Then click "x" on the tab that you wish to close:

Screenshot

Now you have a blank document that has not been saved yet.

muru avatar
us flag
Out of curiosity, what happens when you press Ctrl-W with only that restored tab? Does it close the whole window?
bd flag
@muru It closes just the tab without closing the whole window! Amazing! I'll accept that as an answer, if you want.
muru avatar
us flag
Nah, you can update your answer with it. It was just a guess and I don't have it handy to test myself.
vanadium avatar
cn flag
Did you try disabling the "Restore Session" option?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.