Latest post of the previous page:
Именно так, и это значит оставить сообщение для модераторов.LUA File List: «один файл — одна строка»
-
- Posts: 1515
- Joined: Wed 16 Mar, 2005 06:26
- Location: Новосибирск
- Been thanked: 1 time
- Contact:
Re: LUA File List
Something like
Do not include non empty folders.
The folder contains any files will not be added into the list. If an option "Process subfolders" was not set, every folder will be treated as empty because no search was done.
Do not include empty folders.
The folder contains no files will not be added to the list. If an option "Process subfolders" was not set, every folder will be treated as empty because no search was done.
Do not include non empty folders.
The folder contains any files will not be added into the list. If an option "Process subfolders" was not set, every folder will be treated as empty because no search was done.
Do not include empty folders.
The folder contains no files will not be added to the list. If an option "Process subfolders" was not set, every folder will be treated as empty because no search was done.
Ты мне не выкай!
«ФарФорум не для пользователей!»
Upd:
P.S. Я просто поддерживаю беседу.» © Народ.
xmpp:kildor@jabber.ru
«ФарФорум не для пользователей!»
Upd:
P.S. Я просто поддерживаю беседу.» © Народ.
xmpp:kildor@jabber.ru
Re: LUA File List
Спасибо большоеKildor wrote:Something like
Do not include non empty folders.
The folder contains any files will not be added into the list. If an option "Process subfolders" was not set, every folder will be treated as empty because no search was done.
Do not include empty folders.
The folder contains no files will not be added to the list. If an option "Process subfolders" was not set, every folder will be treated as empty because no search was done.
- HaRT
- Moderator
- Posts: 10540
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 201 times
- Been thanked: 334 times
Re: LUA File List
Что понимается под текущим каталогом? Директория активной панели, текущая директория процесса Фара или что-то другое?ladserg wrote:Изменения в версии 2014-09-18-0:
- Добавлен модификатор r для полей %P и %D, делающий путь относительным к текущему каталогу.
Фар есть инструмент, а не нянька. © 2009 DrKnS
Re: LUA File List
Если коротко, то это: far.GetCurrentDirectory(), т.е. реальный текущий каталог текущей панели, как то так. Если вы в каталоге C:\Patch\Dir откроете архив папок, и в архиве войдёте в какой то каталог, а то и глубже, то текущим каталогом (в данной случае) все равно будет C:\Patch\Dir.HaRT wrote:Что понимается под текущим каталогом? Директория активной панели, текущая директория процесса Фара или что-то другое?
Впрочем плагин все равно пока не умеет работать с ФС плагинов (таких как arclite).
- John Doe
- Бюрократ
- Posts: 13558
- Joined: Wed 27 Apr, 2005 20:42
- Has thanked: 67 times
- Been thanked: 391 times
- Contact:
Re: LUA File List
Разве?far.GetCurrentDirectory(), т.е. реальный текущий каталог текущей панели
Update
Всё так, учитывая ограниченность поддержки плагиновых панелей.
LUA File List
Во времени файла ошибочка
Заместо минут - секунды!
И еще - TZ не учитывается. Far в атрибутах файла показывается 19:20 и в файллисте получаю 17:20 (у меня GMT+2)
Как-бы это поправить?!

