diff --git a/wiki/wiki.toc.txt b/wiki/wiki.toc.txt index cca014d9..534d5086 100644 --- a/wiki/wiki.toc.txt +++ b/wiki/wiki.toc.txt @@ -41,6 +41,7 @@ __________ * [Run](https://github.com/BBasile/Coedit/wiki#run-options) * [All](https://github.com/BBasile/Coedit/wiki#all-categories) * [DUB editor](https://github.com/BBasile/Coedit/wiki#dub-project-editor) +* [Dfmt commander](https://github.com/BBasile/Coedit/wiki#dfmt-commander) * [Messages](https://github.com/BBasile/Coedit/wiki#message-widget) * [Custom tools](https://github.com/BBasile/Coedit/wiki#custom-tools-widget) * [Todo list](https://github.com/BBasile/Coedit/wiki#todo-list) diff --git a/wiki/wiki.todo.txt b/wiki/wiki.todo.txt index cc90ac5f..091a6833 100644 --- a/wiki/wiki.todo.txt +++ b/wiki/wiki.todo.txt @@ -3,5 +3,4 @@ - project config widget, base/overridden config specifications. Note about pre/post build proc as their options cant be overridden. - project config widget, base/overridden config. screenshot for widget view 'All categories'. - applications options (MRU & reload last stuff). -- editor, toolbar description, split view description + screenshot. -- widget section for Dfmt commander. \ No newline at end of file +- editor, toolbar description, split view description + screenshot. \ No newline at end of file diff --git a/wiki/wiki.txt b/wiki/wiki.txt index 84cac54c..4ab9da6e 100644 --- a/wiki/wiki.txt +++ b/wiki/wiki.txt @@ -733,6 +733,20 @@ New properties can be added or removed: ![](https://raw.githubusercontent.com/BBasile/CoeditWikiData/master/dub_edit2.png) +## Dfmt Commander + +The _Dfmt commander_ widget is a simple but complete interface for the D source code formater [Dfmt](https://github.com/Hackerpilot/dfmt). The background tool has to be build and installed in one of the _PATH_ known by the operating system. + +![](https://raw.githubusercontent.com/BBasile/CoeditWikiData/master/dfmt1.png) + +A property inspector allows to tweak the format. See the [official documentation](https://github.com/Hackerpilot/dfmt#configuration) to learn more about the options. + +- ![](https://raw.githubusercontent.com/BBasile/Coedit/master/icons/other/accept.png): apply the formatting. The editor state is backed up before each formatting. +- ![](https://raw.githubusercontent.com/BBasile/Coedit/master/icons/other/cancel.png): restore the previous backup. + +The formatting is applied in memory and is undo-able either from the widget or from the code editor. The changes are not physically applied until the file is explicitly saved. +Formatting options are saved between each session in [Coedit data folder][lnk_widg_opts]. + ## Message widget The message widget displays a stream of information about the current file or about the current project.