Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when you reduce directory in the sidebar, hide equivalent tabs in the editor. #2216

Closed
sgnyjohn opened this issue Jul 13, 2019 · 8 comments
Closed

Comments

@sgnyjohn
Copy link

when you reduce directory in the sidebar, hide equivalent tabs in the editor.

in the logic that each directory is a project, would allow filtering the editor's tabs with the projects of interest.

@elextr
Copy link
Member

elextr commented Jul 14, 2019

in the logic that each directory is a project, would allow filtering the editor's tabs with the projects of interest.

A single directory == project is not an idiom that Geany specifically supports. It is not an idiom that would work for anything but the smallest projects, since many (most?) projects use more than one directory, see Geany's own source.

If you use the sidebar documents list you can turn off the tabs and get back precious vertical real estate.

@lpaulsen93
Copy link
Contributor

The workbench plugin has got an option in it's context menu labeled "Open all files in sub-directory" and "Close all files in sub-directory". So it does not work automatically on reducing/collapsing a sub-directory in the tree but it's still faster than closing each single file by hand.

@ntrel
Copy link
Member

ntrel commented Jul 15, 2019

Close all files in sub-directory

Geany's built in Documents sidebar supports this, right click on a folder and click close.

@elextr
Copy link
Member

elextr commented Jul 15, 2019

@LarsGit223 and @ntrel the OP wants to hide not close the tabs I believe.

@elextr
Copy link
Member

elextr commented Jul 15, 2019

If you use the sidebar documents list you can turn off the tabs and get back precious vertical real estate.

It has been pointed out that this may not be clear, so to expand:

The "Documents" sidebar tab has the same functionality as the notebook tabs, and since its vertical not horizontal it can show many more files than the tabs can before scrolling is needed.

Since it has the same functionality, when it is in use the tabs are redundant, and can be turned off (Edit->Preferences->Interface->Notebook Tabs->Show Editor Tabs) to get some vertical space back (especially on systems where the theme makes tabs very high).

When the tabs are turned off, rolling up a directory in the Documents tab is effectively hiding those files as the OP requested.

@ntrel
Copy link
Member

ntrel commented Jul 15, 2019

@ntrel the OP wants to hide not close the tabs

I know.

@sgnyjohn
Copy link
Author

well, what I need is a context manager. my projects or sub-projects
are organized into directories. I have in use scripts that open different contexts,
but it is not ideal because there are libraries that are repeated in contexts.

the option to navigate in the "Documents" sidebar tab is possible, but if
there are many "directories" and files open, it becomes slow and not pleasant,
and higher horizontal tabs, with fewer options, in my opinion, are practical.

I then imagined a checkable option that would trigger this behavior
in Preferences -> Interface -> Notebook tabs.

however, one change may lead to other ...

@elextr
Copy link
Member

elextr commented Jul 18, 2019

@sgnyjohn perhaps you could use the Geany project files since they are basically a named session and can have files from anywhere open, and switching projects switches files open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants