Commit Graph

432 Commits

Author SHA1 Message Date
Marcel Hollerbach 0154ee168a edi: follow namespace change from Eo_Event to Efl_Event 2016-09-04 19:48:08 +02:00
Andy Williams 7f6fdac376 Add Create Project menu item
Also provide command line argument to load the create
screen on launch.
2016-08-26 15:13:54 +01:00
Andy Williams 1053eb1a63 Update test suite to remove old elm_code references 2016-08-23 23:34:03 +01:00
Andy Williams 4d92303f3a Update to the EFL 1.18 release 2016-08-18 15:05:09 +01:00
Andy Williams 3bf5df98b7 Add single file mode to help 2016-07-03 23:08:49 +01:00
Andy Williams 214792b73e ui: allow loading of a single file
Simple mode just now, see how it works out
2016-07-03 21:06:22 +01:00
Andy Williams 0e9b8a64c6 create: Fix crash creating new projects 2016-07-03 20:46:29 +01:00
YeongJong Lee 2f41b6ca28 Adjust the code according to the eo event stop changes.
Summary: Changed the way Eo event callbacks are stopped.

Test Plan: 1. make

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D4114
2016-07-01 10:18:28 +01:00
Andy Williams 7fd984b77a Fix compile errors with latest elementary from efl 2016-06-10 10:04:40 +01:00
Andy Williams 2262d7bf1c elm_code: Removed and migrated to using the elementary merged version 2016-06-10 10:03:40 +01:00
YeongJong Lee 9f112d07ae ui:fix title bar attribute of settings, about window
Summary:
ui:fx title bar attribute of settings, about window.
when using not enlightenment but other window manger, settings,about window can't be closed with one click.
they need close button.

Test Plan:
1. start edi.
2. select project.
3-1. click settings icon.
3-2. click About icon.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D3979
2016-05-25 23:06:02 +01:00
Andy Williams 4d0b4468c4 ui: Update close icon to document-close 2016-05-25 23:02:39 +01:00
Andy Williams 1e66902a9c ui: Fix icon naming to standard
Also tidy toolbar strings a little
2016-05-21 10:12:58 +01:00
Andy Williams def75fb0e8 elm_code: Fix build for updated eolian_gen output 2016-05-19 22:17:52 +01:00
Andy Williams dcd56607a9 editor: re-enable undo
Oops, we blocked elm_code from doing it's job
2016-05-17 23:24:14 +01:00
Andy Williams 4da81eac5e [test] use correct parsing of test errors 2016-05-16 11:01:40 +01:00
Andy Williams ce706b6623 [test] Fix parsing for tests that crash.
Report a test failure when we crash rather than defaulting to pass
2016-05-16 10:12:58 +01:00
Andy Williams 893098f3e4 fix doc 2016-05-16 09:11:11 +01:00
Andy Williams acc6c4054a [files] Filter file list to ignore hidden files
Ignore built files
2016-05-16 09:11:11 +01:00
Andy Williams 357acdca7b [build] Abstract build logic to provider lookup
Allow future extensibility for different build types.
Display detected type in project window title.
2016-05-16 09:11:11 +01:00
Jean-Philippe ANDRE 4a759dfaf6 welcome: show after resize
The other way around does not guarantee the proper size.
2016-05-16 00:14:54 +09:00
Andy Williams 6f625964d3 [files] Filter file names using regexp
Allow more advanced filters like 'a[b|c]' or '\.h'
2016-05-15 14:12:14 +01:00
Andy Williams 10d6a9cd2e welcome: Fix icon sizing to not be bigger than we want 2016-04-28 21:38:34 +01:00
Andy Williams 70742e1c73 ui: use standard icon names
remove deprecated lookup order calls as icon theme is set by user
2016-04-28 15:51:12 +01:00
Hermet Park 6fc4e26c44 fix build break.
eo event interface has been changed.
just updated it.
2016-04-14 10:48:33 +09:00
Carsten Holtkamp 803184016a Opens welcome screen now under mouse, to follow enlightenments policy. Evas is picky about function call order. 2016-04-10 16:33:01 +01:00
Andy Williams 1971583e5e [help] Stub out a right-click-help UI
Not looking anything up yet but we're getting started
2016-04-07 17:44:12 +01:00
Andy Williams bca7ef40b8 tidy old stubs 2016-04-07 17:43:05 +01:00
Andy Williams 3713ee543a [settings] list all monospaced fonts
Choose them based on behaviour rather than name.
2016-04-07 16:39:59 +01:00
Andy Williams b3a9bd0f2c Update to latest eo syntax
Thanks for the script Tom :)
2016-03-10 00:06:50 +00:00
Yomi db913666bd Edit welcome message.
Summary: Edit welcome message

