[Geany] tiny feature request: list open files

Jeff Pohlmeyer yetanothergeek at xxxxx
Mon Oct 1 15:14:48 UTC 2007


Don't know if this will help, but...

Here's a script for the lua plugin that will create a text
file containing a list of your open files, and launch some
external program to display the list:.


-------------
local file_browser="xterm -e less"
local filelist=os.getenv("HOME").."/geanyfiles.txt"
local fd=io.open(filelist,"w")
for file in geany.documents()
do
  fd:write(file.."\n")
end
fd:close()
os.execute(file_browser.." "..filelist.." &")
-------------


Save the script to ~/.geany/plugins/lua/file-browser.lua and it
will be in your "tools" menu the next time you start Geany.

 - Jeff



More information about the Users mailing list