File: file-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 (14 lines) | stat: -rw-r--r-- 281 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--[[
  Shows some information about the current document
--]]

local info={}

for k,v in pairs(geany.fileinfo() or {})
do
  table.insert(info, "  "..k..": "..tostring(v))
end

table.sort(info)

geany.message( "File info:", ( (#info>0) and table.concat(info,"\n") ) or "No file!" )