Commit graph

988 commits

Author SHA1 Message Date
Oliver Blanthorn
347cb7d07f
Merge pull request #2417 from tridactyl/scroll_focused_element
Fix #1805: preferentially scroll focused elements
2020-05-25 21:30:13 +01:00
Oliver Blanthorn
e935477c03
Merge branch 'recontain' 2020-05-25 11:25:03 +01:00
Oliver Blanthorn
12091e85f3
Fix container fuzzy matching 2020-05-25 11:23:15 +01:00
Oliver Blanthorn
e0ed570a99
Make ;; hint mode change scrolling element 2020-05-25 10:16:17 +01:00
Tanath
ced64e8fb6
Explain that RC files are optional 2020-05-24 16:34:03 +01:00
Oliver Blanthorn
3e0ee8322a
Make else implicit
This is just a stylistic choice. I prefer "guards" over if/else in
general as it makes it very clear that the following code is only
relevant if the input passes the guard.
2020-05-24 14:28:49 +01:00
Dranaxel
1be6897200 fixing indents 2020-05-24 14:41:37 +02:00
Dranaxel
3c73886b3f using bovine3dom suggestion / adding aliases 2020-05-24 12:24:01 +02:00
Dranaxel
2d8def8b81
Update src/excmds.ts
typed tabcloseallto function argument

Co-authored-by: Oliver Blanthorn <oliver.blanthorn@manchester.ac.uk>
2020-05-22 20:59:29 +02:00
Alexandre
e75eca6f08 refactoring close all tabs functions 2020-05-22 19:52:05 +02:00
Oliver Blanthorn
d35c1f79b2 Fix #2382: typo in winclose help 2020-05-16 08:15:55 +01:00
Oliver Blanthorn
3d99cb6025
Merge branch 'nmode' 2020-05-09 12:15:00 +01:00
Oliver Blanthorn
7e4da9c3ef
Merge branch 'state_in_bg_only' 2020-05-09 10:58:26 +01:00
Torsten Schmits
194bca6fea remove superfluous word in nmode doc 2020-05-08 21:11:21 +02:00
Torsten Schmits
271d6c4640 nmode: mention in doc that unbound keys are counted 2020-05-08 21:08:01 +02:00
Torsten Schmits
3f70e1886b tweak docs for nmode 2020-05-08 20:19:29 +02:00
Oliver Blanthorn
f45a2fe141
Move state storage to background 2020-05-08 17:19:23 +01:00
Oliver Blanthorn
24b6006f80
Add nmode mode
Useful for sending keys to the page in normal mode
and sending keys to Tridactyl in ignore mode
2020-05-08 15:05:51 +01:00
glacambre
f462802e2f
excmds.ts: implement tabqueue 2020-04-11 11:51:50 +02:00
Oliver Blanthorn
ead0d0b914
Merge pull request #2234 from saulrh/parser_keys_on_exstr
Return keys=[] from parser so things don't blow up if exstr is ""
2020-03-20 10:33:51 +00:00
Oliver Blanthorn
7802c9a83c
Fix unbindurl: set unbound key to null 2020-03-20 10:33:34 +00:00
Ingo Karkat
b755391aed Improve the documented editorcmd for Vim
Problems with the original:
- Addressing the column with "l" assumes that "G" positions the cursor on the first column. But the default behavior already skips leading indent (so is wrong when there's leading whitespace), and with ":set nostartofline", the current column actually is kept (which completely and randomly messes up the column addressing).
- ":normal" without ! is affected by mappings; users may have tweaked the "G" and "l" (or in the worst case completely changed the behavior, e.g. for use with a different keyboard layout).

This change makes the mapping immune to mappings (with ":normal!") and uses the "|" command (which uses virtual column addressing independent of the current column or "G" behavior) instead of "c".
Additionally, "zv" makes the current line visible should it be obscured by folding. (Vim may detect a filetype and automatically enable folding.)
Instead of -c <cmd>, the shorter +<cmd> form is used. This is just a cosmetic change. Using just a single argument and avoiding any whitespace within it may prevent command-line argument parsing issues.
2020-03-17 20:18:54 +01:00
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