Martijn Laan
1162b650af
Hide whole word find/replace option when regex is active, because then the option doesnt do anything.
2025-04-30 19:20:29 +02:00
Martijn Laan
84ccece758
Add and use LoadTrustedLibrary function which protects the library from changes between the trust check and the load. Also fixes a typo and improves ISCmplr/isscint error messages on trust fail.
2025-04-18 09:22:15 +02:00
Martijn Laan
de57c26377
Cleanup.
2024-11-14 23:41:22 +01:00
Martijn Laan
c9a9dc56b7
Cleanup (prexisting) can paste check.
2024-10-11 13:18:42 +02:00
Martijn Laan
a959c5a0fd
Now that Scintilla does proper multiple selection copy thanks to SCI_SETCOPYSEPARATOR, tie up the loose end by implementing multiple selection paste as well. Huge improvement 👍
...
Todo: the rectangular paste check.
2024-10-11 09:25:01 +02:00
Martijn Laan
a6796d8e49
Clarify block declarations / make safer.
2024-10-02 19:27:34 +02:00
Martijn Laan
0f428de416
Cleanup.
2024-08-04 10:41:34 +02:00
Martijn Laan
38bfd96652
Cleanup.
2024-07-28 17:16:53 +02:00
Martijn Laan
9903880b2a
Tweak.
2024-07-27 15:48:08 +02:00
Martijn Laan
a3f0369f1d
Add test for regex errors + various cleanup (some not really related to branch).
2024-07-26 22:29:18 +02:00
Martijn Laan
fd709d5058
Make search & replace regex one by one work. The note about needing a check was wrong: MainSelTextEquals already does the required search.
2024-07-26 21:15:55 +02:00
Martijn Laan
16116f630a
Add regex support to find & replace & find in files. Todo: see 3 fixmes + update whatsnew + document. Document: At least how replacing works with groups and \1 etc. Perhaps change the \1 to something else? Notepad++ uses $1 IIRC. What do VS and VSCode use?
2024-07-26 16:53:16 +02:00
Martijn Laan
1f89ddd361
Add comment.
2024-07-26 16:42:53 +02:00
Martijn Laan
2aa9f6313f
Add multiple calltip support.
2024-07-26 10:57:18 +02:00
Martijn Laan
27636da341
Cherry pick typo fix to correct branch.
2024-07-20 08:53:51 +02:00
Martijn Laan
ad7f830baf
Cleanup: remove our ChooseCaretX in SetSelection. We only use SetSelection/SCI_SETSEL for line comment toggling because it's what SciTE does but it doesn't do ChooseCaretX.
...
TBH I would rather remove this entire function and only keep SetSingleSelection/SCI_SETSELECTION. This is because SCI_SETSEL is one of the functions predating Scintilla's multiple selection support.
2024-07-19 19:51:56 +02:00
Martijn Laan
696a31bd51
Make writing to MainSelText behave more similar to SelText, including placing the caret after the inserted text.
2024-07-19 19:46:43 +02:00
Martijn Laan
d6a898c471
Cleanup: SCI_REPLACESEL already does ChooseCaretX (aka Editor::SetLastXChosen) internally.
2024-07-19 19:45:06 +02:00
Martijn Laan
5ff58a9804
Add shortcut and menu item to go to matching brace (Ctrl+Shift+\).
2024-07-11 15:17:39 +02:00
Martijn Laan
bd6f92bb6c
Improve brace highlighting: highlight < and > (used in event attributes and supported by SCI_BRACEMATCH) + use bad highlighting on unmatched braces + highlight when after opening or before closing brace. Not as nice as VSCode but still better.
2024-07-10 21:06:35 +02:00
Martijn Laan
2e5d656151
Merge branch 'calltips'
2024-07-07 16:31:05 +02:00
Martijn Laan
71997f8c52
Add (incomplete) tables for consts, types variables. Also add type icons to the autocomplete list.
2024-07-05 07:30:37 +02:00
Martijn Laan
0903cf47ff
Merge branch 'main' into calltips
...
# Conflicts:
# Projects/Src/IsscintInt.pas
2024-06-30 19:45:11 +02:00
Martijn Laan
8b3cfa3a6d
Cleanup.
2024-06-30 15:25:47 +02:00
Martijn Laan
0a18656607
Cleanup.
2024-06-30 15:25:14 +02:00
Martijn Laan
1bb22b0e76
Auto cancel calltips just like autocompletes.
2024-06-30 15:17:08 +02:00
Martijn Laan
b8f9d4ab47
Add calltips demo code.
2024-06-29 21:51:50 +02:00
Martijn Laan
480a3e274f
Fix 45bd4782.
2024-06-29 07:23:38 +02:00
Martijn Laan
ca92d3c180
Got a little further with virtual space support for single-line addcursor but not there. It just "looks" good but once you start typing you will see the duplicate selections causing duplicate chars.
2024-06-28 08:29:04 +02:00
Martijn Laan
45bd47825a
Cleanup.
2024-06-28 07:42:33 +02:00
Martijn Laan
8710bed00d
Merge branch 'scintkeymap-vscode' into addcursor
2024-06-28 06:57:05 +02:00
Martijn Laan
50fc27291e
Merge branch 'main' into scintkeymap-vscode
2024-06-28 06:56:54 +02:00
Martijn Laan
951b0ff7e1
Fix the multibyte chars issue.
2024-06-28 06:54:40 +02:00
Martijn Laan
d7ee7c92e0
Gave up on the AddCursor branch, too complicated, earlier code didn't work when multibyte chars were used.
...
Add some ScintEdit functions it used anyway.
2024-06-28 00:54:24 +02:00
Martijn Laan
8127a721e8
Add ccAddCursorUp and ccAddCursorDown.
2024-06-27 16:57:54 +02:00
Martijn Laan
0b5b0a1c1d
Cleanup.
2024-06-27 07:07:37 +02:00
Martijn Laan
8308deec67
Cleanup.
2024-06-26 22:10:55 +02:00
Martijn Laan
60d5cec433
Merge branch 'main' into scintkeymap-vscode
...
# Conflicts:
# Files/isscint.dll
# Projects/Src/IsscintInt.pas
2024-06-24 08:11:55 +02:00
Martijn Laan
9b34e9b816
SCI_AUTOCSETSTYLEOFFSET -> SCI_AUTOCSETSTYLE.
2024-06-24 08:09:34 +02:00
Martijn Laan
86fe1c926e
Add shortcuts to fold and unfold.
...
These shortcuts add more VK_OEM stuff. See https://code.visualstudio.com/docs/getstarted/keybindings?_lrsc=8254b004-5a2b-48ad-af57-5634a3ef99c2#_keyboard-layouts for some info about that.
2024-06-22 19:05:15 +02:00
Martijn Laan
cc812b8dca
Merge branch 'main' into scintkeymap-vscode
2024-06-22 18:18:42 +02:00
Martijn Laan
768c9d14f5
Add Set(Raw)MainSelText because SCI_REPLACESEL is also weird.
2024-06-22 18:18:28 +02:00
Martijn Laan
d57cf9d8a1
SelTextEquals should be named MainSelTextEquals since it only looks at the main selection (unlike SelText itself).
2024-06-22 18:11:34 +02:00
Martijn Laan
2dd834b7e2
Add Get(Raw)MainSelText because SCI_GETSELTEXT is weird.
...
SCI_REPLACESEL is also weird and needs similar treatment.
(Now on main as intended.)
2024-06-22 18:07:20 +02:00
Martijn Laan
a55988c9dd
Add ccSelectAllFindMatches (Alt+Enter). Todo: add menu item (god I hate Delphi's current form editing) and updated whatsnew & help. Unfortunately still requires the find dialog to be closed first. When Alt+Enter is used in the dialog our handler doesn't get called so we can't immediately trigger a select all like it's supposed to do.
2024-06-22 09:56:10 +02:00
Martijn Laan
987271767f
Replace STYLE_AUTOCOMPLETION and SCI_AUTOCUSESTYLE with SCI_AUTOCSETSTYLEOFFSET (and SCI_AUTOCGETSTYLEOFFSET).
2024-06-22 08:26:19 +02:00
Martijn Laan
751d7706dc
Scroll caret into view after selection simplification by Esc.
2024-06-21 21:02:04 +02:00
Martijn Laan
0bed5b9e7e
Cleanup.
2024-06-20 15:50:14 +02:00
Martijn Laan
8c45a3da4b
Cleanup for assigning keys (and clearing them).
2024-06-20 11:49:28 +02:00
Martijn Laan
bcde1e6e57
Move folding back into StyleLine + add some extra comments.
2024-06-20 10:02:43 +02:00