Test Plan: none.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D3727
2016-02-24 10:27:03 +00:00
Andy Williams 1867697292 [ui] re-add the undo button, it's back
Now that most keyboard actions can be undone it seemed
sensible to get the ui elements back again.
2016-02-21 23:46:44 +00:00
Andy Williams acd7b54473 [editor] begin re-adding the undo feature.
This is provided completely by elm_code so can be reused in other editors.
For now this is just text/newline insertion...
Still have to add undo for deletion and selection
2016-02-21 18:11:33 +00:00
Andy Williams 687af9c86f optimise edge case checking 2016-02-16 00:16:34 +00:00
Andy Williams a744f48420 [tabs] add a close all feature
For the times when you just have too many tabs open!
2016-02-16 00:15:52 +00:00
Andy Williams 66b6e889fd remove trailing whitespace 2016-02-11 14:20:01 +00:00
Andy Williams 681aad0ef8 [ui] Add feature to filter file list
Now you can easily find files in a big project
2016-02-11 14:20:01 +00:00
Tom Hacohen 492e3e7609 Fix out of source builds. 2016-02-09 09:11:26 +00:00
Andy Williams 557fb79396 [editor] Support space insertion instead of tabs
Elm_Code support and option in Edi to use spaces when the
Tab key is pressed - make this default too.
2016-02-09 00:32:16 +00:00
Andy Williams 47ebe38fc4 [ui] one more toolbar fix to match scale changes 2016-02-01 14:16:59 +00:00
Andy Williams 16639ff526 Revert "[ui] set icon size based on scale"
Fixing the icon scaling in elementary itself instead.

This reverts commit a0b90e27c6.
2016-01-30 13:50:41 +00:00
Andy Williams a0b90e27c6 [ui] set icon size based on scale 2016-01-29 14:44:26 +00:00
Andy Williams 09f572576e [ui] Correctly focus popup inputs
Work around an issue where a top level input cannot be
focussed using the elm_focus API.
2016-01-21 20:06:49 +00:00
Andy Williams a9d9d32797 [newfile] Check for filename and permissions
If filename is missing let user try again.
If directory cannot be written to then warn and give up.
2016-01-21 20:05:43 +00:00
Andy Williams 18f1a87b09 [builder] use builtin sh support in Ecore_Exe
Thanks for the hint Vincent :)
2016-01-17 17:58:53 +00:00
Andy Williams f66d5ebaa8 [builder] Lauch /bin/sh to avoid local shell issues.
We're assuming a unix / linux machine of course
 - this needs to be addressed for proper windows support
2016-01-16 22:50:24 +00:00
Andy Williams d7cea60593 [ui] Tidy open file toolbar
Add icons for the filetypes on each tab.
Expand in menu mode - better than scrolling..?
2016-01-16 18:22:30 +00:00
Andy Williams 16ba73c6f7 [ui] Smooth file panel scrolling
Cache responses to mime lookups so we get can scroll
much more smoothly after initial load

Author: unixtaker

