lite icon indicating copy to clipboard operation
lite copied to clipboard

Feature Request: Show/Hide Tabs (View Names)

Open Pebaz opened this issue 5 years ago • 3 comments

I tried to go about doing this myself but it seems that showing view names at the tops of each open file is an integral part of the view rendering mechanism.

Could you look into making it so that showing tabs is optional? I'd really like this feature for "distraction free" coding.

Pebaz avatar Aug 18 '20 15:08 Pebaz

You can make this happen by editing the data/core/rootview.lua file. You need to go to the Node:draw function (~line 362) and remove the if #self.views > 1 branch, plus make the Node:get_tab_rect (~line 231) return 0, 0, 0, 0. You technically only need to do the second thing, but removing that draw_tabs call saves a fair amount of logic and function calls.

This is how it should look:

Peek 2020-10-11 18-27


This is ofc not very flexible nor configurable in any way, but I can implement some configuration and commands if @rxi agrees this is a nice additon.

Tmpod avatar Oct 11 '20 17:10 Tmpod

Awesome! Thanks for the help!

Pebaz avatar Oct 11 '20 17:10 Pebaz

No problem! If you want help with setting up some commands just lmk :)

Tmpod avatar Oct 11 '20 17:10 Tmpod