TextStudio 0.0.847 Changelog
2010-07-04: Improved Format menu, keyboard handling, conflicted file detection, stability and more.
Conflicted File Handling
Now warns of conflicts when another application has altered an open file:
- Created a
CheckedForConflicts()function. - Displays a message box with these options:
- Yes:
- Save the file anyway.
- No:
- Skip this file but continue others.
- Cancel:
- Skip this file and any others.
- Message box also includes these times:
- Previous action you performed on that file in that window.
- The file’s
Last Modifiedtime. - The current time, since you are currently attempting an action which conflicts with the last modification.
LastActionis set when any file is:- Loaded by
OpenFile(). - Reloaded by
OpenFile(). - Saved by
SaveFilesByID(). - Saved by
SaveFileAs().
- Loaded by
- Added a
LastActionproperty to theChildStatusobject array so it can compare modification times. MenuFileReload()now re-usesOpenFile().- Tolerates 1 second of inaccuracy since I save files via a corporate network.
- Message box now displays filename only, instead of entire path, when prompting to resolve a conflict.
Refactor Keyboard Shortcuts
- Shortcuts published as a blog entry since they may change over time. (Occassionally updated documented in
keyboard.txt.) - Centralised keyboard handler:
- Working prototype in
modKeyboard.Project_KeyDown. - Dialogue windows each retain their form-level keyboard handler.
- Got to make it work right.
- Most shortcuts weren’t working in Find/Replace Panel.
- Saves duplication at runtime with each instance of
frmFile. - Saves duplication in source code in
modFindPanel.
- Working prototype in
- Focus behaviour:
- Into, out of and within panels for Find/Replace and Go To Line.
- Automatic selection of text within panels.
All Windows
- Close Files no longer crashes when you close all open files.
- Close Files no longer crashes when you close several files where each causes a Save changes to filename? message box.
- Added Reload Files button.
- Refactored code so each button
Indexis now an entry in aPrivate Enuminstead of a magic number.
View
- Customise... item renamed Customise Toolbar... and moved to View menu.
- Toolbar now displays View menu as its context menu.
- Deleted mnuToolbar context menu.
Format
- HTML Form:
- Form no longer has an empty duplicate
method=""attribute. - Form now has
method="post"instead ofmethod="get". - Dropdown now has
name=""attribute. - Option no longer has
value=""attribute because element content is submitted in its absence. - Checkbox no longer has
checked="checked". - Checkbox no longer has
value=""attribute. - Textbox no longer has
value=""attribute.
- Form no longer has an empty duplicate
- HTML List:
- Definition List now closes the start tag for
<dl>and<dd>when no text is selected.
- Definition List now closes the start tag for
- HTML Block:
- Address tags are now created on same line.