Skip to content

Commit

Permalink
v0.2.1 - final commit before release updating Readme.md and TODO.txt.
Browse files Browse the repository at this point in the history
  • Loading branch information
David C. Rankin committed Jul 18, 2018
1 parent 3255d16 commit f9544cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ End-of-line detection (`LF`, `CRLF` and `CR`) is provided on file-open and can b

Byte Order Mark (BOM) detection of all (UTF-8, UTF-16 (BE/LE), UTF-32 (BE/LE), UTF-7, UTF-1, UTF-EBCDIC, SCSU, BOCU-1, and GB-18030), but currently ASCII/UTF-8 is the only encoding handled by the editor. Work is progressing on character set handling for UTF-16/32 as well as on conversion routines between the different encodings.

When compiled with GtkSourceView, syntax highlighting, syntax languange selection and selectable syntax style (color schemes) are enabled in the View menu. The provided custom styles, 'styles/gtkwrite.xml' and 'styles/gtkwrite_light.xml' provide an alternative to the default styles and works well for C or bash. Both styles are continually being refined. You may install the syles folder in the normal global search location of '/usr/share/gtksourceview-2.0/' or on a per-user basis in '~/.local/share/gtksourceview-2.0/'. (for win32, install in the gtk-runtime directory structure) Single line and block-comemnts are automatically set and functional based on the sourceview language. At present all single-line comments (which can be applied to a selected block of text as well) are automatically handled for `ada asp awk c c-sharp cmake cpp desktop diff dosbatch erlang fortran gtkrc haskell java js lua makefile octave perl php python rpmspec ruby sql sh vbnet`. (all multi-line block comment start and end strings are also set, but their use is not yet implementd -- this includes the foregoing and `html objc pascal xml` which have no single-line comment strings)
When compiled with GtkSourceView, syntax highlighting, syntax languange selection and selectable syntax style (color schemes) are enabled in the View menu. The provided custom styles, 'styles/gtkwrite.xml' and 'styles/gtkwrite_light.xml' provide an alternative to the default styles and works well for C or bash. Both styles are continually being refined. You may install the syles folder in the normal global search location of '/usr/share/gtksourceview-2.0/' or on a per-user basis in '~/.local/share/gtksourceview-2.0/'. (for win32, install in the gtk-runtime directory structure) Single line and block-comemnts are automatically set and functional based on the sourceview language. At present all single-line comments (which can be applied to a selected block of text as well) and multi-line comment blocks are automatically handled for `ada asp awk c c-sharp cmake cpp desktop diff dosbatch erlang fortran gtkrc haskell java js lua makefile octave perl php python rpmspec ruby sql sh vbnet`. (all multi-line block comment start and end strings are also set, but their use is not yet implementd -- this includes the foregoing and `html objc pascal xml` which have no single-line comment strings) Regardless of the language, you can check Settings (edit) page to check whether comment syntax was atomatically determined for your language. If not, you can set the single-line comment to be applied as needed by your project.

(*Note:* for builds without GtkSourceView2, the single line comment can be set in Settings and it will be applied with the comment/uncomment commands. The automatic table lookup provided by GtkSourceView2 simple overrides this setting for the current file based on the language)
(*Note:* for builds without GtkSourceView2, the single line comment can be set in Settings and it will be applied with the comment/uncomment commands. The automatic table lookup provided by GtkSourceView2 simply overrides this setting for the current file based on the language)

An active window title displays file/save status along with the current filename. A status bar tracks the `line x/total col: y | INS/OVR | EOL | CharSet` state as well as displaying various operational messages. Print capabilities used the native print dialog making print/print to .pdf, etc. available. Page Setup provides access to the native printer page setup dialog. Current document content statistics are available though the Tools menu via the 'Word/Char Statistics' menuitem to display the number of whitespace, non-whitespace and other character counts, along with the word and line counts for the current contents of the editor. (this is more useful for general text documents rather than for coding).
An active window title displays file/save status along with the current filename. A status bar tracks the `line x/total col: y | INS/OVR | EOL | CharSet | Language` state as well as displaying various operational messages. Print capabilities used the native print dialog making print/print to .pdf, etc. available. Page Setup provides access to the native printer page setup dialog. Current document content statistics are available though the Tools menu via the 'Word/Char Statistics' menuitem to display the number of whitespace, non-whitespace and other character counts, along with the word and line counts for the current contents of the editor. (this is more useful for general text documents rather than for coding).

GIO File Monitoring added to monitor for source modification by a foreign process. File modify, move and delete are currently monitored. Attribute changes are ignored. If a file modification occurs not commanded by the user (e.g. by issuing a file-save or save-as), the user is prompted to either save the current document overwriting any changes or to reload and incorporate the foreign modifications to allow source additions/modifications from the command-line.

Expand Down
6 changes: 1 addition & 5 deletions TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ save

settings

* Single-line comment-string lookup for non-GtkSourceView build using file extension and file content tests for, e.g. #!/bin/foo, #include <foo.h>.

* add multi-line comment/uncomment (e.g /* ... */) for C for non-GtkSourceView build.

* add save of cursor-position, line/col data per file to reopen to last edited position, e,g,
* complete

MainWindow0:ViewSpaceContainer-0:-ViewSpace 0 file:///home/david/dev/git/gtkwrite/gtk_filebuf.c]
CursorColumn=37
Expand Down
5 changes: 3 additions & 2 deletions gtk_settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ GtkWidget *create_settings_dlg (kwinst *app)
GtkObject *adjrec; /* adjustment - recent spinbutton */

gint wnwidth = 480; /* initial dialog width and height */
gint wnheight = 470;
gint wnheight = 520;
gint pgwidth = 400; /* initial notebook page width and height */
gint pgheight = 400; /* (enforced by vboxnb width/height) */
gint pgheight = 445; /* (enforced by vboxnb width/height) */
/* MS Windows required additional space. */

/* create toplevel window */
if (!(app->settingswin = gtk_window_new (GTK_WINDOW_TOPLEVEL))) {
Expand Down

0 comments on commit f9544cb

Please sign in to comment.