Commit graph

155 commits

Author SHA1 Message Date
themaherdev
f717630352 Fixing hardcoded indicator border style 2023-08-14 15:59:43 +03:00
Oliver Blanthorn
78d0fa91df
Fix #4469: wrap history events in try/catch 2022-11-23 12:39:12 +01:00
Gold Holk
1015f540d1
Fix wrong empty selection detect
The anchorOffset and the focusOffset are counted from the anchorNode and the focusNode.
They may be different node, so a same offset does not mean empty selection.
Just isCollapsed is enough.
2022-08-10 11:18:32 +08:00
Oliver Blanthorn
0834fa1744
Expose completion providers for gholk 2022-06-02 15:37:34 +02:00
Oliver Blanthorn
8bb519c774
Merge pull request #2359 from noctuid/feature/tab-groups
WIP Tab groups
2022-05-24 14:31:18 +01:00
Oliver Blanthorn
f110647137
Cheer up eslint - manual fixes 2022-05-24 14:36:16 +02:00
Oliver Blanthorn
ba55f59153
Merge branch 'master' into feature/tab-groups 2022-05-24 14:24:00 +02:00
Oliver Blanthorn
c91583bfcd
Rename locationchange to HistoryState 2022-05-24 14:03:18 +02:00
Oliver Blanthorn
92cf67ab07
Cheer up eslint 2022-05-24 12:39:04 +02:00
Oliver Blanthorn
905db67c99
Merge branch 'master' into ivcz/master 2022-05-24 12:02:55 +02:00
Oliver Blanthorn
0e0a1bcdf5
Add support for SPAs 2022-05-15 16:14:51 +02:00
gholk
ceb5b71697
[PATCH] Fix this binding in WIP cheaper URI change event
Bind the pushState and replaceState to history
so they will not lost their this.
Except the this binding problem, I'm not sure whether
this URI change event code will work.
2022-05-10 18:42:50 +02:00
Calvin T. Nesbitt
47487b31e2
Allow mode change to restore mode indicator.
Issue #2690
Rather than delete the statusIndicator span, apply the TridactylInvisible class. This class includes pointer-events:none, which prevents conditional overlap with the statusIndicator EventListener "mouseenter".
2021-12-29 16:02:01 -05:00
pvs
5015501b82 Fix tabopen on about:newtab
Quote profile.Name
2021-12-11 11:06:25 -08:00
Oliver Blanthorn
5542cee609
Add WIP cheaper URI change event 2021-10-19 17:25:19 +02:00
Oliver Blanthorn
16f51c8513
Merge branch 'master' into feature/tab-groups 2021-10-02 16:57:13 +02:00
Oliver Blanthorn
9a99c21b1c
Fix daft bug: exit to avoid importing stuff 2021-07-20 12:56:22 +02:00
Oliver Blanthorn
cb5ea3a5a5
Improve disable name 2021-07-20 12:53:52 +02:00
Oliver Blanthorn
c2a3dfab61
Switch to dynamically loaded imports
This doesn't actually seem to work though - TridactylThemeDefault still
appears in the root classes
2021-07-04 19:13:37 +02:00
Oliver Blanthorn
cd3a463306
Mess around with pages where Tridactyl is disabled less 2021-07-04 17:36:28 +02:00
Oliver Blanthorn
fa3a0ec69c
Move imports to top of file 2021-07-04 17:16:28 +02:00
Oliver Blanthorn
dbd5bd4299
Investigate #3772: switch back to ramda 2021-06-19 17:58:57 +02:00
Oliver Blanthorn
12a07248d2
Fix #1743: hide new tab page better 2021-05-06 18:57:36 +02:00
Oliver Blanthorn
6a466c2e46
Try to fix #3653 2021-05-06 12:29:51 +02:00
Oliver Blanthorn
02a9d42379
Tidy up package.json
Remove unused packages, try to install
more sanity in dev / prod dependencies
2021-05-05 17:41:47 +02:00
Oliver Blanthorn
9fe79529c7
WIP: swap ramda for rambda
It supports TS a bit better and is a bit quicker.

