File: app-information.lua

package info (click to toggle)
geany-plugins 0.19-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,864 kB
  • ctags: 3,059
  • sloc: ansic: 30,059; sh: 10,145; makefile: 531; python: 523
file content (25 lines) | stat: -rw-r--r-- 427 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--[[
  Shows some user prefs and application information 
--]]

local info={}



function read_table(t, m)
  if not t then return end
  for k,v in pairs(t) do
    if type(v)=="table" then
       read_table(v, k.."."); -- recurse into sub-table
    else
       table.insert(info,m..k..": "..tostring(v))
    end
  end
end

read_table(geany.appinfo(), "")

table.sort(info)

geany.message("App info:", table.concat(info, "\n"))