Skip to content

Commit

Permalink
Add documentation for new Scintilla feature "Change history"
Browse files Browse the repository at this point in the history
  • Loading branch information
eht16 committed Oct 19, 2023
1 parent 514adec commit 80fec37
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if INSTALL_HTML_DOCS
htmldocimagesdir = $(docdir)/html/images
dist_htmldocimages_DATA = \
images/build_menu_commands_dialog.png \
images/edit_change_history.png \
images/find_dialog.png \
images/find_in_files_dialog.png \
images/main_window.png \
Expand Down
32 changes: 32 additions & 0 deletions doc/geany.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2419,6 +2419,38 @@ Always
Always show virtual spaces beyond the end of lines


Change History
``````````````

The *change history* feature enables changed text in a document to be shown in the markers margin or by underlining the text.
By default, the *change history* feature is disabled.

Newly added, modified and removed lines or words are highlighted to easily track changes to the opened
document. The changes can be shown as vertical bars in the markers margin and/or as underlines in
the text directly.

.. note::
This feature may use a moderate amount of memory, especially if there are many or big changes in the document.
Also, modification information is not kept when re-opening a document - all change markers will be lost.


.. image:: ./images/edit_change_history.png

The image shows the default visuals:

* inserted characters appear with coloured underlines
* points where characters were deleted are shown with small triangles
* the margin shows a block indicating the overall state of the line, prioritizing the more consequential modified states
* the states are modified (orange), saved (green), saved then reverted to modified (green-yellow), and
saved then reverted to original (cyan).

Show in markers margin
Changes are shown in the markers margin as vertical bars

Show as underline indicators
Changes are shown as underlines in the text directly


Files preferences
^^^^^^^^^^^^^^^^^

Expand Down
Binary file added doc/images/edit_change_history.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions doc/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tarball = run_command('test', '-f', 'geany.html', check: false)
if tarball.returncode() == 0 or rst2html.found()
install_data(
'images/build_menu_commands_dialog.png',
'images/edit_change_history.png',
'images/find_dialog.png',
'images/find_in_files_dialog.png',
'images/main_window.png',
Expand Down

0 comments on commit 80fec37

Please sign in to comment.