Commit graph

965 commits

Author SHA1 Message Date
glacambre
57e41eaec0
excmds.ts: fix hint -pipe parsing 2020-03-12 06:49:40 +01:00
Oliver Blanthorn
09f6831b0e
Merge pull request #2200 from tridactyl/fix_repeat
Fix #1538: synchronise repeat between tabs and bg
2020-03-02 15:30:55 +00:00
Oliver Blanthorn
3b38f093b7
Merge pull request #2194 from mozbugbox/bind-completion
Binding completion
2020-02-28 21:10:04 +00:00
mozbug
a6f9072874 Use generic variables in binding.ts 2020-02-28 22:01:52 +08:00
mozbug
30f89a6187 Move binding related function into lib/binding.ts 2020-02-28 21:18:35 +08:00
Oliver Blanthorn
7705ebf5d8
Fix #1538: synchronise repeat between tabs and bg 2020-02-28 09:40:01 +00:00
Oliver Blanthorn
e1f99759e5
Fix #2184: add urlmodify_js 2020-02-27 12:46:30 +00:00
Oliver Blanthorn
cd990a9256
Merge branch 'the_asynquening' 2020-02-27 12:11:57 +00:00
Oliver Blanthorn
df3ed4f903
Make js help follow Tridactyl style guide
i.e. line formatting is done on the reader's machine, not the writer's
2020-02-27 12:07:37 +00:00
Oliver Blanthorn
4477f3e37d
Fix a few typos and improve help a little 2020-02-27 12:05:26 +00:00
mozbug
d6086f73f2 Silence tsdoc 2020-02-26 21:29:38 +08:00
mozbug
2a302aba62 Add doc for new options to js 2020-02-26 21:28:59 +08:00
mozbug
53e368edcd excmds.js remove check for '../' in path 2020-02-26 19:20:38 +08:00
mozbug
fc03d64113 excmds.js add option -r to load from config dir 2020-02-26 19:17:42 +08:00
glacambre
e2464e552a
excmds.ts: make a lot of functions return promises
It's important to have async functions return promises as this ensures
that composite commands run in a deterministic and unsurprising order.

Also, making `:sanitize` synchronous might fix all issues we have with
Tridactyl not sourcing tridactylrcs entirely.
2020-02-25 19:56:03 +01:00
mozbug
9933755466 Silence lint 2020-02-25 20:17:48 +08:00
mozbug
8850b00a20 Allow js/jsb to load local javascript file.
Add a flag `-s` to source js files from user's config directory:

    :js -s test.js

With the ability to load js files, `tridactylrc` can have its javascript
code into seperate files.

Since the js code was run by calling `eval()` in local score of calling
function, the variables and functions decleared in the js file will lost
after eval().

