Riccardo Mottola
1b7cc44ff1
update FSF address
2025-01-26 19:09:57 +01:00
Riccardo Mottola
ac3fad4b6f
fix some NSLogs
2023-01-13 19:36:29 +01:00
Riccardo Mottola
7ce2cd367a
minor casts
2023-01-13 18:23:17 +01:00
Riccardo Mottola
fdebc6367f
Reduce scope of _extScrollView _intScrollView from ivar to local variables, release after setting to content view and fix double-release of _intScrollView.
2023-01-12 23:33:25 +01:00
Riccardo Mottola
7e64e50cda
remove some debug logs
2021-12-13 23:49:56 +01:00
Riccardo Mottola
2c1c01f807
put timer delays in constants; run highlighting on a timer too
2021-12-01 01:37:45 +01:00
Riccardo Mottola
52539893eb
Merge branch 'LineStatus'
2021-11-30 23:37:13 +01:00
Riccardo Mottola
522edc8cf6
Use a timer also for line calculation and status update
2021-11-30 23:26:02 +01:00
Sergei Golovin
d63d77b98e
* fixed a memory leak
...
* Modules/Editors/ProjectCenter/PCEditor.m:
- replaced RETAIN() with ASSIGN() to avoid memory leaking;
2021-11-29 12:20:33 +04:00
Sergei Golovin
377359a92f
* fixed a unbalanced retain/release ivar
...
* Modules/Editors/ProjectCenter/PCEditor.m:
- changed the -[openFileAtPath:editorManager:editable:] to retain
the ivar 'textColor'... to balance its retain/release count;
2021-11-29 07:59:31 +04:00
Riccardo Mottola
cf1b7a3215
merge from master
2021-11-29 01:40:58 +01:00
Riccardo
008b192d99
Merge branch 'master' into ImproveHighlighting
2021-11-28 23:59:25 +01:00
Riccardo Mottola
c0f24a756f
cleanup some debug logs
2021-11-28 23:40:43 +01:00
Riccardo Mottola
0b8ae1f554
manual cherry-pick of event cleanup
2021-11-26 12:30:05 +01:00
Riccardo Mottola
4216c13cda
Do not send double computeNewParenthesisNesting: on key pressed.
...
Furthermore, use a timer so that in case of rapid re-computing it gets invalidated before and only calculated at the last event.
2021-11-26 02:20:40 +01:00
Riccardo Mottola
01a3a61b2e
do not change font on highlight, just the background: thus storing the old font attributes becomes needless
2021-11-23 01:22:54 +01:00
Riccardo Mottola
a0856faf21
remane textBackground to textBackgroundColor and use that for restoring highlit characters, without resding/storing such attribute
2021-11-23 01:09:50 +01:00
Riccardo Mottola
1749847eac
minor optimizations
2021-11-23 00:42:13 +01:00
Riccardo Mottola
8ab1b66eb5
fix spelling error in ivar
2021-10-28 01:40:01 +02:00
Riccardo Mottola
d6a2ce3650
remove foreground color, we do not change it when highlighting
2021-10-28 01:36:39 +02:00
Riccardo Mottola
60db8c598f
refactor some of the character highlighting, trying to rely only on the start-end pair of locations without old extra variables
2021-10-21 23:36:13 +02:00
Riccardo Mottola
ae35ca4c10
Remove insertText and handle keys through appropriate methods (inserTab, cancelOperation)Remove insertText and handle keys through appropriate methods (inserTab, cancelOperation)
2021-10-19 00:17:03 +02:00
Riccardo Mottola
61eff93341
fix status lin in internal view
2021-09-22 00:34:36 +02:00
Riccardo Mottola
5b988495cc
fix external view
2021-09-21 23:40:21 +02:00
Riccardo Mottola
aaaea5965b
update the line status
2021-09-17 01:25:58 +02:00
Riccardo
07c911b995
Merge pull request #26 from gnustep/master
...
keep branch up-to-date
2021-09-17 01:18:43 +02:00
Riccardo Mottola
aff171ceff
instead of using getLineStart which returns a character after scanning lines, we directly scan lines and count the newlines, so the string is needs to be scanned once only to know hoe many newlines. Some IMP caching to improve this ineffcient o(n) at every cursor movement
2021-09-17 00:53:40 +02:00
Riccardo Mottola
bae62a963b
actually store the preference color in textColor ivar
2021-09-16 00:52:15 +02:00
Riccardo Mottola
b701d1a40b
also keep ligatures off when reverting
2021-08-19 14:57:24 +02:00
Riccardo Mottola
b3fa5f1949
turn off ligatures in the code editor
2021-08-19 14:50:58 +02:00
Gregory Casamento
af4e9fffe4
Merge pull request #19 from gnustep/debugger_editor
2021-08-09 19:23:57 -04:00
Gregory John Casamento
6c59f53df4
Changes to use _containerView as main internal view.
2021-08-03 19:45:30 -04:00
Riccardo Mottola
7504a154e1
status bar, still incomplete resizes badly / does not show internally
2021-08-03 19:45:30 -04:00
Riccardo Mottola
18136e7678
get selected range of selection
2021-08-04 01:42:08 +02:00
Riccardo Mottola
f9d8e56a2e
actually register NSTextViewDidChangeSelectionNotification
2021-08-04 00:53:34 +02:00
Gregory John Casamento
736093b0c1
Fix centering issue
2021-08-03 18:48:00 -04:00
Gregory John Casamento
87988f435c
Make update of file appear in the in-window editor instead of external editors
2021-08-03 17:16:26 -04:00
Riccardo Mottola
08cd658b6d
cleanup
2021-07-13 22:31:02 +02:00
Riccardo
82c6aa3162
Merge pull request #17 from gnustep/checkExtFileMod
...
Check ext file mod
2021-05-12 22:23:01 +02:00
Gregory John Casamento
a186488b30
Highlight IBAction/IBOutlet
2021-04-10 06:16:43 -04:00
Gregory John Casamento
196914ef14
Minor fix to syntax highlighting to make it the same as C for equivalent keywords in ObjC
2021-04-10 06:09:54 -04:00
Riccardo Mottola
f9ed96a3e4
offer option to reload file
2021-04-05 19:51:42 +02:00
Riccardo Mottola
2ace3c327a
re-set modification date on save, show alert panel
2021-03-31 23:25:50 +02:00
Riccardo Mottola
a6fc84bc9b
saveFileTo should not update the save time
2021-02-22 16:55:13 +01:00
Riccardo Mottola
78e4f47c8f
use path passed as parameter
2021-02-22 16:00:48 +01:00
Riccardo Mottola
059e105652
Keep track of the file modification date on each open/save, compare it to the current file to detect external modifications.
2021-02-19 10:45:30 +01:00
Riccardo Mottola
aa2ce8fd73
notify Gorm only if the file was really saved, or it will reload the old file
2021-02-18 00:32:47 +01:00
Riccardo Mottola
6544ff872e
assure color is in RGB color space vefore calculating inverse
2021-02-11 12:01:48 +01:00
Riccardo Mottola
ad65327732
Respect background selection preferences and infer text as inverse.
2021-02-06 12:31:10 +01:00
Riccardo Mottola
445b31db3f
Separate font accessors in to class and instance methods.
...
Do not use preferences in class methods, since they are outside the protocol.
2020-09-08 23:52:03 +02:00