Francesco Abbate
0c488c9492
Fix logic in project's file insertion
...
The function "file_search" in core.init was sometimes giving a wrong index
value, off by one.
The problem happened for example when the entry to search was "less than"
the first entry, the function returned a value of two instead of one as
expected.
The bug was easily observed creating a new directory with a name that comes
as the first in alphabetical order within the project.
2021-11-26 13:45:13 +01:00
Adam and GitHub
fe6ba4adb7
Merge pull request #696 from adamharrison/fix-lineguide
...
Added an exclusion for lineguide in the commandview.
2021-11-24 13:28:04 -05:00
Adam and GitHub
9b24563b84
Merge pull request #692 from adamharrison/draw-whitespace-color
...
Added in the ability to specify a color for whitespace.
2021-11-24 13:23:34 -05:00
Guldoman
59f64088e1
Remove changed files/dirs from TreeView cache
2021-11-24 06:16:54 +01:00
Guldoman
5dca37b11a
Don't search if there are no files
2021-11-24 05:03:42 +01:00
Adam Harrison
f7b3a2b0c2
Added an exclusion for lineguide in the commandview.
2021-11-23 22:35:11 -05:00
Adam Harrison
7ee23da187
Added in additional environment variables to scale off of.
2021-11-23 22:30:35 -05:00
Adam Harrison
463605ff41
Fixed event propogation.
2021-11-23 21:56:07 -05:00
Adam Harrison
64f66e5d1e
Added in cut, copy and paste to the context menu. Also removed find pattern, as that's no longer a valid command. Also made it so commands only show up if their predicates are valid.
2021-11-23 21:03:38 -05:00
Adam Harrison
cc3fddd1e5
Added in check to make sure you can use a scrollbar on a split.
2021-11-23 20:34:01 -05:00
Adam Harrison
3162f4ea4f
Added in the ability to specify a color for whitespace.
2021-11-23 18:42:01 -05:00
PIESEL and Guldoman
00d555b016
Apply again cd10497b49
...
Use Python syntax highlighting for Ren'Py scripts.
2021-11-23 22:24:03 +01:00
Guldoman
cd2adb4a30
Apply again 1976facaf1
...
Use reverse search for `find-replace:previous-find`
2021-11-23 22:22:52 +01:00
Adam Harrison
96db380c73
Manual merge of into .
2021-11-23 15:57:22 -05:00
Adam and GitHub
43a6e21135
Merge pull request #681 from Guldoman/prepopulate_highlighter
...
Prepopulate highlighter
2021-11-23 15:38:20 -05:00
Guldoman and GitHub
955acf53a3
Merge pull request #673 from vincens2005/master
...
Add BigInt literal and numeric separators to js syntax highlighter
2021-11-22 22:23:23 +01:00
cukmekerb
65f1251767
JS hex BigInts and hex numeric separators
2021-11-22 12:15:19 -08:00
Adam and GitHub
9869484ec6
Merge pull request #683 from Guldoman/named_languages
...
Add names to language plugins
2021-11-22 11:41:49 -05:00
Guldoman
23a0f6ca79
Speed up highlighter notify
...
Avoid calling `table.{insert,remove}` multiple times, as this causes
multiple shifts in the `self.lines` table.
2021-11-22 06:23:16 +01:00
Joshua Minor
373007a767
Switched to TreeView:color_for_item(abs_path)
2021-11-21 15:24:45 -08:00
Joshua Minor
bede0ff878
Allow for color overrides in the tree view
2021-11-21 00:24:24 -08:00
Guldoman
3176b467ca
Add names to language plugins
2021-11-21 03:46:43 +01:00
Guldoman
2de48b6ac8
Adapt detectindent to the new indentation architecture
2021-11-20 04:40:58 +01:00
Guldoman
3d9901695b
Use the new Doc:get_indent_info throughout core
2021-11-20 04:37:15 +01:00
Guldoman
b77b1c0221
Add Doc:get_indent_info
...
It returns the indentation type, size and confirmation status, used by
the `Doc`.
2021-11-20 04:36:58 +01:00
Guldoman
d0a2c913f5
Pre-populate the highlighter
...
This avoids problems with calls to `[insert,remove]_notify` on lines
that the highlighter has not yet added.
2021-11-20 01:18:37 +01:00
Guldoman
f24aa64cd5
Add soft_reset to highlighter
...
This allows clearing the `lines` table without removing entries.
2021-11-20 01:15:13 +01:00
Joshua Minor
4f55555ca9
Selection expands by word or line on double or triple click followed by drag.
2021-11-19 09:46:13 -08:00
Takase and GitHub
d7c309d8e2
Merge branch 'master' into lineguide-config
2021-11-17 11:59:59 +08:00
Guldoman
6a7a02542f
Draw only visible whitespaces
2021-11-17 02:57:14 +01:00
Takase and GitHub
8e6f594790
Merge branch 'master' into replace-unpack
2021-11-17 08:42:08 +08:00
takase1121
6d36f2684a
add polyfill for table.pack and table.unpack
2021-11-17 08:37:37 +08:00
Adam Harrison
18959aebef
Fixed predicate and minor propogation issue.
2021-11-16 19:12:39 -05:00
Adam and GitHub
c58029df8b
Merge pull request #589 from adamharrison/clicks-keymap
...
Added in clicks to keymap.
2021-11-16 15:49:52 -05:00
cukmekerb
46f81e0bad
add BigInt literal and numeric separators to js syntax highlighter
2021-11-15 09:20:34 -08:00
Takase and GitHub
285ea4f495
Merge branch 'master' into keymap-improvements
2021-11-15 21:59:04 +08:00
Adam and GitHub
ca448c5fdb
Merge pull request #664 from Guldoman/highlight_caret_line
...
Highlight any line that contains a caret
2021-11-14 16:27:25 -05:00
Adam Harrison
2463c5d209
Made keymap more flexible.
2021-11-14 15:51:27 -05:00
Adam Harrison
acc6667f57
Bug.
2021-11-14 15:45:46 -05:00
Adam Harrison
d8473a3e00
Changed click prefixes to be numbers, as Takase suggested.
2021-11-14 15:44:54 -05:00
Adam Harrison
2931bdeb68
Can't forget mac.
2021-11-14 15:41:28 -05:00
Adam Harrison
50c0659445
Also changed docview mousewheel into a scroll command.
2021-11-14 15:41:28 -05:00
Adam Harrison
7babed1e6b
Added in more broad strokes for clicking to match wheel. 's' is single, 'd' is double, 't' is triple, and no prefix will always take any amount of clicks.
2021-11-14 15:41:28 -05:00
Adam Harrison
7a3e8ed86a
Added in mousewheel as part of this.
2021-11-14 15:41:28 -05:00
Adam Harrison
c04dc648de
Refactored things out.
2021-11-14 15:41:28 -05:00
Adam Harrison
1968d31b7c
Keymap.
2021-11-14 15:41:28 -05:00
Adam Harrison
6bdcfc824d
Rearranged things to make a bit more sense.
2021-11-14 15:41:28 -05:00
Adam Harrison
7905ddd26f
Fixed propogation again.
2021-11-14 15:41:28 -05:00
Adam Harrison
4e313d9fc5
Propogated mouse clicks correctly.
2021-11-14 15:41:28 -05:00
Adam Harrison
ce2ec9f442
Moved commands out to the outer event loop.
2021-11-14 15:41:28 -05:00