Commit graph

73 commits

Author SHA1 Message Date
Oliver Blanthorn
e9f6afeb9c
Add toggle for mode indicator with set modeindicator true|false 2018-04-23 21:28:46 +01:00
Timo Kaufmann
a312948f1e
Alias h to help 2018-04-23 11:56:05 +02: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
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
Oliver Blanthorn
2c564f2b34
Add a handful of binds from Vimperator 2018-04-16 11:45:29 +01:00
Colin Caine
f2fad1cc04 Fix buffer switch bind 2018-04-16 00:55:38 +01:00
Colin Caine
4858432401 Add some binds with modifiers 2018-04-16 00:17:41 +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
13932f94a2
Fix tutorial build process and alias 2018-04-14 14:03:54 +01:00
Colin Caine
1cc76c3bb4 Remove bad alias 2018-04-14 11:58:19 +01:00
glacambre
3e653dc2f1
config.ts: Add comments to 'allowautofocus' setting 2018-04-14 11:13:07 +02:00
glacambre
cfb6484f30
{config,dom}.ts: Turn 'allowautofocus' setting into a string 2018-04-14 11:12:12 +02: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
f0c8ada4cb
Fix #276: ]] on Hacker News 2018-04-13 12:37:43 +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
glacambre
ce7be35e73
{config,dom}.ts: Implement focus() which moves to end of focused inputs 2018-04-02 14:53:09 +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
Oliver Blanthorn
682719cf97
Change ^ to be more like Ctrl-^ 2018-03-18 15:18:00 +00:00
Oliver Blanthorn
972e69ad9c
Find mode tidied up for intrepid explorers. 2018-03-18 15:08:09 +00:00
Oliver Blanthorn
f274a49bee
Improve find performance
Still very slow on some pages such as
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object.
2018-03-18 13:11:11 +00:00
Oliver Blanthorn
f2244ee554
Sketch out find command using mark.js 2018-03-18 13:10:17 +00:00
glacambre
5be209f100
Implement tridactyl-viewsource
The problem with the current :viewsource is that it loads a page in
which Tridactyl is not loaded. This commit fixes this by enabling a new
setting, "viewsource" which can be set to either "default" or
"tridactyl". If "tridactyl" is selected, then :viewsource will load the
source code of the HTML page in the current page instead of redirecting
the user to the view-source:// version of the page.
2018-03-17 12:42:03 +01:00
Oliver Blanthorn
b7a833fcf5
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-fix_#325 2018-03-13 12:46:43 +00:00
Oliver Blanthorn
ddbc505ca5
Rename gistyle to gimode, default to firefox, version to configversion 2018-03-13 12:46:31 +00:00
Colin Caine
6afda3b632 Rewrite tabopen and openInNewTab
Fixes #342 and a bug where I used id rather than index.
2018-03-12 22:42:51 +00:00
glacambre
9247aeec84
Merge branch 'master' into fix_#325 2018-03-10 15:50:11 +01:00
glacambre
234e422960
{config,excmd}.ts: Rename vimium-gi->gistyle, change vals to nextinput/default 2018-03-10 15:42:09 +01:00
glacambre
77cf277ab0
config.ts: Add config updater from version 0.0 to 1.0 2018-03-10 14:40:23 +01:00
glacambre
d26e44d06b
config.ts: Implement config-updating mechanism. 2018-03-10 14:18:09 +01:00
Fabian Furger
7ceaf84358 Apply theme to command line
Use dark theme from
https://gist.github.com/KrazyCavin/cebb807e961a4a32bb04aa0c1757bab8
Relates to #230.
2018-03-08 21:57:21 +00:00
Colin Caine
e122caa326 Be more careful with truthy values 2018-02-19 16:17:57 +00:00
Colin Caine
58d38a9f70 Support changing followpage pattern 2018-02-18 18:23:40 +00:00
Saul Reynolds-Haertle
282766ed1e Add vimperator-reflow hint filter mode
This mode works like vimperator-mode, but additionally renames hints
as they're filtered.
2018-02-13 23:08:53 +00:00
Saul Reynolds-Haertle
30d6dd1c2f Add hintmode config and new "vimperator" hinting mode
hintmode = "simple" is the default hinting mode, naming hints using
the hintchars configuration. It is the current tridactyl behavior and
is preserved unchanged.

hintmode = "vimperator" is a new hinting mode that allows the user to
filter hints using non-hintchar :alnum: characters. Hints with targets
whose html does not contain these characters as a subsequence (not
contiguous) will be filtered out.
2018-02-13 23:08:53 +00:00
Oliver Blanthorn
a1cc6ade8f
Add event type checking to autocmd, change default autocmd 2018-02-02 14:53:58 +00:00
Oliver Blanthorn
5b6b473af3
Fix getAsync, add au alias, fix loadaucmds 2018-02-02 14:12:47 +00:00
Colin Caine
083600750b Fix bug typo in setDeepProperty 2018-02-02 13:11:23 +00:00
Colin Caine
ca19b87807 Improve config API
- set, unset, get now all support an arbitrary depth of keys
 - set has a less confusing argument order
 - getAsync added: it will sleep until the config is read from disk for
   the first time

Config isn't really fit for purpose. Should consider custom objects (for
recording type, defaults, etc) and maybe decoupling internal
representation from UI.

Found a couple of bugs as well:

   excmds.ts: set() Could write a string to the config where the config
              expected an array (Fixes #275)
   config.ts: If both sync and local storage are in use the behaviour is
              not intuitive.
2018-02-01 23:45:45 +00:00
Oliver Blanthorn
5f9bd063c2
First attempt at aucmds. Main issue - config does not seem to load userconfig, only defaults 2018-01-31 19:51:08 +00:00
Colin Caine
0693cdc45d Merge remote-tracking branch 'origin/master' into HEAD 2018-01-28 15:04:47 +00:00
Oliver Blanthorn
a351d3d285
Fix #262: delete exemplar binding 2017-12-31 17:26:00 +00:00
Isaac Khor
2441fba8c0 Merge branch 'master' into i236-common-ex-aliases 2017-12-31 16:57:57 +08:00
Isaac Khor
29d58cd571 Change from 'alias' to 'command' and access config options differently 2017-12-31 16:53:35 +08:00
Colin Caine
f398895dce logging: introduce convenience functions 2017-12-29 23:58:23 +00:00
John Beard
baefd09973 Allow levelled logging for debug
This is useful for suppressing spew, but still allowing easy debugging
when needed, without rebuilding.

To use, use excmd:

     setlogginglevel <prefix> <level>

Where the level is one of:

    - never:  never log
    - error
    - warning
    - info
    - debug:  most verbose

Output is directed to console methods "error", "warn", "log", "debug".
2017-12-29 18:57:16 +00:00
Isaac Khor
baf078572f Merge remote-tracking branch 'upstream/master' into i236-common-ex-aliases 2017-12-27 18:19:53 +08:00
Isaac Khor
e1106181ae Add basic aliases (mostly copied from pentadactyl and vim) to config 2017-12-27 18:03:13 +08:00