To make the content of javascript file reusable, user could export
functions into some globals like `window.` or `tri.`.
2020-02-25 19:52:18 +08:00
Oliver Blanthorn
84d8a3d9eb
Rename configrm to setnull 2020-02-14 19:21:13 +00:00
Oliver Blanthorn
691d1bbc59
Add configrm command to remove part of default config 2020-02-14 15:25:46 +00:00
Oliver Blanthorn
a1b78709df
Update unbound binds from '' to null 2020-02-14 15:24:39 +00:00
Oliver Blanthorn
85cdd53020
Cheer up tslint 2020-01-04 17:34:37 +00:00
Oliver Blanthorn
cc4bc3e165
Support user visual mode binds 2020-01-02 15:10:25 +00:00
Oliver Blanthorn
019739d9ff
Allow multiple selections with hint -h
NB: visual mode does not play nicely with rapid-hint highlights
so it has been left unbound
2020-01-02 12:03:48 +00:00
Oliver Blanthorn
aa520c86bf
Add selection hint 2020-01-02 11:54:48 +00:00
Oliver Blanthorn
63c187d28e
Fix #2037: remove namespace from userChrome
Bump minimum version to FF70 as this is the oldest version it has been
tested on.
2019-12-12 14:45:20 +00:00
Oliver Blanthorn
266988344e
Merge branch 'typed-background-messaging' 2019-11-27 09:32:59 +00:00
Oliver Blanthorn
11f290241f
Fix #1984: counts now work with scrollline 2019-11-08 16:49:26 +00:00
Oliver Blanthorn
1cb143abea
Fix #1258: add apropos command 2019-11-06 11:26:52 +00:00
Oliver Blanthorn
c268dd3feb
Fix #1967: remove return values from quickmarks 2019-11-05 17:22:30 +00:00
Oliver Blanthorn
326a7d7153
Merge pull request #1891 from tridactyl/unfixamo2-whofixesthefixers
Unfixamo2
2019-10-30 19:33:24 +00:00
Jakub Okoński
a8b740b1bd Add strong typing to background messages 2019-10-26 21:55:59 +02:00
Jakub Okoński
5e029c780b Fix type of browserBg and adjust other code for it 2019-10-26 20:07:30 +02:00
Oliver Blanthorn
838dc22b13
Merge pull request #1944 from tridactyl/rapid_yanking
Fix #1374: hint -qy now merges its arguments
2019-10-25 16:45:19 +01:00
Oliver Blanthorn
73b43ee56d
Fix #1374: hint -qy now merges its arguments 2019-10-25 16:19:51 +01:00
Oliver Blanthorn
70a96fd160
Merge pull request #1942 from tridactyl/add_wiki_links
Fix #1852: mention wiki on various pages
2019-10-25 16:00:45 +01:00
Oliver Blanthorn
e987bb88ec
Fix #1892: make yank functionality clearer 2019-10-25 15:00:32 +01:00
Oliver Blanthorn
9d5432e61f
Fix #1852: mention wiki on various pages 2019-10-25 14:56:41 +01:00
Jakub Okoński
dd422cd136 Enable some low-hanging TypeScript strictness options 2019-10-20 13:09:21 +02:00
Jakub Okoński
9b4d52dbd2 Try another fix 2019-10-18 14:39:47 +02:00
Jakub Okoński
0ebc44741b Try a fix for selenium export under the wrong name 2019-10-18 14:11:19 +02:00
Jakub Okoński
67fa18b4ec Add a separate tsconfig for tests
Tests run with nodejs + jest types, while the web extension code
runs with browser + web-ext type roots.
2019-10-18 13:07:38 +02:00
Jakub Okoński
bd2b988338
Fix and optimize addJump scroll handler
It was reading properties that a scroll event does not have.

It was messaging the background page with an expensive call on every
scroll event. This slowed down the page unnecessarily.

Also extracted jumps.timeoutid to the content script scope.
This variable is not useful to others outside of the current content
script. Storing it locally means we can avoid expensive communication
with the background page and only do it once we're sure we need to add
a new entry to the jump list.
2019-10-18 11:49:13 +01:00
Oliver Blanthorn
71ae77a432
Merge branch 'autocontain-urlpattern' 2019-10-18 10:55:54 +01:00
arcnmx
f4ff5c8fc3 autocontain excmd compatibility
Retain old behaviour unless the `autocontain -u` flag is used.
2019-10-17 15:00:34 -07:00
Oliver Blanthorn
15b498971e
Merge branch 'autocontain-relaxed' 2019-10-17 22:05:24 +01:00
Oliver Blanthorn
308ac0a043
Tidy autocontain docs 2019-10-17 22:05:13 +01:00
Oliver Blanthorn
6d39bdd343
Fix #1910: improve autocmd docs 2019-10-17 20:56:48 +01:00
arcnmx
6fbcb4e719 treat autocontain settings as url patterns
Be more consistent and in line with the `seturl` family of settings.
2019-10-16 11:32:12 -07:00
Oliver Blanthorn
647d3221a9
Add removepref excmd 2019-10-10 20:16:59 +01:00
glacambre
a4040102f5
Remove set csp clobber
This just removes the background.ts code that detects whether the user
wants to clobber their csp and adds an error message if the user tries
to `set csp clobber`.
The `csp` setting is marked as deprecated but left untouched in case we
find a way to edit CSP in a way that complies with Mozilla's policies.
The csp-editing code in `requests.ts` is left untouched for the same
reason.
2019-10-02 10:25:03 +02:00