Commit Graph

334 Commits

Author SHA1 Message Date
Basile Burg a5992c7a8e add editor commands PreviousChangedArea & NextChangedArea 2016-06-26 21:35:09 +02:00
Basile Burg d2bbe29e88 use RCDATA resources instead of old hex strings system 2016-06-19 07:13:32 +02:00
Basile Burg e58f7f9974 apply highlighter preset to the generic highlighter too 2016-06-18 12:22:11 +02:00
Basile Burg 3818075c28 find the imports from token list, related to #77 2016-06-18 06:07:26 +02:00
Basile Burg b64d891023 fix #60, Completion menu background and font color should follow UI theme 2016-06-17 19:31:28 +02:00
Basile Burg f9fede3423 fix, editor option edAautoIndent could cause mixed tab/spaces
when not using the phobos style, i.e tabs
2016-06-16 05:19:43 +02:00
Basile Burg 79b7b851ee fix #62 - lexicon-based brace auto closing is still a bit dumb
- not trigered in comments anymore
- not trigered if the pair count is 0 (e.g between two functions)

still cases exist but they would need a more complex analysis
2016-06-15 12:35:56 +02:00
Basile Burg c75de19110 fix #46, The generic highlighter is not selected when saving a non D file 2016-06-15 08:36:21 +02:00
Basile Burg 361502ff6a nextpage, repeated shortcut, not an issue 2016-06-15 07:13:41 +02:00
Basile Burg 573b14854b add shortcuts for the pagecontrol, close #61 2016-06-14 17:29:32 +02:00
Basile Burg e15c44577c add an option to deactivate IDE-grade features in with non D files, close #47 2016-06-14 14:46:01 +02:00
Basile Burg b12b6829aa moved free functions used by the custom commands to the editor class 2016-06-14 13:03:42 +02:00
Basile Burg 74e6984f68 add editor command to show phobos html help, close #52 2016-06-14 12:18:52 +02:00
Basile Burg 393f8c97b4 add option to auto detect the indentation mode (tabs|spaces), close #45 2016-06-14 10:50:15 +02:00
Basile Burg f1f2ad6b7e add editor command to comment the current identifier 2016-05-29 20:22:06 +02:00
Basile Burg 935f299362 ident renaming, display current ident value in input query 2016-05-25 03:33:28 +02:00
Basile Burg 830f81b627 fix #44, "Invert version all/none" does not work when tabs are not converted to spaces 2016-05-08 12:30:06 +02:00
Basile Burg 361e5728b8 identifier renaming, reproduce DCD behavior at word edges 2016-05-04 23:52:06 +02:00
Basile Burg 48a8ea5bb9 fix, brace auto-clsoing, a case where it was not triggered
new line after { followed by blanks
2016-04-27 22:51:18 +02:00
Basile Burg 989effb422 test local identifier renaming (DCD#324) 2016-04-26 07:38:04 +02:00
Basile Burg fd0b9ae226 editor, add shortcut for end word left/right 2016-04-23 17:45:38 +02:00
Basile Burg 5d3d8fe0f0 lexer, option to exclude comments + more reliable version all/none inverter 2016-04-16 22:10:52 +02:00
Basile Burg e3c655eca3 fix, comment block, wrong indentation when the block included a empty lines 2016-04-16 21:16:21 +02:00
Basile Burg a249081860 update libdparse 2016-04-16 20:43:45 +02:00
Basile Burg 6c3936f41f brace auto-closing, better indentation detection 2016-04-16 18:30:08 +02:00
Basile Burg 4cd0f9ed3a restore caret x when call tips are obtained using paren lookup 2016-04-16 17:47:48 +02:00
Basile Burg db17fb68a8 editor, call tips, decrease level on open paren deletion 2016-04-16 17:36:22 +02:00
Basile Burg 8261d07ca4 fix, wrong pos set after '(' and if eoTabToSpaces is not in the options. 2016-04-16 17:15:32 +02:00
Basile Burg b17c58d924 rewrite auto-closing, get indentation from the previous non blank line 2016-04-16 14:23:52 +02:00
Basile Burg 2973df3589 removed a dead property 2016-04-13 11:28:52 +02:00
Basile Burg 8d71f9d4db editor, brace auto-closing, new line, lexically, not restricted to new line after open brace 2016-04-13 10:56:49 +02:00
Basile Burg dfc479617c replace okCancel dialogs by YesNo dialogs 2016-04-11 07:10:32 +02:00
Basile Burg 87bffb06fc disable the "reload new version" message on main form close 2016-04-11 06:58:12 +02:00
Basile Burg 10796ab262 try to delete temp file name on save with valid name 2016-04-03 04:21:45 +02:00
Basile Burg 7775180f09 fix, brace auto closing broken module includes token strings 2016-03-31 09:52:53 +02:00
Basile Burg e36c0e8c76 prevent multi line markup 2016-03-30 17:47:20 +02:00
Basile Burg 1e73d618b5 editor, comment selection, align comments
+ fix brace auto-closing bug (on new line + tab2sapces not activated)
2016-03-25 22:47:49 +01:00
Basile Burg abfb1728d3 fix #29 2016-03-25 05:59:16 +01:00
Basile Burg 8d6b6f8b99 editor, auto close on new line, change so that each mode has the 3 same sub modes 2016-03-13 22:09:07 +01:00
Basile Burg 44e28a94a8 editor, add more brace auto-closing modes 2016-03-13 18:40:15 +01:00
Basile Burg 0682122b3f removed temp code for #25 and added workaround in the default static macros 2016-03-04 06:14:46 +01:00
Basile Burg 207f9276d6 implement #25 but not enabled 2016-03-02 12:33:52 +01:00
Basile Burg 4272869093 fix #17, ident after curly bracket auto-closing depending on options 2016-02-19 04:56:16 +01:00
Basile Burg 1ff8b9e878 fix, windows, empty line in call tips 2016-02-08 16:30:28 +01:00
Basile Burg d04fd37b2e fix, mess between options and custom commands 2016-02-03 21:33:17 +01:00
Basile Burg 26817c0fd9 deactivate prolematic options 2016-02-03 21:04:56 +01:00
Basile Burg 9bce6dad73 fix, mess between options and custom commands 2016-02-03 20:55:56 +01:00
Basile Burg 467d7abeb1 fix, auto brace closing indent error when option eoAutoIdent was set 2016-02-03 15:51:00 +01:00
Basile Burg 2fed1def96 added shortcut to invert version(all) version(none) is selection or whole doc 2016-02-02 17:08:24 +01:00
Basile Burg 7b423b5b34 added additional brace closing option, lexically 2016-02-02 07:55:15 +01:00
Basile Burg d265769009 added shortcut to un/comment current line or selection 2016-02-01 07:14:45 +01:00
Basile Burg 5b39add5b6 nothing 2016-02-01 06:22:42 +01:00
Basile Burg 767e315164 refact, omit def member 2016-01-31 14:39:50 +01:00
Basile Burg e0e9cbac8f more refact using helpers 2016-01-31 12:13:48 +01:00
Basile Burg 7d1bfc6214 added shortcut to invoke curly brace closing + editor option to auto close curly braces 2016-01-31 06:21:48 +01:00
Basile Burg 803c6a6c15 editor, allowed R/O files to be saved with a new name 2016-01-30 08:46:06 +01:00
Basile Burg 2094449a7d editor, indicates if readonly 2016-01-30 07:58:41 +01:00
Basile Burg c407a40259 refact with type helpers 2016-01-27 04:43:54 +01:00
Basile Burg 619c169024 editor, allow temporarily column selection even if option eoScrollPastEol not enabled 2016-01-24 03:22:11 +01:00
Basile Burg e3656f0d54 added HL for editor project file when proj is DUB json
fix, project file not in sync with current proj when auto reloaded in an editor
2016-01-24 00:37:25 +01:00
Basile Burg 123e7c50dd added D&D from mini-explorer and from proj inspectors 2016-01-21 20:27:54 +01:00
Basile Burg e2ac5ddf31 editor, fix identifier markup, all trailing blank chars marked 2016-01-20 10:32:35 +01:00
Basile Burg 491042dd85 stack call tips 2016-01-20 00:42:07 +01:00
Basile Burg 2bbd854fc8 more style modernisation 2016-01-19 21:52:15 +01:00
Basile Burg 0303d0f75f style modernisation using helpers isEmpty & isNotEmpty 2016-01-11 01:09:21 +01:00
Basile Burg 3fa80be500 style modernisation using helpers isNil & isNotNil 2016-01-11 00:36:10 +01:00
Basile Burg e3831ac404 observers, use generic type to validate 2015-12-26 12:08:25 +01:00
Basile Burg 660d504ba1 fix, ddoc win from prev editor still visible since new page-control added 2015-12-26 04:49:40 +01:00
Basile Burg 5fc8b76512 switch to FPC3 + Laz 1.6 2015-12-22 10:24:18 +01:00
Basile Burg 55d86862e3 added customizable shortcut to show ddoc or call tips 2015-12-20 14:40:30 +01:00
Basile Burg 9f56994620 editor, status bar, doc fname on last panel 2015-12-17 03:22:42 +01:00
Basile Burg 6657eb52ff editor, display macro recorded state in status bar 2015-12-17 02:56:51 +01:00
Basile Burg 7e09355a22 editor, does not replace clipboard to reload newer doc version 2015-12-16 08:30:57 +01:00
Basile Burg f40804ed85 editor, a document can be set always visible in a split view to the right 2015-12-16 03:20:37 +01:00
Basile Burg b0ea3e918c fix, identifier match, markup was no reset when no selection or no identifier 2015-12-15 22:45:27 +01:00
Basile Burg 873adf97f1 fix, completion menu pos 2015-12-15 02:31:52 +01:00
Basile Burg bbdef1778f editor options, identifier match can be tweaked, whole word / case sens 2015-12-15 01:55:09 +01:00
Basile Burg d3f7196af6 fix, completion menu, auto scroll only worked after dot completion
+ ident match fine tweaks: only if more than 2 chars, or always if selection available
2015-12-15 01:19:34 +01:00
Basile Burg f92cb3695e fine tweaked ident match color 2015-12-13 22:08:19 +01:00
Basile Burg f5cfb89d5e disabled gdc in CE proj compiler selection 2015-12-12 20:53:14 +01:00
Basile Burg ce9779d416 editor options, added currentLine attributes 2015-12-12 11:17:46 +01:00
Basile Burg bacac42fb2 editor options, better names
note: breaks reloading of current option file
2015-12-12 11:03:11 +01:00
Basile Burg 87f8385f50 editor, use TSynEdit markup to highligh current identifier matches 2015-12-11 08:39:02 +01:00
Basile Burg e2765665eb editor options, dont reset font size to default
but still stores what's size should be default (CTRL+.)
2015-12-11 04:27:18 +01:00
Basile Burg 09ab1df2a8 fine vis tweakings for win 32 2015-12-11 02:06:03 +01:00
Basile Burg 7f87096d0a nothing 2015-12-10 06:52:32 +01:00
Basile Burg ede1b8eafd editor shortcuts, removed bookmarks (not used) added goto prev/next location
prev next still work with mouse X1/X2 or KB next/prev mmkeys but additionals
shortcut can be defined
2015-12-10 06:41:02 +01:00
Basile Burg a022fcedec editor options, store completion menu lines in windows rather than height 2015-12-10 06:24:01 +01:00
Basile Burg 13dbc5edae reset a gutter setting, on some OS the line sep before folds was not visible anymore 2015-12-10 01:50:51 +01:00
Basile Burg 2131e51016 JumToDefinition and completion menu shortcuts are customizables
using the option editor widget
2015-12-06 06:52:10 +01:00
Basile Burg 9cfad0014e added new editor shortcut to activate synchro edit
+ options, handling of new shortcuts from a version to another
2015-12-06 05:40:32 +01:00
Basile Burg e447a2be64 test markup fold
not supported by Laz 1.4.2
2015-12-04 16:42:05 +01:00
Basile Burg 0f381fb8c3 nothing 2015-12-04 02:39:07 +01:00
Basile Burg 144fd79788 fix, editor cache was not properly reloaded when a document is reopnened
automatically at startup
2015-11-29 17:58:24 +01:00
Basile Burg 7e1118cc24 added completion menu size as persistent option 2015-11-22 22:19:27 +01:00
Basile Burg 9c2dd1f3e8 editor, finely tweaked the gutter color, better compat with sys dark themes 2015-10-17 13:12:47 +02:00
Basile Burg 1ef8dfc4f3 nothing 2015-10-17 00:20:12 +02:00
Basile Burg f81af3aa03 debugging, added enum to identify bp modifications 2015-10-16 17:23:31 +02:00
Basile Burg 9528b70fda editor, store brealpoints in cache file 2015-10-16 16:02:46 +02:00
Basile Burg 20c5164e4a editor options, renamed option hintDelay to ddocDelay 2015-10-16 15:48:02 +02:00
Basile Burg f1b56c7480 completion, dont show a btn in task bar 2015-10-16 15:36:17 +02:00
Basile Burg d61cef1997 memo, sources regions 2015-10-15 05:48:54 +02:00
Basile Burg 1b7d0b93e7 memo, public method to show hide ddoc and call tips 2015-10-15 05:34:37 +02:00
Basile Burg 1bf0b42314 fix, possible rng error if completion proposal count reached max value, + disable completion full length hint (until the font is properly scaled) 2015-10-15 05:15:40 +02:00
Basile Burg bc7169d1d8 #42, added event allowing to add a brkp during debugging 2015-10-02 05:37:01 +02:00
Basile Burg bfd1a9c6a8 editor, add/rem breakpoints in the gutter 2015-10-01 14:43:59 +02:00
Basile Burg eeab445c67 renamed ambiguous identifier 2015-09-19 09:13:17 +02:00
Basile Burg c95c8ff54b optim, avoid a lot of heap alloc when assigning btn's glyphs 2015-09-17 18:22:13 +02:00
Basile Burg 5743f87761 removed LCL deps in ce_common & ce_nativeproject, prerequisite for #30 2015-09-04 12:11:18 +02:00
Basile Burg 031fa42f31 fix, ditto were not always well removed from ddoc 2015-08-25 17:57:50 +02:00
Basile Burg 0bbbebd061 refact, dExtList replaces with several function that test the exts
* hasDlangSyntax
* isDlangCompilable
* isEditable
2015-08-24 07:15:31 +02:00
Basile Burg 6842050c6f temp workaround for #20 2015-07-27 02:54:39 +02:00
Basile Burg 5e06daf09e fix, dd files highlighter, used D HL but this not d code.
+ avoid content to be lexed to retrieve module name
2015-06-20 02:53:38 +02:00
Basile Burg 38a57fec33 fix, highlighter sharing, reset range when a doc get focused
some ranges were randomly broken
2015-06-18 09:50:08 +02:00
Basile Burg 45317a2565 range issue doc switch 2015-06-17 23:58:01 +02:00
Basile Burg a1672f7187 fix, editor modified file, invalid content could be paste
if new version of the file was an empty file
2015-06-03 14:40:47 +02:00
Basile Burg 915f168a0c editor option, completion menu case sensitive 2015-05-24 17:31:45 +02:00
Basile Burg 42b48ba231 auto dot completion, menu position 2015-05-22 15:42:31 +02:00
Basile Burg 4cc3df3e6f added automatic dot completion menu + moved ctrl+space completion in memo 2015-05-22 09:22:30 +02:00
Basile Burg e83b5f6a55 fixed in lazarus 1.4.2 2015-05-22 06:24:10 +02:00
Basile Burg 006d375ec3 options, added hintDelay (ddoc) to editor category 2015-05-21 20:41:16 +02:00
Basile Burg 476ee10dc2 editor shortcuts, fix and change
- fix, default TSynEdit settings have conflicts in primary secondary shortcuts, removed secondary sh.
- change: windows style shortcuts (Ctrl+C,V,X,Z...) instead of Ctrl +Ins...
2015-05-14 05:30:25 +02:00
Basile Burg f0cee13fc7 added prop to get if file is temp 2015-05-10 03:22:37 +02:00
Basile Burg 832643fdc6 editor, ESC key to close the call tips window 2015-05-09 23:50:40 +02:00
Basile Burg d0f2b1c266 source position buffer controlled by virtual key browser back/next,. 2015-05-07 10:33:16 +02:00
Basile Burg 4b2cbfc803 editor cache, only keep the caches saved in the last 3 months. 2015-05-03 20:03:06 +02:00
Basile Burg 199c9f51f3 note about bug related to France summer time/winter time 2015-05-03 20:02:15 +02:00
Basile Burg ac4ce76c4b force rescan on focus 2015-04-25 04:43:24 +02:00
Basile Burg 169c42c2e9 fix, synchronized edition broken
after a while, due to a shared component.
2015-04-20 00:59:02 +02:00
Basile Burg da619d8479 spotted synedit bug, cursor/zoom/scroll 2015-04-19 05:07:03 +02:00
Basile Burg bd461cf54d call tips displayed at the bottom
avoids to hide FunctionDeclaration parameters.
2015-04-19 04:30:12 +02:00
Basile Burg 452aa078d8 calltip method isolated 2015-04-19 04:20:21 +02:00
Basile Burg d758ed0e76 fix, ddoc hint window stuck on top
could happen when switching sheets.
2015-04-18 18:32:41 +02:00
Basile Burg f8f5825989 style 2015-03-22 01:22:48 +01:00
Basile Burg c955a02715 fix, calltip win, VK(53) open would only work on French keyboard
+  hide call tip win on closed round bracket
2015-03-20 15:58:06 +01:00
Basile Burg a85aeb8172 runnable modules can always import from their parent folder 2015-03-18 21:52:27 +01:00
Basile Burg 0c34c8999e fix, DCD and TCESynmemo positions issues, (hints, goto decl) 2015-03-17 04:53:40 +01:00
Basile Burg 2c325dceef bdm 2015-03-17 04:01:53 +01:00
Basile Burg d6d6fab659 Revert "fix, dcd ddoc mouse hint, decl finder, location is not based on the speific document line ending kind but on the system one"
This reverts commit 6aed308035.
2015-03-17 03:34:42 +01:00
Basile Burg 6aed308035 fix, dcd ddoc mouse hint, decl finder, location is not based on the speific document line ending kind but on the system one 2015-03-17 02:16:44 +01:00
Basile Burg ac82a0aba8 DCD hints loc and decl finder always use system LE ? 2015-03-17 02:05:54 +01:00
Basile Burg a346e6c4ee renamed getMouseStart to getMouseFileBytePos 2015-03-17 01:35:26 +01:00
Basile Burg 0cafc5b37a fix, call tip win position when fun has overloads 2015-03-15 01:28:09 +01:00
Basile Burg 92925489ca fix, editor scroll interruptions due to hints 2015-03-15 01:11:27 +01:00
Basile Burg c849f563d6 improved hint and call tip windows 2015-03-13 22:20:30 +01:00
Basile Burg df7e91d1b5 navigation buffer not available under linux 2015-03-12 23:43:42 +01:00
Basile Burg 937f2b0db8 fix, mouse pos to enable hint window 2015-03-12 10:38:44 +01:00
Basile Burg ef3b055bcf nothing 2015-03-11 19:28:11 +01:00
Basile Burg 8bd2898b75 external mod. tracking, undo is possible after reloading 2015-03-11 01:06:31 +01:00
Basile Burg 413e4496b2 re JCF 2015-03-10 15:02:53 +01:00