section | x-masysma-name | title | date | lang | author | keywords | x-masysma-version | x-masysma-repository | x-masysma-website | x-masysma-copyright | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32 |
templates |
Ma_Sys.ma “New File” Templates |
2021/02/02 19:12:11 |
en-US |
|
|
1.0.0 |
Copyright (c) 2020 Ma_Sys.ma.
For further info send an e-mail to Ma_Sys.ma@web.de.
|
This package provides a set of files that can be used to create “new” files of the same type. The following files are noteworthy templates:
latex_document.tex
For regular texts
latex_presentation.tex
For beamer presentations
xhtml_1_page.xhtml
XHTML 1.0 webpage template
svg_file.svg
SVG empty image
empty_file
Empty file (general purpose, new text file etc.)
Additionally, there are some files to be used in conjunction with other
Ma_Sys.ma content. build_*.xml
files instantiate
masysmaci/build(32) and overview_conf.sh
is
related to scrapbook_overview
from shellscripts(32).
build_file.xml
Template build.xml
to compile programs/documents
build_package.xml
Template build.xml
to generate a package
overview_conf.sh
Create configuration for scrapbook_overview
If d5man2(32) is installed, template d5man2.md
becomes
available to create empty D5Man 2 pages.
ma_new_file
-- select template file to copy to current working directory
ma_new_file
Interactively displays the list of available template files and allows the user to select one of the files. After pressing [ENTER], the selected file is copied to the present working directory.
Here is an example output. If [ENTER] is pressed at this time, template
empty_file
is copied to the present working directory.
-------------------------------------------------------------------------
Ma_Sys.ma Template File Selector 1.0.0.3, Copyright (c) 2012 Ma_Sys.ma.
For further info send an e-mail to Ma_Sys.ma@web.de.
-------------------------------------------------------------------------
[j] and [k] to select, [enter] or [l] to accept, [h] or [q] to abort.
) build_file.xml
) build_package.xml
) d5man2.md
) empty_dir
*) empty_file
) latex_document.tex
) latex_presentation.tex
) overview_conf.sh
) svg_file.svg
) xhtml_1_page.xhtml
ma_new_file
integrates well into terminal-based file management applications
like vifm
. If conf-cli(32) is used, shortcut ön
is mapped
to ma_new_file
in vifm
.
- The script fails to display its UI properly if the window is too small.
- Code quality could be enhanced. Given that such script is likely to already exist with a better implementation, it seems sensible to replace it with an existing alternative once such an alternative is found.
Ma_Sys.ma Templates are newly licensed under CC0-1.0 to make sure that the templates can be freely used to create documents under any license of the respective author's choice.
See /usr/share/common-licenses/CC0-1.0 on any Debian system or https://creativecommons.org/publicdomain/zero/1.0/legalcode