But it has fewer functions
2021-04-29 17:52:41 +02:00
Oliver Blanthorn
8d58ed9535
Fix half of #3590: display nmode mode indicator 2021-04-22 12:45:30 +02:00
Oliver Blanthorn
85129c3463
Fix #3396: let openInNewTab wait for DOM 2021-02-27 13:55:07 +01:00
Oliver Blanthorn
5bb3427637
Add metadata to tri content object 2020-10-21 17:39:02 +01:00
fluem
1f3ee16739 Allow visability of modeindicator to be configured for each mode separately 2020-10-13 17:47:54 +02:00
Fox Kiester
988ec5b770
Add tab group commands
Functionality implemented:
- :tgroupcreate to create a tab group
- :tgroupswitch to switch to or create a tab group
- :tgrouplast to switch to the previously active tab group
- :tgrouprename to rename the current tab group
- :tgroupclose to close all tabs in the current tab group
- :tgroupmove to move the current tab to another tab group
- :tgroupabort to destroy all tab group information and show all tabs
- :tabgroup... aliases for the above commands
- Completion for :tgroupswitch and :tgroupmove
- Restoring tab group setup on firefox start (seems to just work without any extra code)
- Basic mode indicator
- Setting for initial urls for to use newly created tab groups (after first)
- Setting for whether :tab shows hidden tabs.

Edge cases handled
- Opening tabs outside of tridactyl mechanisms (e.g. firefox gui, C-t, etc.)
- Switching to a hidden tab
- Detaching and attaching tabs
- Pinned tabs (they can't be hidden; the commands ignore them)
- Various other edge cases

Fixes #811.
2020-08-27 17:52:54 -04:00
Oliver Blanthorn
110d55119f
Add simple messenger to check it Tridactyl is running in a tab 2020-07-04 18:29:43 +01:00
Oliver Blanthorn
09e19896cf
Grasp the nettle: run prettier on all of src 2020-07-01 18:38:02 +01:00
Oliver Blanthorn
96f763e42e
Re-enable no-extra-semi and prettier
Prettier re-enabled as the semi-colon removal made quite a few files
uglier than they were previously.
2020-06-19 12:56:25 +01:00
Oliver Blanthorn
dd482087ed
Remove now unused locks 2020-05-09 12:36:03 +01:00
Oliver Blanthorn
7e4da9c3ef
Merge branch 'state_in_bg_only' 2020-05-09 10:58:26 +01:00
Oliver Blanthorn
f45a2fe141
Move state storage to background 2020-05-08 17:19:23 +01:00
Oliver Blanthorn
426513327d
Add o bind to move cursor to other end of selection 2020-05-05 15:55:00 +01:00
mozbug
84ae795f34 show insert mode indicator properly 2020-03-15 21:05:41 +08:00
Oliver Blanthorn
7705ebf5d8
Fix #1538: synchronise repeat between tabs and bg 2020-02-28 09:40:01 +00:00
Oliver Blanthorn
acae10a8cd
Add locks library 2020-02-16 20:19:26 +00:00
Oliver Blanthorn
56f69a7814
Fix #2158: add R to tri object 2020-02-16 16:06:28 +00:00
Oliver Blanthorn
65033343ae
Fix #2088: restore automatic exit from visual mode
You can toggle this with the visualexitauto setting.
2020-01-12 12:44:37 +00:00
Oliver Blanthorn
7510fb32fe
Fix #2087: add visualenterauto setting 2020-01-12 12:30:51 +00:00
Oliver Blanthorn
a0da8d5c49
Add scrolling to tri object for easier debugging 2020-01-08 17:53:20 +00:00
Oliver Blanthorn
db61f979a6
Simplify conditions for entering visual mode
1. You can only enter visual mode from normal mode
2. Must select text to enter visual mode
3. Exit visual mode with escape, etc.

This fixes #2073.
2020-01-05 18:33:39 +00:00
Oliver Blanthorn
4f40438246
Fix #2075: fix leaving ignore mode on click 2020-01-05 18:14:58 +00:00
Oliver Blanthorn
fec145606b
Fix #2050: add WIP visual mode
We need to make merging of nmaps happen at runtime
before we merge this, or we'll break the binds of
people who are just selecting text to help them
read.
2019-12-19 11:32:37 +00:00
Oliver Blanthorn
3cecfe6f27
Add urlutils to tri object for Lexi 2019-12-16 12:29:31 +00:00
Jakub Okoński
5e029c780b Fix type of browserBg and adjust other code for it 2019-10-26 20:07:30 +02:00