Code: Select all
-- Преобразовывает время в формате FileTime в строку вида "чч.мм.сс"
local function getTime(d)
local ft=win.FileTimeToSystemTime(d)
return string.format("%02d:%02d:%02d", ft.wHour, ft.wSecond, ft.wSecond)
end
И еще - TZ не учитывается. Far в атрибутах файла показывается 19:20 и в файллисте получаю 17:20 (у меня GMT+2)
Как-бы это поправить?!
LUA File List
Исправил, залил исправленное на плагринг. Спасибо за помощь.avgreen wrote:Во времени файла ошибочка
Заместо минут - секунды!Code: Select all
-- Преобразовывает время в формате FileTime в строку вида "чч.мм.сс" local function getTime(d) local ft=win.FileTimeToSystemTime(d) return string.format("%02d:%02d:%02d", ft.wHour, ft.wSecond, ft.wSecond) end
И еще - TZ не учитывается. Far в атрибутах файла показывается 19:20 и в файллисте получаю 17:20 (у меня GMT+2)
Как-бы это поправить?!
- Mauro72
- Posts: 219
- Joined: Wed 11 Aug, 2010 00:23
- Location: Rosario, Argentina
- Been thanked: 9 times
LUA File List
Hi,
- Folders with point separator are wrong in file list. Ex: folder "Dr.Alban" show in file list only with "Dr"
- Any option to put first the folder and then the files inside
Folder is "Boney M' (The Best Hit Collection)" with 5 files
Now:
01. Happy Songs
02. Hooray! Hooray!
03. Kalimba De Luna
04. Daddy Cool
05. Brown Girl In The Ring
Boney M' (The Best Hit Collection)
Will be good if put the folder first and then the files:
Boney M' (The Best Hit Collection)
01. Happy Songs
02. Hooray! Hooray!
03. Kalimba De Luna
04. Daddy Cool
05. Brown Girl In The Ring
Thanks!
- Folders with point separator are wrong in file list. Ex: folder "Dr.Alban" show in file list only with "Dr"
- Any option to put first the folder and then the files inside
Folder is "Boney M' (The Best Hit Collection)" with 5 files
Now:
01. Happy Songs
02. Hooray! Hooray!
03. Kalimba De Luna
04. Daddy Cool
05. Brown Girl In The Ring
Boney M' (The Best Hit Collection)
Will be good if put the folder first and then the files:
Boney M' (The Best Hit Collection)
01. Happy Songs
02. Hooray! Hooray!
03. Kalimba De Luna
04. Daddy Cool
05. Brown Girl In The Ring
Thanks!
LUA File List
Если есть у кого возможность, переведите пожалуйста человеку.
В логике файловой системы, всё что за последней точкой в имени файла является расширением, я придумаю что нибудь, для исключения папок из данной логики.Mauro72 wrote:- Folders with point separator are wrong in file list. Ex: folder "Dr.Alban" show in file list only with "Dr"
Я попробую что нибудь придумать. Понадобится немного времени, но вы не первый кто просит это. Пока это упиралось в особенность алгоритма обхода, но я придумаю что нибудь.Mauro72 wrote:- Any option to put first the folder and then the files inside
- HaRT
- Moderator
- Posts: 10540
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 201 times
- Been thanked: 334 times
LUA File List
Google translate handles it ok, I've just checked.
The only mistake it makes in that message is “bypass” instead of “traversal”.
Фар есть инструмент, а не нянька. © 2009 DrKnS
LUA File List
In new version use "%Nf", it out name.extension for folders, and name (without extension) for non-folders.Mauro72 wrote:- Folders with point separator are wrong in file list. Ex: folder "Dr.Alban" show in file list only with "Dr"
I do not know how to do this without sacrificing speed of plugin. Perhaps in the future I will be able to implement the algorithm of directory traversal and don't make plugin is very slow.Mauro72 wrote:- Any option to put first the folder and then the files inside
Ready to take any ideas about this.
But we must note that the user may wish to exclude the empty / non-empty directories.
LUA File List
In version 2015-07-08-1 added sorting result. Sort by "Name(asc)" solve this problem.Mauro72 wrote: - Any option to put first the folder and then the files inside
Не то что просил, но результат тот же

- Mauro72
- Posts: 219
- Joined: Wed 11 Aug, 2010 00:23
- Location: Rosario, Argentina
- Been thanked: 9 times
LUA File List
Gooood work ladserg, thanks!In version 2015-07-08-1 added sorting result. Sort by "Name(asc)" solve this problem.