texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.84k stars 346 forks source link

Distraction-free mode #516

Open CsatiZoltan opened 5 years ago

CsatiZoltan commented 5 years ago

A distraction-free mode (when only the text editor is visible, without menus, line numbering, etc.) is welcome. Setting TeXstudio to full screen and closing the side bars helps but the menus are still visible, as well as the toolbar at the top. A single command to enter and exit distraction-free mode would be nice.

timhoffm commented 5 years ago

It's possible to deactivate almost all elements except for the menu bar itself. The settings are a bit scattered:

You can use the fullscreen mode (F11 or double-click on an empty part of the menu bar). Note: the toolbar settings are saved separately for normal and fullscreen mode. All other settings are global.

grafik

CsatiZoltan commented 5 years ago

And how can I remove the toolbar at the bottom? bottomBar

Any plans for being able to remove the menu as well (or just hide it, and display it when hovering over it - this is how the toolbar works in the embedded viewer)?

timhoffm commented 5 years ago

grafik

Hiding the menu bar ist not easily possible. A large part of the shorcut system is bound via the menu. If we hide the menu, these shortcuts become inactive. This is a property of Qt and we cannot do anything about it. The only way for hiding the menu would be to complete rewrite the shortcut halding mechanisms. This is not something we are aiming for and I'm not even sure if that's possible.

CsatiZoltan commented 5 years ago

Thanks, this is good enough. I keep this issue open if the TeXstudio team wants to make the steps you showed me possible with a single menu item. Otherwise, feel free to close this issue.

Martin-2019 commented 2 years ago

Dear Maintainers!

Please, add simply distraction free mode like other modern editors - with only one key - only text on the screen.

Best Regards

M.

octaeder commented 8 months ago

Clarification needed. Following elements are known:

image

  1. horizontal & vertical tool bars
  2. status bar
  3. structure, messages, and (embedded) PDF-viewer
  4. editor tab bar
  5. editor status
  6. labels, line numbers, folding, and line changes
  7. white space marks within text

So what should be hidden by the function?

CsatiZoltan commented 8 months ago

First, we need to define what distraction-free writing means. To me, it means that the user wants to type without considerable mouse usage. This implies that we do not need the structure pane, the status bar, the horizontal and vertical toolbars, the editor status and the line numbers (that is not relevant when writing). What I would definitely keep is the tab bar (if a project is structured into multiple files, the user may want to see the opened files), the editor (obviously). It is debatable, but I think that on modern screens, a lot of text can fit in one line. It is not convenient to look at very long lines, so we could keep the PDF viewer pane visible to take some screen space (although this might not be true on laptop screens). Since it is also useful to compile the document from time to time, the message pane could be left too. The folding is not intrusive and helps in seeing the global structure.

The problem is that distraction-free is subjective. What about creating an option to let the user select what to hide when entering to distraction-free mode?

Martin-2019 commented 8 months ago

My idea is shown in the screenshot - full screen os x and Screen text only.

In addition, the possibility to turn off even the line numbering shown in the screenshot.

I am surprised that the topic is back.

Regards