Commit Graph

1078 Commits

Author SHA1 Message Date
Andy Williams 2db478cca6 create: Pick up username in Windows.
Look up USERNAME if no USER environment variable is found.
Patch from Vincent Torri
2015-02-28 15:53:39 +00:00
Andy Williams d6bb571c89 filesystem: Use standardised icon names 2015-02-27 14:49:57 +00:00
Andy Williams 40a6d3b3fd elm_code edit: Support insert of any single char.
broadens from alphanumeric to include punctionation
and various symbols.
2015-02-26 23:56:10 +00:00
Andy Williams a97cb87aca elm_code parse: Add standard parsers starting with diff.
Allow code instances to have provided parsers added easily.
These can be chained to have multiple passes.
2015-02-26 23:19:09 +00:00
Andy Williams 079a65a98b merge changes from master 2015-02-26 13:56:50 +00:00
Andy Williams b2a18b6db7 elm_code: Move parser callbacks to private.
Don't expose the internal callback mechanics, just the addition of parsers
2015-02-26 13:54:46 +00:00
Andy Williams 881860bc15 console: Fix possible crash if errors occur before make starts 2015-02-25 23:29:31 +00:00
Andy Williams c98ba7d1e8 syntax: Actually use the elm_code parser api.
Improve the API to allow passing of user data to the calls.
Yes, I forgot about this, it works well so remove the STYLE_SET callback
2015-02-24 00:32:40 +00:00
Andy Williams 94223c1788 elm_code: Add missing status icons from new states 2015-02-24 00:26:58 +00:00
Andy Williams 35f225292e create: Merge in welcome crash fixes from master 2015-02-23 21:58:39 +00:00
Andy Williams 71fa2d13c8 elm_code: display a line-width marker if requested 2015-02-23 21:52:49 +00:00
Andy Williams 724bf617cb Merge branch master
conflicts in elm_code_widget.c resolved
2015-02-22 23:38:54 +00:00
Andy Williams 0e49f40ff3 elm_code: Support text insertion for simple edits.
Hook into the widget for elm_code_test and edi editors.
Only alphanumeric and space, but it's a start.
2015-02-22 20:07:08 +00:00
Andy Williams c18fccb646 syntax: Add line highlighting for clang errors
This never worked on the old elm_entry code!
Highlight where clang knows a problem exists.
Not yet inserting a caret, but there's more to be done...
2015-02-21 18:54:52 +00:00
Andy Williams 7212dc24bb syntax: Remove unneeded timers and threads.
Now that it's all much faster and more reliable we don't need to resync etc
2015-02-21 18:48:33 +00:00
Andy Williams d5185e2107 Merge branch 'master' into elm_code 2015-02-21 18:28:07 +00:00
Andy Williams bbe671626e elm_code: Support multi-line tokens
Adding a new token to each line it covers.
Each token references the end line so newline behaviour can be set
2015-02-21 18:24:17 +00:00
Andy Williams dd9f96d2c0 syntax: Update clang to output elm_code tokens
Addition of a refresh line command to say we're done.
We no longer need an active window for highlighting
as it's so much faster!
2015-02-21 17:30:17 +00:00
Andy Williams 3510e7124b Back on to next release features 2015-02-21 14:26:43 +00:00
Andy Williams 9e987828ed elm_code: Ignore eolian generated files 2015-02-21 14:13:05 +00:00
Andy Williams fc2a57a11f let's re-release 0.0.1 2015-02-21 14:11:10 +00:00
Andy Williams f9242b82ab filesystem: don't refresh on every change
Just do the minimum for now - refresh when we add a file.
The constant monitoring needs a slicker refresh mechanism.
2015-02-21 14:10:25 +00:00
Andy Williams bf81658432 console: Fix where clicking an error does nothing
Fix up the directory parsing to link current directory
to the line an error was reported in.
2015-02-21 14:04:55 +00:00
Andy Williams 1fab95cef1 Merge branch 'master' into elm_code
Conflicts:
	elm_code/src/lib/elm_code_widget.c
	elm_code/src/lib/elm_code_widget.eo.c
	elm_code/src/lib/elm_code_widget.eo.h
