sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
809 stars 39 forks source link

Show count of opened files/allow to search by name #5480

Closed KES777 closed 2 years ago

KES777 commented 2 years ago

Problem description

Sometimes I want to switch between views by target filename from keyboard without mouse

Preferred solution

image

Here we can display count of opened files and provide search/filter functionality (like telegram does for chats)

Alternatives

none

Additional Information

No response

BenjaminSchaaf commented 2 years ago

Goto-anything fulfills this purpose: https://docs.sublimetext.io/guide/usage/file-management/navigation.html#goto-anything

KES777 commented 2 years ago

But it still does not display stat about count of opened files.

BenjaminSchaaf commented 2 years ago

I don't really see any value in that, why do you want to see the number of open files?

KES777 commented 2 years ago

Just for information.

BenjaminSchaaf commented 2 years ago

If you want the number you can run len(window.views()) in the ST console, or write a plugin that displays that number. I still don't see a point in having that number displayed permanently, so I'm going to close the issue.

gdinit commented 1 year ago

I do not know what the original use case is, but my use case for KNOWING how many files are open is a measure of recent laziness (how many TEMP notes left hanging in ST).

If you want the number you can run len(window.views()) in the ST console, or write a plugin that displays that number. I still don't see a point in having that number displayed permanently, so I'm going to close the issue.

Thank you, I used the command you supplied. Clearly it works. Once or twice, it is fine.

After a while, retyping that (or pasting back in), gets old quick for my taste. I started looking for a plugin that provides this visibility, and looks like there is one, sharing for anyone interested: https://packagecontrol.io/packages/Show%20Open%20Files

Note from the plugin's page:

"Usage The number of files open in the current window will be displayed in the status bar. This is updated whenever a view is opened or closed. There are no settings to configure."