Document the %f macro related to mcedit.

This commit is contained in:
Andrew Borodin 2017-10-15 20:14:49 +03:00
parent f89fff139c
commit b11c84dbb7
3 changed files with 7 additions and 5 deletions

View File

@ -2395,7 +2395,8 @@ The error file name.
The current menu name.
.TP
.IR %f " and " %p
The current file name.
In file manager user menu: the current file name in selected panel.
In mcedit user menu: the name of opened file.
.TP
.I %x
The extension of current file name.

View File

@ -2582,7 +2582,8 @@ FTP\-сервера, в памяти (в кеше). Время, в течени
Имя текущего файла меню.
.TP
.I "%f" и "%p"
Текущее имя файла.
В файле меню файлового менеджера: текущее имя файла в активной панели.
В файле меню встроенного редактора: имя открытого файла.
.TP
.I "%x"
Расширение текущего файла.

View File

@ -603,9 +603,9 @@ menu_file_own (char *path)
/* Formats defined:
%% The % character
%f The current file (if non-local vfs, file will be copied locally and
%f will be full path to it).
%p The current file
%f The current file in the active panel (if non-local vfs, file will be copied locally
and %f will be full path to it) or the opened file in the internal editor.
%p Likewise.
%d The current working directory
%s "Selected files"; the tagged files if any, otherwise the current file
%t Tagged files