2015-02-19 22:39:11 +00:00
Andy Williams cc541eda99 Update to 0.0.2 for builds now 2015-02-19 22:35:43 +00:00
Andy Williams 36ab399b59 eo: remove generated files from git 2015-02-19 22:35:01 +00:00
Andy Williams 704e70a407 about: Show version in about window 2015-02-19 22:20:10 +00:00
Andy Williams f187a32f55 Adding news about the 0.0.1 status 2015-02-19 22:16:16 +00:00
Andy Williams 97c8c0ac75 elm_code: Update FIXME to be realisic - the textgrid size_set does not append 2015-02-19 21:52:41 +00:00
Andy Williams eba8421411 filesystem: Update our listing if files are added or removed @fix T1857.
This needs to be improved so it does not collapse the listing etc.
The implementation needs to clean up after itself better too
2015-02-19 21:50:11 +00:00
Andy Williams 187d9e609a elm_code: get / set the cursor position
When the cursor is updated make sure we have scrolled
so it's visible. Also adjust focus next points too.
2015-02-19 21:16:18 +00:00
Andy Williams 30460899a6 elm_code: Actually use it as our main editor window!
Need to hook in the clang highlighting and undo stack to the elm_code_widget
2015-02-19 00:22:07 +00:00
Andy Williams 958340e321 Add a temporary fix for some scroll/append/refresh issue with layout 2015-02-17 23:56:20 +00:00
Andy Williams 632ed0aa11 create: Replace user lookup with a more efficient implementation 2015-02-15 21:20:35 +00:00
Andy Williams de04dec6c0 Fix a crash if andy env is not present 2015-02-15 21:03:07 +00:00
Andy Williams 88536c4ee1 elm_code: Fill the widget and gutter to the end
This helps with refreshing too so we blank removed lines
2015-02-22 22:13:33 +00:00
Andy Williams 133b41ff24 elm_code: don't run resize code more than needed
Our cells are now always the size of the widget so
we can avoid the safety checks...
2015-02-22 21:50:34 +00:00
Andy Williams 9751009a7e files: Use correct icon for mime/editor type
Use mime type or user selected default type for file icons.
Use the same icon lookups for our popup menus to be consistent too.
2015-02-22 14:17:51 +00:00
Andy Williams 8ab4e93c6e welcome: Fix issue where project browsing is cancelled.
Re-enable the action buttons when we get the file chooser callback
in case the user did not select a path to open.
Patch from Vincent Torri - thanks.
2015-02-15 20:41:58 +00:00
Andy Williams eaa683da03 An update to get closer to make check passing for windows.
Thanks (and credit) to Vincent Torri again
2015-02-15 20:35:41 +00:00
Andy Williams d79ee5a19a Fix some warnings when compiled without clang.
Also fix format of inner preprocessor ifs.
Patch from Vincent Torri.
2015-02-15 17:53:00 +00:00
Andy Williams aae8ea89bb editor: Let's reduce calls to saving files or resetting highlights.
Keep an eye on what has to be saved.
Only re-run clang parsing if we've actually saved recently
2015-02-14 23:55:05 +00:00
Andy Williams ae51ea05e8 Update many missed changes of note 2015-02-14 23:14:25 +00:00
Andy Williams ac35cc30d9 elm_code: Tidying our callbacks and line manipulation.
Now the line_done callback allows styling to be set during the load process.
2015-02-14 23:14:06 +00:00
Andy Williams f6f19be6cb elm_code: focus: block focus leaving text area when editable.
As well as setting when we should not have focus leave us a theme has been added.
This allows us to extend from elm_entry which is better suited to us.
2015-02-14 18:49:51 +00:00
Andy Williams 8032f0fcd6 editor: delay autosave to 5 secs but save on unfocus too 2015-02-11 22:39:25 +00:00
Andy Williams 83decd5183 Improving focus control a little 2015-02-11 22:01:37 +00:00
Andy Williams 6ac9fad7e3 Fixing some warnings on Windows.
Thanks, Vincent Torri
2015-02-11 21:25:09 +00:00
Andy Williams b67705fcd4 Use public types as far as possible 2015-02-11 19:13:48 +00:00
Andy Williams 511f57511d elm_code: Update demo to split various functions. Adding more pages as use cases emerge 2015-02-10 23:03:18 +00:00