Debian Codegraph @

docs/synchronize.rst

raw
1 Synchronize with Documents
2 ==========================
3
4 This page describes how to keep items in a tab synchronized with files in a
5 directory on a disk (or a Dropbox folder).
6
7 Configuration
8 -------------
9
10 .. note::
11
12 On Windows, to enable this feature you need to install "Synchronize"
13 plugin. All plugins are installed by default and also included in the
14 portable zip version of the app.
15
16 Set path synchronization directory for a tab.
17
18 1. Open "Preferences" (``Ctrl+P`` shortcut).
19 2. Go to "Items" tab.
20 3. Select "Synchronize".
21
22 .. image:: images/synchronize-config.png
23 :scale: 50%
24 :alt: Configure synchronization directory
25
26 4. Double-click an empty space in **Tab Name** column and enter name of the tab to synchronize.
27 5. Click the browse button on the same row and select directory for the tab.
28 6. Click OK to save changes.
29
30 Now any items in the synchronized tab will be saved in the directory and
31 existing files will show up in the tab even if the tab or a file is created
32 later.
33
34 Synchronized items can be copied and edited as normal items.
35
36 File Types
37 ----------
38
39 Only files with known format can be shown as items. By default:
40
41 - Files with ``.txt`` suffix show up as text items.
42 - Files with ``.html`` suffix show up as formatted text items.
43 - Files with ``.png`` suffix (and others) show up as images.
44
45 To show other files as items you need to set their file suffix in the second
46 table in the configuration. Here you can set icon and MIME format for the file
47 data.
48
49 .. image:: images/synchronize-formats.png
50 :scale: 50%
51 :alt: Configure file formats to show
52
53 The configuration in the image above allows for content of all files with
54 ``.cpp`` suffix in synchronized directories to show up text items, i.e. items
55 have ``text/plain`` format containing the file data.