| | 1 | = Preference System = |
| | 2 | |
| | 3 | There are several types of preferences we can think of. |
| | 4 | There are the current view printed preferences such as B<Show newlines> |
| | 5 | or '''Show Line numbers''' and there are the project and file |
| | 6 | oriented preferences such as the use of tabulators or white space |
| | 7 | for indentation. |
| | 8 | |
| | 9 | Currently some of the preferences are accessible via the |
| | 10 | '''Edit => Preferences''' menu options, others via the '''View''' |
| | 11 | menu option. |
| | 12 | |
| | 13 | We have to make sure that when changing the preferences via |
| | 14 | the GUI it change for the correct things. |
| | 15 | |
| | 16 | E.g. when changing the '''Use Tabulators''' preference it currently |
| | 17 | applies to all the files open currently or in the future. |
| | 18 | It should probably apply to the current file and/or the |
| | 19 | current project. Such options - when changing them - might even |
| | 20 | be applied ''retroactively''. That is when I change the tabulator/space |
| | 21 | mode of a file or a project it should ask if I want to reflow the |
| | 22 | file with the new method of indentation? |
| | 23 | |
| | 24 | On the other hand the ''Tabulator display size'' is purely a local, editor |
| | 25 | oriented preference. It should probably apply to all files currently |
| | 26 | open. |
| | 27 | |
| | 28 | There are other aspects of preferences as well that might not exactly |
| | 29 | overlap with the above set: |
| | 30 | |
| | 31 | The developer might work on the same project on different machines. |
| | 32 | In such case some of the personal preferences should apply only |
| | 33 | only on one computer while others apply in both places. |
| | 34 | |
| | 35 | In particular if Padre is installed in a Portable Perl it might |
| | 36 | run on machines with different parameters. Screen size and resolution |
| | 37 | might be different along other parameters. We would like to make sure |
| | 38 | the relevant preferences are separated from those that are constant |
| | 39 | even when moving between computers. |
| | 40 | |
| | 41 | == Editor or view oriented preferences == |
| | 42 | |
| | 43 | |
| | 44 | * Size and location of windows |
| | 45 | * Files recently opened |
| | 46 | * Files that were open last time, cursor location |
| | 47 | * Highlight indentation guide (TO DO) |
| | 48 | |
| | 49 | This should be a separate option available only |
| | 50 | if the '''Show indentation guide''' and brace matching is on. |
| | 51 | |
| | 52 | If '''SetHighlightGuide''' is set to 8 then when the user reaches one |
| | 53 | side of a pair of braces the indentation guide - if there is one |
| | 54 | on column 8 - will be highlighted. (in green). |
| | 55 | |
| | 56 | As I understand Padre should constantly adjust the '''SetHighlightGuide''' |
| | 57 | so that in every block the "correct" indentation guide is highlighted. |
| | 58 | |
| | 59 | * Tabulator display size |
| | 60 | * Allow experimental features |
| | 61 | |
| | 62 | In order to allow the experimental features one needs to manually turn on the |
| | 63 | experimental flag to 1 in '''config.yml'''. As Padre keeps overwriting this file you'll |
| | 64 | have to make this change with another editor and while Padre is B<not> open. |
| | 65 | |
| | 66 | The '''config.yml''' file is in '''~/.padre/''' on Linux/Unix and in general in |
| | 67 | your home directory on Windows. In any case the '''Help/About''' box will show |
| | 68 | you the path of the '''.padre''' directory of Padre. |
| | 69 | |
| | 70 | Once you set the experimental flag when you start Padre you will see a new |
| | 71 | menu on the right side of the menu bar called '''Experimental'''. |
| | 72 | |
| | 73 | * Open file policy |
| | 74 | |
| | 75 | What files to open when launching Padre? |
| | 76 | nothing, new, those that were open last time? |
| | 77 | |
| | 78 | * Max/Min number of modules to display in POD viewer |
| | 79 | |
| | 80 | |
| | 81 | == File and Project oriented preferences == |
| | 82 | |
| | 83 | * Indentation should be by tabulators or spaces |
| | 84 | * In case of using spaces for indentation, the width of every indentation level |
| | 85 | |
| | 86 | |