Commit graph

289 commits

Author SHA1 Message Date
webzwo0i
996f0e8a1d getCountOfVisibleCharsInViewport functionality 2021-01-08 08:19:15 +01:00
John McLear
01fe885adc linted ace2_inner 2021-01-07 21:07:29 +00:00
John McLear
170dd43e8b actual fix 2021-01-07 19:23:40 +00:00
John McLear
d1222bb9a7 tidy 2021-01-07 16:36:47 +00:00
John McLear
a75decf33c working shift page up / down 2021-01-07 16:08:41 +00:00
John McLear
1991c439f2 shift logic working but wtf is happening here?! 2021-01-04 16:25:41 +00:00
John McLear
d41b5ec96d shift logic working but wtf is happening here?! 2021-01-04 16:25:37 +00:00
John McLear
81e4c14fc0 reverse reps are a brain truck 2021-01-03 12:36:04 +00:00
John McLear
eba5827092 working x offset logic bugfix 2021-01-03 11:36:19 +00:00
John McLear
ffce4d32cb working x offset logic 2021-01-03 11:33:12 +00:00
John McLear
81e50061dc oof struggling with char offset 2021-01-02 16:30:32 +00:00
John McLear
8e5c124f5e new approach #1721874828748974124124 2021-01-02 14:55:19 +00:00
John McLear
66d3d6a02d oof, dat bugz 2021-01-01 22:10:36 +00:00
John McLear
d930a12e37 additional testing for long line issue 2021-01-01 21:46:58 +00:00
John McLear
e4404d702e resolve issue with line history not being kept 2021-01-01 21:05:13 +00:00
John McLear
cdce13ca25 still very broken but getting more test coverage at least -_- 2020-12-31 11:27:04 +00:00
John McLear
e6f8356500 begin adding in shift support 2020-12-30 22:32:51 +00:00
John McLear
6c000472af character offset broken logic 2020-12-29 21:32:25 +00:00
John McLear
3eab0df189 begin adding in support for long lines 2020-12-29 18:56:04 +00:00
John McLear
5cd4dc1af2 keep previous caret x location on pageup/down 2020-12-29 16:55:51 +00:00
John McLear
af6a699db4 up down better ux 2020-12-28 18:29:01 +00:00
John McLear
0fdc13a6ad some wierdness, not sure what 2020-12-28 18:20:08 +00:00
John McLear
0b9962c6c6 working going to end of the line and beginning of first 2020-12-28 14:12:24 +00:00
John McLear
92450e071d much better ux 2020-12-28 09:34:58 +00:00
John McLear
a536b311e4 much better ux 2020-12-28 09:28:55 +00:00
John McLear
0253b54803 working page down and semi working page up 2020-12-28 09:12:45 +00:00
John McLear
d6075bd042 working basic functionality 2020-12-28 08:40:53 +00:00
John McLear
f6d9c7e705 just some thoughts on approaches 2020-12-27 23:39:20 +00:00
Richard Hansen
b82bf5c726 Drop support for Internet Explorer 2020-12-19 19:13:31 +00:00
Richard Hansen
7e8de5540f Factor out common URL regular expression code
This also eliminates the differences between the regular expressions.
2020-12-14 07:03:17 +00:00
Richard Hansen
e247c716c2 editor: Add argument to suppress SonarCloud error
This also makes it easier for devs to understand the expected function
signature.
2020-11-24 20:06:12 +00:00
Richard Hansen
d24306ea6a editor: Delete unused isTimeUp argument
This fixes a SonarCloud error.
2020-11-24 20:06:12 +00:00
Richard Hansen
ed7ba64635 editor: Delete unused optModFunc argument 2020-11-24 20:06:12 +00:00
Richard Hansen
d0114d4ac2 editor: Delete commented-out code 2020-11-24 20:06:12 +00:00
Richard Hansen
bb722763d0 editor: Delete dead code
This silences some SonarCloud errors.
2020-11-24 20:06:12 +00:00
Richard Hansen
8e5fd19db2 lint: Run eslint --fix on src/ 2020-11-24 20:06:12 +00:00
Richard Hansen
0625739cb8 lint: Declare variables above their first use
This makes it possible to convert from `var` to `let` without getting
ReferenceErrors.
2020-11-24 20:06:12 +00:00
Richard Hansen
7df3ded66f lint: Put opening brace on same line as function
Normally I would let `eslint --fix` do this for me, but there's a bug
that causes:

    const x = function ()
    {
      // ...
    };

to become:

    const x = ()
    => {
      // ...
    };

which ESLint thinks is a syntax error. (It probably is; I don't know
enough about the automatic semicolon insertion rules to be confident.)
2020-11-24 20:06:12 +00:00
Richard Hansen
98de2b0899 Use contentEditable for all browsers
This makes it possible to disable `contentEditable` for certain
elements in some circumstances (e.g., on links so that users can click
on them normally).
2020-11-03 19:02:01 +00:00
Richard Hansen
5e2a27a182 Replace setClassPresence(x, ...) with x.classList.toggle(...) 2020-11-03 19:02:01 +00:00
Richard Hansen
4594608c04 Delete commented-out code 2020-11-03 19:02:01 +00:00
Richard Hansen
193028702d pad: Don't paste when middle-clicking on a link 2020-10-25 07:06:29 +00:00
John McLear
cb5fcbb74e
editor: allow paste into links (#3802) 2020-10-24 16:59:03 +01:00
Sebastian Castro
818194da90
editor/performance: Fix performance for large pads (#4267)
* Fix line numbers top padding

This old rule was conflicting with new css rules introduced in 1.8.4

* Fixes #4228 Performance degradation for long pads 

Due to layout trashing when calculating new heights
2020-09-08 14:52:26 +01:00
John McLear
c5584fb5b4
editor: outdent on ol removal (#4088) 2020-06-07 09:51:12 +01:00
John McLear
2cd3dccc4d Revert "Revert "Revert "editor: ul/ol/li - outdent on ol and ul button press"""
This reverts commit fd3980133d.
2020-06-06 20:51:17 +00:00
John McLear
fd3980133d Revert "Revert "editor: ul/ol/li - outdent on ol and ul button press""
This reverts commit 82fb6ddc99.
2020-06-06 20:38:08 +00:00
John McLear
82fb6ddc99 Revert "editor: ul/ol/li - outdent on ol and ul button press"
This reverts commit fc88f12bba.
2020-06-06 18:34:51 +00:00
John McLear
fc88f12bba
editor: ul/ol/li - outdent on ol and ul button press 2020-06-05 20:00:21 +01:00
Sebastian Castro
7aa7e02e27
Various UI improvement (#4017) 2020-06-02 10:25:43 +01:00