Signed-off-by: Andy Williams <andy@andywilliams.me>
2015-12-11 13:37:03 +00:00
Andy Williams e925d9fb42 [build] Set up test environment in a way that supports fish and others
Use env rather than implicit variable setting in command line
2015-12-11 13:08:52 +00:00
Andy Williams b0771bdfc6 [log] filter out lots of efl debug
Blanket debug flags can be helpful but not when
you have a lot of efl to dig through to get there!
2015-10-10 12:45:56 -07:00
Andy Williams 7d5b7ba4b8 [logs] Ignore some common log lines to avoid clutter in panel.
This also removes some infinite loops as the redrawing of the log panel
could trigger these lines too
2015-10-10 12:23:22 -07:00
Andy Williams af6297992e [config] don't re-open files not really opened
When we chose type tapping cancel should not cause the file to be reopened later
2015-09-16 10:21:21 +01:00
ilkosta 018f3c74a1 sh for git scripts 2015-08-31 09:44:35 +02:00
ilkosta b4bbc1ce6a removed a $ typo from sed command 2015-08-31 09:16:18 +02:00
Andy Williams 35154d8d54 [create] use /bin/sh to execute the sed script
Attempting to fix github issue #3
2015-08-29 15:45:41 +01:00
Andy Williams 2f0347b108 [editor] Make whitespace trimming an option
Add a global setting to turn off the behaviour
2015-08-29 14:46:18 +01:00
Andy Williams fdd2a69333 [settings] Fix typo causing compile error
Fixes github issue #4
2015-08-29 14:16:53 +01:00
Andy Williams 1b10edb079 typo-- 2015-08-28 00:13:38 +01:00
Andy Williams 155ec77ac8 [editor] fix stability of the highlighting thread
Grab locks at the correct times, seems to help a lot...
2015-08-28 00:12:59 +01:00
Andy Williams 93ee90a302 new file: create in selected directory
When the filepanel selected item is a directory place new
files in that location rather than project root.
2015-07-17 10:30:25 -07:00
Andy Williams 1c7e2b3873 editor: improve goto line dialog
Focus the input when we show and allow enter press to submit.
Also refactor it out of the edi_main mess.
2015-07-16 22:36:15 +01:00
Andy Williams 4da088b51c tabs: load in the correct order...
Remove some unneeded duplication at the same time
2015-06-09 22:31:33 +01:00
Andy Williams 7cc03ec58d remove tabs from indent 2015-06-07 23:12:31 +01:00
Andy Williams 1998483d06 docs: Fix manpage and skeleton manpage 2015-06-04 08:40:43 +01:00
Andy Williams 3f86407481 elm_code: consistently use 0 based text index
This means it's more familiar as regular string work when
using the elm_code_line APIs. It's also more distinct from
the elm_code_widget layout which is still 1 based columns.
To support unicode we must convert correctly.
Now FIXED!
2015-06-03 21:29:31 +01:00
Andy Williams e3ed8806c3 elm_code: add legacy API.
Refactor eo API in line with elm_obj_* elsewhere
2015-06-02 08:22:36 +01:00
Andy Williams 4d466dbc74 Fix many warnings.
Make the font face const char * and use eina_stringshare
2015-05-31 21:18:18 +01:00
Andy Williams 78252cefc1 run: Add args to settings for default run button 2015-05-31 19:46:18 +01:00
Andy Williams d4670583df builds: Add a run button and the launch config to support.
I expect we can support a list of these later so for now
support passing around the launch config.
2015-05-31 12:13:31 +01:00
Andy Williams 7bf0fc7c3c highlighting: Fix threading to avoid overlap crash
It's not threadsafe code within the editor so block
a thread if another is already running.
Also ditch pthread for Ecore_Thread :)
2015-05-30 22:56:41 +01:00
Andy Williams 93dd91d845 tests: make content provider test work again 2015-05-30 20:47:20 +01:00
Andy Williams 10dc1c77bd setting: Add a font picker
Monospace only so we get a deccent looking result.
Mostly from the terminology project - thanks guys
2015-05-30 10:32:37 +01:00
Andy Williams 9567122d09 diff: Respect configured font (size) 2015-05-30 10:31:46 +01:00
Andy Williams f4c48d4ca9 elm_code: support setting custom fonts
For EDI create the config that would allow this to be altered.
Actual setting widget to follow...
2015-05-30 10:31:46 +01:00
Andy Williams 64f33b0823 Update icons and about imagery 2015-05-26 23:59:16 +01:00
Andy Williams fe5411b5c3 settings: Split into project and global settings
This should clarify what the user is setting.
Need to make the "headers" non-clickable but not sure how
2015-05-24 13:12:37 +01:00
Andy Williams b4224ff36c settings: Fix alignment of display settings 2015-05-24 13:12:18 +01:00
Andy Williams cb33dbcfb0 better crash fix - mimic standard free() method 2015-05-21 13:58:51 +01:00
Andy Williams b4cd9cb4a1 Fix crash if closing with no project open 2015-05-20 23:26:29 +01:00
Andy Williams ff7d8550e5 menu: flesh out our application menu 2015-05-19 22:32:55 +01:00
Andy Williams f1d55e70e8 Create helper for opening URLs 2015-05-19 22:28:05 +01:00
Andy Williams 498049cba1 add a main menu to EDI 2015-05-19 00:01:56 +01:00
Andy Williams bd55404b42 Allow hiding of the toolbar 2015-05-18 23:17:24 +01:00
Andy Williams c216a32791 Use portable eina util methods for paths.
Should fall back correctly on Windows now
2015-05-18 19:25:02 +01:00
Andy Williams c65ac2e5c3 config: free up memory when removing projects 2015-05-18 17:56:21 +01:00
Andy Williams 1bcb2cbf95 editor: Remember open tabs and windows.
Store per-project to open what you were last working on in the project
2015-05-18 16:32:46 +01:00
Andy Williams 1845bd517e fix compile error 2015-05-18 15:46:39 +01:00
Andy Williams d380f0f6d3 editor: fix memory corruption when opening new win
Fixes issue when a file opened to a new window could not then
be focussed or re-loaded after the window is closed
2015-05-18 15:45:28 +01:00
Andy Williams 6e461200c6 headers: remove includes if they are not needed
Put them in the code that needs them unless they are part of the API
2015-05-16 10:05:54 +01:00
Andy Williams bf17d7c8af config: save project config in the project dir
globally storing info about projects loaded, file associations
and the general user preference.

