Limit on number of files opened in tabs

Tony Balinski ajbj at free.fr
Wed Aug 11 18:47:56 CEST 2004


Quoting Joerg Fischer <jf505 at gmx.de>:

> Since new releases usually don't come so soon as most of
> us would like it, here is another workaround:
>
> Disable the tab bar (of no use for too many files), and
> use a macro displaying a list of the files in a (scrollable)
> list_dialog() box. The macro could be (untested)
>
> #define list_all_files {
>   list = ""
>   current=$file_path $file_name
>   filename = focus_window("last")
>   while(filename != "") {
>      list = list filename "\n"
>      filename = focus_window("next")
>      }
>   focus_window(current)
>   file = list_dialog("Select", list, "Ok")
>   focus_window(file)
>   raise_window()
> #}
>
> --Joerg

Sounds good, but doesn't work in practice if you have multiple windows.
Very odd: sometimes focus returns to the window which invoked the macro,
sometimes it goes to the chosen window. I don't know why. It will bring
the chosen tabbed document to the front of its window however, which is
good.

Tony



More information about the Discuss mailing list