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
Oliver Blanthorn
019fc2c31b
Merge branch 'add_gist_rc_loading'
2019-09-20 19:11:34 +01:00
Oliver Blanthorn
7d05f76b40
Improve source URL help
2019-09-20 19:10:45 +01:00
Oliver Blanthorn
fd0cfd9b36
Merge pull request #1851 from rektrex/add_extoptions
...
add extoptions excmd
2019-09-20 18:58:21 +01:00
Oliver Blanthorn
62b8bf0992
Merge branch 'replace-flatten'
2019-09-20 18:05:10 +01:00
rektrex
7670cc7784
make source --url use current page's url when no url is given'
2019-09-20 01:27:00 +05:30
rektrex
49fb856523
combine source_from_url to source
2019-09-20 00:24:40 +05:30
rektrex
8f0b2a5ab8
add exmcmds to load RC file from url
2019-09-19 22:14:51 +05:30
rektrex
bf1a07467f
trim url for p and P commands
2019-09-18 13:14:50 +05:30
Chris
ba32beb3ce
Correctly detects Windows when applying colors
...
Partial solution to #1378
Previously, this expression would evaluate to null, producing a false negative on Windows systems, due to a syntax issue
2019-09-17 16:09:11 -04:00