GUI and usage settings stored in <project>/.edi folder
2015-05-16 09:59:08 +01:00
Andy Williams 0da1c9a5e3 Settings: add a background to the window 2015-05-16 09:59:08 +01:00
Andy Williams c632fa1608 Fix issue with symbol visibility 2015-05-15 23:01:57 +01:00
Andy Williams a0d6627f54 elm_code: add a TODO/FIXME standard parser
Corret some callback code and re-parse each time the file is saved.
Use this to clean up save/parse code in EDI too
2015-04-20 01:21:03 +01:00
Andy Williams 179b0e713f clang: Fix crash if error is not related to a file 2015-04-12 23:39:38 +01:00
Andy Williams 17d8b30e00 syntax: Only display errors for current file
Clang can report from various sources,
only add those that are from the current file
2015-04-12 23:06:28 +01:00
Andy Williams bc6ec2dd6f syntax: reset status and hints when we reset token
re-use elm_code methods when we do this in edi
2015-04-12 23:04:46 +01:00
Andy Williams d03675ba71 clang: fix paths used in syntax lookup
Pass in the edi build config to get efl params.
Also find the correct system include for clang dynamically
2015-04-12 22:25:41 +01:00
Andy Williams c0654b6c4e clang: remove debugging 2015-04-12 16:47:53 +01:00
Andy Williams 6fc3da889b Fix crash where clang encounters too many errors 2015-04-12 15:39:47 +01:00
Andy Williams efec7c1f37 editor: add tabstop configuration
Allow setting of the tabstop. App wide for now.
2015-03-29 20:40:24 +01:00
Andy Williams 2a4d4e17f0 elm_code: Cut, copy and paste working
Current limitations that paste is into a single line
2015-03-28 17:57:47 +00:00
Andy Williams d5e405b420 search: Update replace for elm_code selection code
That should be search and replace completely ported now
2015-03-28 16:05:36 +00:00
Andy Williams f1571f296e settings: Allow configuration of line width marker 2015-03-28 00:45:20 +00:00
Andy Williams 2a1320d1f1 clang: tidy clang disposal and remove notes 2015-03-28 00:18:20 +00:00
Andy Williams b632e3abc0 tidy includes 2015-03-28 00:17:31 +00:00
Andy Williams ace8350ac2 highlighting: clear errors that no longer apply
Also refresh more regularly now it's faster
2015-03-27 23:55:17 +00:00
Andy Williams 4f8ece09cf clang: save errors and display if clicked
Using a gutter click in elm_code to print to console for now
2015-03-27 23:54:28 +00:00
Andy Williams ba5a31b884 Merge branch 'master' into elm_code 2015-03-25 20:52:14 +00:00
Andy Williams 4db1c2b826 settings: Fix compile error due to wrong type name 2015-03-25 20:48:41 +00:00
Andy Williams ff0e5323b5 editor: Delay goto until we've loaded the ui 2015-03-23 22:36:29 +00:00
Andy Williams 4fc9748db3 elm_code: add text search functions.
Update the search and replace UI to work with the new elm_ode UI.
2015-03-22 22:36:04 +00:00
Andy Williams fb7dab9c90 editor: fix goto line
broke during elm_code migration, working again
2015-03-21 21:56:59 +00:00
Andy Williams 4583d2d800 testpanel: fix crash for short log lines
And correctly highlight test failures
2015-03-21 21:55:28 +00:00
Andy Williams 8eb3978c1e elm_code widget: fire user change events
This does not yet have a "change" attached so does not
support undo/redo yet
2015-03-21 20:04:12 +00:00
Andy Williams 4aa3defb30 editor: save using elm_code's new save method 2015-03-21 19:53:21 +00:00
Andy Williams c29c9c5133 editor: display the line endings for the file 2015-03-21 13:56:27 +00:00
Andy Williams ec427d2ba4 Merge branch 'master' into devs/ajwillia-ms/elm_code 2015-03-15 19:08:26 +01:00
Andy Williams 0509eb1841 settings: configure the display of whitespace
Refresh this when config changes
2015-03-14 13:10:38 +00:00
Andy Williams 04ec5efa24 welcome: Fix launch crash issue on some systems 2015-03-12 00:52:41 +01:00
Andy Williams f137cc5321 editor: fix issue with closed tabs 2015-03-15 13:27:15 +00:00
Andy Williams 8730b4dfb3 config: Update editor when font size changes 2015-03-08 22:28:21 +01:00
Andy Williams b97da3b70a Merge branch 'master' into devs/ajwillia-ms/elm_code 2015-03-08 22:27:38 +01:00
Andy Williams e62ddd5bc1 config: add settings screen
Add a new autosave flag, upgrade config so it's set.
Listen to a config_changed event to update UI where required.
2015-03-08 22:14:25 +01:00
Andy Williams fcac809e97 gui: break toolbar in 2 so we can right align.
Not perfect as there's a visible break, further attempts
will need a custom theme.
2015-03-08 22:04:00 +01:00
Andy Williams ff68af7076 elm_code line: unsigned int for length 2015-03-08 11:14:02 +01:00
Andy Williams b28773a7f6 Merge branch 'master' into devs/ajwillia-ms/elm_code 2015-02-27 15:13:06 +00:00
Andy Williams 0c2819bd4f editor: update to latest elm_code and show whitespace 2015-02-28 16:28:22 +00:00
Andy Williams 7ed4aa9695 Merge branch 'master' into elm_code
Conflicts:
	elm_code/src/lib/elm_code_diff_widget.c
2015-02-28 15:31:57 +00:00
Andy Williams e0477ff3cb elm_code: require an elm_code for each widget
In our finalizer we ensure that an elm_code is set.
No longer allow code_set to be called after construction.
2015-02-28 13:22:38 +00:00
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 079a65a98b merge changes from master 2015-02-26 13:56:50 +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 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 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 704e70a407 about: Show version in about window 2015-02-19 22:20:10 +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