Commit graph

276 commits

Author SHA1 Message Date
Oliver Blanthorn
d8af755e83
Suppress some errors when checking if native version is installed so that helpful ones can be displayed 2018-04-26 19:35:41 +01:00
Oliver Blanthorn
2f87e338b0
Fix #437: Improve native messenger documentation. 2018-04-26 18:24:34 +01:00
Oliver Blanthorn
a687ac95d8
Stop native messenger being updated from the internet on web-ext reload 2018-04-26 12:32:10 +01:00
Colin Caine
e2b8b95b23 Fix :open <empty string>. Fixes #421 2018-04-26 09:10:25 +01:00
Oliver Blanthorn
dca9039883
Give up on Windows support for now 2018-04-25 20:43:43 +01:00
Oliver Blanthorn
16cce26daa
Update native messenger with Tridactyl 2018-04-25 20:43:43 +01:00
Oliver Blanthorn
2dcf9dabaa
Add interactive arugments to some native commands 2018-04-25 20:43:43 +01:00
Oliver Blanthorn
26475f5565
Make native update script user configurable, give feedback 2018-04-25 20:43:43 +01:00
Oliver Blanthorn
528c931971
Implement pipe support. 2018-04-25 20:43:42 +01:00
Oliver Blanthorn
3bbf2767f1
Generate the temporary file for $EDITOR in python
This should make multi-platform support easier and aid security (only
the user wot made the file can read it).
2018-04-25 20:43:42 +01:00
Oliver Blanthorn
a8cc9d454d
Add native version checker and nativeopen
Adds semver-compare runtime dependency: might be worth statically
linking it since it's so simple.
2018-04-25 20:43:42 +01:00
Oliver Blanthorn
0afd9dfffe
Add exemplar exclaim binding and improve docs 2018-04-25 20:43:41 +01:00
Oliver Blanthorn
890371b402
Add hint -W [exstr] to execute exstr on hint's href 2018-04-25 20:43:41 +01:00
Colin Caine
ec13fa5dec
Native messenger code review 2018-04-25 20:43:41 +01:00
Oliver Blanthorn
5f68f9428d
Install native messenger on build; edit text in external editor
Currently we only support gVim and Linux, but `winword.exe` support is
theoretically possible.
2018-04-25 20:43:13 +01:00
John Beard
31958ed710
Merge johnnbeard's and IsaacKhor's native messenger
(Credited to John, merge by Olie)
2018-04-25 20:43:13 +01:00
glacambre
aa81669cfb
excmds.ts: Make recursiveScroll faster
It turns out that getClientRects() calls can be very expensive.
Replacing them with checking node attribute seems to make scrolling
faster on all websites reported as slow in
https://github.com/cmcaine/tridactyl/issues/395
while also not breaking scrolling on any of the websites mentionned in
https://github.com/cmcaine/tridactyl/pull/378 .

This fixes https://github.com/cmcaine/tridactyl/issues/395 .
This also accidentally fixes
https://github.com/cmcaine/tridactyl/issues/122 (scrolling multiple
elements at the same time).
2018-04-25 07:57:17 +02:00
glacambre
4e2ca3a73b
excmds.ts: make scrollto() call recursiveScroll when failing to scroll
Scrollto can fail to scroll on some pages such as the ones created by
PDF.js. When this happens, and if the user is asking to go to the very
top or very bottom of the page, try using recursiveScroll instead.

It's tempting to skip the window.scrollTo call and just use
recursiveScroll no matter what but recursiveScroll doesn't always work
either. For example, window.scrollTo can take the user to the bottom of
the page on mozilla's doc while recursiveScroll cannot.

This fixes https://github.com/cmcaine/tridactyl/issues/382
2018-04-24 21:07:39 +01:00
Oliver Blanthorn
47409e4fd2
Make Logging.Logger.error print an error to the command line 2018-04-23 15:09:20 +01:00
Oliver Blanthorn
786261d019
Fix #337: Make composite and ex-parser more sequential
Allows one to bind `composite tabprev | sleep 100 | tabclose #` and have
the command work; `composite tabclose | tabprev` also works but looks a
little janky. The sleep is required in the first command so that the
value of `#` has time to update.
2018-04-22 17:40:55 +01:00
Oliver Blanthorn
fad7851829
Fix #394: rename generated source .name.generated.ext 2018-04-22 17:15:40 +01:00
Oliver Blanthorn
0ee2b40853
Add hint -W [exstr] to execute exstr on hint's href 2018-04-20 19:37:45 +01:00
Oliver Blanthorn
4e77b65123
Add jumplist for inputs bound to g;
Currently repeated use of `g;` will only take you to the most recently
used input. Cycling through recently used inputs is a WIP.
2018-04-20 17:05:15 +01:00
Colin Caine
4c7efaaef5 Stop treating "std::map" or "Error: foo" as URIs.
Forbid unusual URIs in :open, etc. Fix #352.

