Changed content indicator in tab doesn't count if undo history is back
to the start
File highlighting now visually linked with the tabs of open docs
Selected file have blue BG, other open files 15% white BG
lastOpenedFiles now previousFiles in a few places
Removed comments/dislaimer at top, now use LICENSE file
No longer show or hide content area, it's shown from init load if logged
in
Changed location of packlock icon
IE now using e var for event and not event, fixes JS issue
On refresh and successful login, set visibility & src of content area
(This shows server info upon login)
Initialisation of DOM vars now in own function
(This allows Firefox loadstack to work fine & is more efficient too,
only ever called once)
'this' also prefixes the DOM vars initialised, so works in Firefox
Hex codes shortened if poss (ie, #888888 becomes #888 and #ff0000
becomes #f00)
Swapped text colour on tabs, selected now has black text, others white
text
Minor alts to suit different states of tabs
Also minor alts to select/deselect of files/folders in file manager to suit darker style
New function to show/hide help popup on demand
[NEW] or 'blank' files not allowed into lastOpenedFiles array
Only update settings file if we have something to save
Otherwise, clear server message and remove from server queue
openFilesMDTs array now stores modified datetimes for collab edits
Stop clearing value of editor instance to avoid change tab error
New code to work with openFilesMDTs array
Stop switching to another tab unless we're closing current
Loaded code no longer has & converted to & so code is not messed with
Nesting only displays if you don't have include, include_once (PHP), plus must have html or body tag (HTML)
Found count display now updates on switching tabs
findReplace updated to take 3rd param, detecting how it was triggered
Find is now case-sensitive by default
Code realigned in findReplace to work more specifically with 'this document'
Extra code also added to replace all
Display count now fixed to be accurate
Multiple results screen show shows when not finding within current document
Function to deal with updating and showing/hiding of results count display
New vars for stickyTab and plugin interval refs
New login container, adjusts to width of file manager
Upon login, slide login box up to reveal icons
New vars to allow stickyTab on CTRL+S+Enter
Improvement so you don't end up with a locked nav thats collapsed
Fix so we only switchtab if we have associated CM instance
Also updates found results display on switching tab
SwitchMode only does this if there is a filename (tab name) available
Plugin timers now created under vars so they can be cleared
If there is a login attempt, slide login box up to reveal icons
New function to show settings screen on demand
New function to update theme, tabsIndent, lockedNav, visibleTabs & file manager
(This is so changed settings can be applied straight away)
File manager refresh only happens if it needs to, for efficiency
Updates to allow usage of theme as chosen by user
Menu that displays when user click is now more dynamic
(Shows options based on number of files selected)
Function to reload File Manager on demand plus show loading screen
Ruby now supported as a language in .rb files or within % blocks
List of last opened files updates on opening, closing and renaming tabs
Comment toggle function now handles Ruby commenting via # hashes
(Decided not to go for =begin and =end as this requires extra lines)
New function to handle opening of previously opened files
A few global vars that have been added recently now closed
You can now hover mouse over nest positions to have them selected
Can also click to set cursor position to within that nest
Removed old code folding function in favour of lib that comes with CodeMirror
Errors catched so clicking on a blank area of the file manager doesn't attempt anything
This stops parent from loading, hides the loading mask and clears server queue tasks other than one that is processing
Also displays message to inform you it's cancelled tasks
Function added to mediate file manager icon clicks to relevant functions
Icon visibility changes depending on actions you are taking and what is available to you right now
Simple function to handle icon visibility added
Code folding function added to allow collapsing and expanding of code blocks
(Its a bit slow & basic right now and only works for HTML, but improvements to come)
Removed ICEcoder.tD var as it was hardly used and theress no char saving really
Switched a few areas to ternary if statements
Code improvements, structure tidy up & improved commenting
Removed unnecessary code, stopped a few global vars
Also considering ?php as well as ?
Breaking tagEnd var on new lines to avoid nesting false errors
CTRL+I searches for highlighted word on Google in a context aware way
(ie, highlight 'echo' in a PHP block and it will search for 'PHP echo',
highlighting 'echo' in content area will search for just 'echo')
New function to select/deselect file/folder by changing CSS class
Only show New File and New Folder context menu options if we right clicked a folder
Simplified getcMInstance function
Improved commenting function to allow partial line commenting
Fixed issue with clicking plugin icons and server queue deletion on return
Fixed issue with CSS color blocks so they only show if they have a BG color
New server queue system added which deals with and processes server calls in turn
(This should stop any potential connectity conncurrency issues)
Saving now takes a temp snapshot of the content to be saved when due in the server queue
Having a server queue is more professional and means you can queue up actions while other actions are happening
refresh() is now called in a couple of places so scroll position is applied
(This avoids the bug when switching between tabs)
Server messages now accept a message as part of the variable
(This means you now show messages via the plugins setInterval system)
CSS color preview boxes appear when text cursor moves within the color value
CSS color preview system also ties in with Code Assist and is part of the toggle
You also now refocus when clicking Code Assist
File Manager lock now moves as the width changes (via setLayout)
serverMessages block now displays message when creating, saving, deleting, loading and renaming
Function to handle display of server messages incl fade in/out
New vars added for codeAssist, mouseDown and draggingFilesW
Upload references removed
Standalong & chars only replaced if Code Assist is on
New function to resize the file manager width on click-drag
scrollTop removed from function to determine mouse x & y pos
However, new dragCursorTest function triggered from the function
Function added to toggle Code Assist var on/off
File Manager now 250px wide by default
Also locked by default
setLayout function now allows partial set mode to set structure while waiting for FM to load
contentCleanUp now replaces via regex to handle multiple replacement of & and textarea
New Folder prompt now relative to location
Huge updateFileManager function to allow adding, editing & removing of files to reflect immediately in FM
shiftKeyDown now detected
Loading mask hidden on load
Setting ctrlKeyDown to false on all functions to avoid stickiness
Same for shiftKeyDown
Save As functionality added
Window no longer opens on CTRL+Enter if it's a new file
Removed code realting to idea of slow clicking to begin rename process
New File function added
New Folder function added
Altered rename function to work with single file
Altered delete function to display better path in prompt
File Manager Menu positioning & display function
Mouse X & Y position function added to enable positioning
Various functions updates to work with dynamically generated CM instances
New variables added to track the CM instance refs & next avail number
CTRL+G now focuses on go to line box
A few lines of now useless code removed
contentCleanUp function repurposed
(No longer removes tabs & spaces & sets tabbing, new purpose is some HTML encoding of chars such as & to &)
(Also won't clean up loaded JS or CSS files anymore)
CTRL+Enter will now open webpage in new tab
ESC will now toggle comments for that line in a context aware way
Navigation expands contracts using JS instead of CSS (fixes issue #2)
New rename tab function added
Content type also determined by filename ext being .js or .css
Multiple new tabs can be opened now, instead of just 1
ShortURL established for renameFile function, fixes problem
lineCommentToggle function added
Global variables removed from JS file
Plugins system evolved, now including setInterval
Seperate CodeMirror instances per tab
backupOpenFiles plugin created
Minor fixes & improvements