Oliver Blanthorn
905f0c50fe
Add unchecked gets for runtime usage.
...
Also make config.getAsync use the same type checking
and document a hitherto undocumented setting that it
surfaced.
2019-05-28 12:49:45 +01:00
glacambre
ce237daa3f
config.ts: Fix get completions
...
Before 7717c18
, calling `config.get()` would result in target being an
empty array. After 7717c18
, `config.get()` resulted in `target` being an
array containing one element, `undefined`. Since there isn't any
setting named `undefined`, get completions returned `undefined` and
completions gracefully failed.
We fix this by turning `target` into an empty array if `target_typed` is
undefined.
2019-05-28 12:58:23 +02:00
Oliver Blanthorn
46519e3a5f
Update dev diary
2019-05-28 11:42:24 +01:00
glacambre
f050f68740
Turn hint mode into a real mode
...
This commit turns hint mode into a real mode. This required several
changes:
- In `src/content/hinting.ts`: create a function named getHintCommands
which returns an object containing functions that can be used as ex
commands.
- In `src/content/hinting.ts`: rewriting the `parser` function to have
it check the `hintmaps` object in the config and trigger these if
they're bound to anything. We can't use a generic parser because
vimperator hints need to catch every single keypress, even the ones
that aren't bound to anything and act on them.
- Creating `src/background/hinting.ts`, which just wraps ex commands
from src/content/hintings.ts in a proxy which will forward calls to the
content script.
2019-05-28 12:41:40 +02:00
Oliver Blanthorn
b098e760e9
Merge branch 'vlmarek-master'
2019-05-27 19:37:57 +01:00
Oliver Blanthorn
ede58e479c
Make hint -f case insensitive
2019-05-27 19:37:41 +01:00
Oliver Blanthorn
7717c18e92
Add type checking to first arg of config.get
...
Also document noiframeon, which I discovered was undocumented
because of the type checking.
It makes splatted config.gets rather uglier with `...args` ->
`args[0] as keyof config.default_config, args.slice(1)...`.
It has apparently also broken config completions.
2019-05-27 19:27:52 +01:00
Oliver Blanthorn
7b6508a3e1
Fix #1185 - add blacklistkeys setting
2019-05-27 18:57:36 +01:00
glacambre
233a94cd80
config.ts: make getURL check site-specific defaults too
...
This makes site-specific defaults override global settings set by the
user.
2019-05-27 17:55:59 +02:00
Oliver Blanthorn
4b515ec6d3
Add default subconfig for followpagepatterns www.google.com
...
This doesn't currently work - it looks like only subconfigs in user config
are considered. Probably need to use mergeDeep somewhere.
2019-05-27 15:21:29 +01:00
Oliver Blanthorn
afbf4e2e50
Prevent bmark from guessing title for manually specified URLs
2019-05-27 14:47:47 +01:00
reversebreak
6a15b99c2e
Make bmark use page title if none is supplied
2019-05-27 14:13:32 +01:00
Vladimír Marek
76f7100987
Add RegExp capability to text filtered hinting
2019-05-27 14:57:07 +02:00
Oliver Blanthorn
62130e3baf
Fix #676 : add merchandise link to readme
2019-05-27 13:37:16 +01:00
Oliver Blanthorn
26343e5a5d
Fix #930 : make in-browser versions match ex-browser
...
Additionally, change the 'default' build to be a beta build
in the manifest, and give stable releases prettier version
numbers.
2019-05-27 12:59:25 +01:00
Oliver Blanthorn
ed8eaf733f
Fix #869 : make webpack error on errors
2019-05-27 12:36:36 +01:00
Oliver Blanthorn
879d3ba881
Fix #1594 : exclude all generated files
2019-05-27 12:34:05 +01:00
Oliver Blanthorn
c3dd7d216b
Merge pull request #1598 from tridactyl/dependabot/npm_and_yarn/rss-parser-3.7.1
...
build(deps): bump rss-parser from 3.7.0 to 3.7.1
2019-05-27 12:30:15 +01:00
Oliver Blanthorn
360705704b
Fix #1492 negated bool
2019-05-27 12:21:35 +01:00
Oliver Blanthorn
06152d4aa1
Merge pull request #1597 from tridactyl/dependabot/npm_and_yarn/ts-node-8.2.0
...
build(deps-dev): bump ts-node from 8.1.0 to 8.2.0
2019-05-27 12:15:46 +01:00
Oliver Blanthorn
81b5639084
Merge branch 'fix_taball_moving_to_wrong_tab'
2019-05-27 10:57:37 +01:00
dependabot-preview[bot]
d947fe82f6
build(deps): bump rss-parser from 3.7.0 to 3.7.1
...
Bumps [rss-parser](https://github.com/bobby-brennan/rss-parser ) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/bobby-brennan/rss-parser/releases )
- [Commits](https://github.com/bobby-brennan/rss-parser/compare/v3.7.0...v3.7.1 )
2019-05-27 09:53:42 +00:00
dependabot-preview[bot]
cdcdf9361e
build(deps-dev): bump ts-node from 8.1.0 to 8.2.0
...
Bumps [ts-node](https://github.com/TypeStrong/ts-node ) from 8.1.0 to 8.2.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases )
- [Commits](https://github.com/TypeStrong/ts-node/compare/v8.1.0...v8.2.0 )
2019-05-27 09:52:52 +00:00
Oliver Blanthorn
b61569c167
Merge pull request #1593 from saulrh/deprecated-browser-extension-getURL
...
browser.extension.getURL -> browser.runtime.getURL
2019-05-27 10:48:00 +01:00
Oliver Blanthorn
03f326cf40
Merge branch 'fix_pages_autofocusing_elements'
2019-05-27 10:47:34 +01:00
Oliver Blanthorn
db7eb12ca6
Make focus prevent loop more CPU friendly; uncouple from allowautofocus
2019-05-27 10:47:04 +01:00
glacambre
486958f7fc
excmds.ts: Fix taball moving to tab in wrong window
...
This commit fixes a bug reported by cmcaine. The issue was that when you
have multiple windows on multiple workspaces, taball wouldn't switch
focus to the right tab. This happened because taball relied on
browser.windows.update(id, {focused: true}) having switched to the right
window before calling idFromIndex. This didn't always work because
sometimes window managers will keep the current window focused.
2019-05-27 10:16:06 +02:00
Saul Reynolds-Haertle
031883e85c
browser.extension.getURL -> browser.runtime.getURL
...
Function is deprecated:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/extension/getURL
Replacement has essentially identical functionality:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/getURL
I'm sure that there's _some_ difference between the "path in install
directory" and "path relative to manifest.json", but I don't think
that we're going to be the ones running into it.
2019-05-26 22:03:34 -07:00
Oliver Blanthorn
787f519494
newtab: add dev diary
2019-05-27 00:04:14 +01:00
glacambre
fff155e142
content.ts: Fix pages autofocusing elements
...
Some pages manage to focus a hidden input field on page load. This puts
tridactyl in insert mode without the user being aware of it. This commit
actively protects users who set `allowautofocus` to "false" against
this.
Closes https://github.com/tridactyl/tridactyl/issues/1492
2019-05-27 00:40:58 +02:00
Oliver Blanthorn
05ca6fc68e
Fix #749 : remove 'new features' from private window new tab page
2019-05-26 23:30:04 +01:00
Oliver Blanthorn
92a0dbbc2a
Merge branch 'fix_scrolling_infinite_loops'
2019-05-26 17:57:30 +01:00
glacambre
b47d3928a1
scrolling.ts: fix infinite scrolling loops
...
Should close https://github.com/tridactyl/tridactyl/issues/1247
2019-05-26 18:45:53 +02:00
Colin Caine
9714dd0ce2
hinting: document pipe() and pipe_elements()
2019-05-26 11:46:51 +01:00
Colin Caine
d0a0e79e35
hinting: improve hint -f help
2019-05-26 11:46:51 +01:00
Vladimír Marek
966e0d0db4
Make always select single hint
...
Previously even if there was only one hit left it was subject to 'shouldSelect'
and 'different' screening.
2019-05-26 11:46:51 +01:00
Vladimír Marek
b7db91c95d
Support for hinting (selecting) buttons by their text
2019-05-26 11:46:51 +01:00
Vladimír Marek
11c26212d5
Implement text filtering of hints
2019-05-26 11:46:51 +01:00
Oliver Blanthorn
028ec390df
Merge pull request #1584 from vinceau/query-set
...
Add setting of URL queries if they don't already exist
2019-05-26 09:18:24 +01:00
Oliver Blanthorn
f1b0ba34c2
Merge pull request #1585 from thechunk/feature/native-get-profile-uncached-fix
...
native.ts: fix getProfileUncached when loading fallback default profile
2019-05-25 08:56:15 +01:00
Russell Cheung
908c598b3a
native.ts: fix getProfileUncached when loading fallback default profile
2019-05-25 12:06:37 +08:00
Vince Au
4fd6463203
Rename addQueryValue to setQueryValue
2019-05-25 09:08:44 +10:00
Vince Au
bea1852e1a
Add url query if it does not exist
2019-05-24 22:59:12 +10:00
Oliver Blanthorn
4a5158accc
release 1.15.0
2019-05-23 23:53:24 +01:00
Oliver Blanthorn
3e5142225a
Warn people about the new userChrome pref
2019-05-23 23:51:16 +01:00
Oliver Blanthorn
8eff08580b
Update changelog for 1.15.0
2019-05-23 23:44:23 +01:00
Oliver Blanthorn
6bc37a3d26
Merge branch 'numeric-prefix-repeat'
2019-05-23 22:36:22 +01:00
Oliver Blanthorn
1ee9e3ac23
Merge pull request #1579 from mphe/nonewtabnativemessenger
...
Fix native messenger in nonewtab
2019-05-23 13:55:49 +01:00
Marvin Ewald
86324b60f2
Fix native messenger in nonewtab
2019-05-23 14:18:30 +02:00
Oliver Blanthorn
258d17a8f6
Merge pull request #1577 from tridactyl/dependabot/npm_and_yarn/tslint-etc-1.5.3
...
build(deps-dev): bump tslint-etc from 1.5.2 to 1.5.3
2019-05-23 09:07:45 +01:00