Il 23/04/2011 23:48, Tommaso Cucinotta ha scritto:
I say "preliminary" because things that one may want to add are:
-) launch also the editor, when you press "Create..."
-) add another "Edit..." button for launching the external editor
-) better control of *where* the new file is created (in the patch it
is the current folder, but I guess I should use the folder of the
".lyx" file I'm inserting into (how to get that ?)
-) possibility to use different empty template files, and to specify
which one we want (e.g., for images, .png, .svg, .dia, ...).
I forgot to mention:
-) instead of the "Create" button, detect the non-existent file on
dialog "Ok" button, and query the user if the file doesn't exist
-) self-detect the format of the new file from the provided filename
extension, if present, instead of relying on the choice Combo (it's a
burden to have to select "Dia" *and* provide a file-name like
"mydrawing.dia" -- the latter just includes the former info).
T.