```
If the uri looks like it might contain a schema and a domain, try url()
test for a non-whitespace, non-colon character after the colon to avoid
false positives like "error: can't reticulate spline" and "std::map".

These heuristics mean that very unusual URIs will be coerced to
something else by this function.
if (/^[a-zA-Z0-9+.-]+:[^\s:]/.test(maybeURI)) {
```
2018-04-19 17:35:05 +01:00
Colin Caine
a11d7704a8 Special case 'about:blank' and '' in :open 2018-04-19 16:35:10 +01:00
Oliver Blanthorn
4edd8f640b
Add support to bmark for placing bookmarks in folders 2018-04-16 23:13:12 +01:00
Oliver Blanthorn
af06c9ee91
Improve bind documentation 2018-04-16 12:45:40 +01:00
Colin Caine
c27d6d86ff Add background flag to tabopen
Fix #396
2018-04-16 11:26:16 +01:00
Oliver Blanthorn
d59f890a32
Fix typo 2018-04-15 19:08:42 +01:00
Oliver Blanthorn
f138374a87
Add viewconfig command 2018-04-15 18:21:46 +01:00
Oliver Blanthorn
dd2020913c
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-fix_#266 2018-04-15 15:32:31 +01:00
Oliver Blanthorn
2d9d4d659a
Fix sanitise help 2018-04-15 14:11:00 +01:00
Colin Caine
498dc2403d Open a new tab for :help more predictably 2018-04-15 11:07:48 +01:00
Oliver Blanthorn
061178649e
Show tutorial on first install of Tridactyl 2018-04-14 22:37:16 +01:00
Oliver Blanthorn
252158791c
Update docstrings; hide internal function 2018-04-14 22:14:16 +01:00
glacambre
0e128b9ef8
{config,content,dom,excmds}.ts: Implement autofocus-prevention mechanism 2018-04-14 11:10:42 +02:00
Oliver Blanthorn
670c5be323
Start tutorial. Currently does not run in extension 2018-04-13 23:30:53 +01:00
Oliver Blanthorn
095ce771ea
Formatting: run all typescript through prettier 2018-04-13 19:28:03 +01:00
Oliver Blanthorn
e441acb0fe
Improve help on excmds.ts and show new tab page on first run 2018-04-12 22:33:10 +01:00
Oliver Blanthorn
cc193a4800
Merge branch 'master' of github.com:cmcaine/tridactyl into IsaacKhor-i341-fix-tabclose 2018-04-12 13:32:58 +01:00
Oliver Blanthorn
3fbad9e693
Support #/% index for tabs everywhere 2018-04-12 13:17:17 +01:00
Oliver Blanthorn
ac3accbc45
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-fix_scrolling_again 2018-04-12 12:14:56 +01:00
glacambre
15c8c47015
excmds.ts: Make recursiveScroll take frames into account 2018-04-12 00:02:19 +02:00
glacambre
21fe018110
excmds.ts: Try to optimize recursiveScroll, fix it for some sites 2018-04-11 23:49:36 +02:00
Oliver Blanthorn
a59b824221
Fix #370: add clipboard yanktitle|yankmd 2018-04-11 19:05:30 +01:00
Oliver Blanthorn
647ea742c1
Add fullscreen command
Hold `.` after running for extra fun.
2018-04-11 18:19:29 +01:00
Oliver Blanthorn
8f5e0c0781
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-fix_scrolling 2018-04-11 17:25:42 +01:00
glacambre
dc6543719c
excmds.ts: Make scrollline recursive, fix recursiveScroll 2018-04-11 08:23:11 +02:00
glacambre
ddc83c7c37
{excmds,hinting}.ts: use DOM.focus() instead of elem.focus() 2018-04-02 14:53:13 +02:00
Oliver Blanthorn
442e99c16e
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-impl_viewsource 2018-04-02 13:32:56 +01:00