Commit graph

591 commits

Author SHA1 Message Date
Colin Caine
53e51497e7 logging: rewrite in OOP style 2017-12-30 00:46:26 +00:00
Colin Caine
f398895dce logging: introduce convenience functions 2017-12-29 23:58:23 +00:00
Colin Caine
426ffe6be8 Throw exceptions rather than logging
Some error conditions were being logged when they should throw
exceptions. Some uninteresting things were being logged.
2017-12-29 23:56:24 +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
John Beard
c493c06e55 Add SVG logo - useful for higher resolutions and inline use 2017-12-29 18:27:05 +00:00
Colin Caine
33f4ade9a9 excmds: remove redundant conversion 2017-12-28 18:07:06 +00:00
Fabian Furger
13fcbd7890 Support %s magic string for search providers 2017-12-28 18:06:56 +00:00
Colin Caine
b2dcbc7ff3 completions: improve buffer index logic 2017-12-28 17:07:07 +00:00
Colin Caine
5fe6068b4a url_util: Keep trailing slashes
And don't remove repeated slashes until they're at the end.
2017-12-27 14:37:01 +00:00
Oliver Blanthorn
8476017b60
Add missing link to readme 2017-12-27 10:55:40 +00:00
Colin Caine
df9451e83e url_util: Fix #256. 2017-12-26 13:56:35 +00:00
Oliver Blanthorn
e4231307ce
Merge pull request #251 from alexconst/clarify_readme
Make readme a bit clearer
2017-12-24 14:43:29 +00:00
Alexandre Constantino
6dfc4057df
Indent FAQ section 2017-12-24 13:08:19 +00:00
Alexandre Constantino
9017a10050
Make status of key modifiers clearer 2017-12-24 13:07:36 +00:00
Colin Caine
c4ffd2143c excmd: document hintsave 2017-12-24 11:42:28 +00:00
John Beard
fde956df53 Add save link/img hint submode (;s, ;S, ;a, ;A)
This adds the ability to save link targets or images. The save location
can be default, or the save as dialog can be invoked.

Somewhat sensible default filenames are provided.

Data URLs are also supported (though they need quite a bit of massaging
to get past the WebExt security limitations). Specificially, they need
to be round-tripped though a Blob, and must be saved from the background
context.
2017-12-24 11:20:26 +00:00
Isaac Khor
d3e248391b Fix issue 247 - readme links (#248)
Fix #247: readme issue links
2017-12-24 09:11:01 +00:00
Oliver Blanthorn
fb74ad460f
Improve parent function comment 2017-12-22 12:30:00 +00:00
Oliver Blanthorn
0f6d96c0ad
Merge branch 'master' of github.com:cmcaine/tridactyl into antonva-master 2017-12-22 12:26:33 +00:00
Oliver Blanthorn
8bc4239138
Fix #228: broken link to keybinds in help 2017-12-22 11:14:58 +00:00
Oliver Blanthorn
d951e7751c
Finalise FAQ: fix #232 2017-12-22 11:04:06 +00:00
Oliver Blanthorn
a8e5bdc9f8
Expand FAQ, add issue numbers 2017-12-22 10:58:46 +00:00
Oliver Blanthorn
11972e41d1
WIP FAQ 2017-12-21 22:27:22 +00:00
Oliver Blanthorn
6de196a2c1
release 1.7.3 2017-12-21 22:06:04 +00:00
Oliver Blanthorn
f63c8a599d
release 1.7.2 2017-12-21 21:51:21 +00:00
Oliver Blanthorn
16816d1353
release 1.7.1 2017-12-20 11:39:36 +00:00
Anton
022f462396 addressing issue #231, urlparent now accepts a count. 2017-12-19 18:47:34 +00:00
Oliver Blanthorn
d59a6fc971
Merge pull request #238 from johnbeard/hintkill
Add hint kill submode (;k)
2017-12-17 21:36:28 +00:00
John Beard
080d6df9a3 Add hint kill submode (;k)
This submode deletes the selected hinted item. Useful for removing
overlay blockers or even unwanted/annoying content.
2017-12-17 17:39:54 +00:00
Colin Caine
c2c5d2b5ef completions: passthrough # in buffercompletion
Fix @gsbabil's complaint in #189.
2017-12-11 13:51:55 +00:00
Colin Caine
cdf53966c0 mode change: fix #176
Thanks @Koushien
2017-12-11 13:26:42 +00:00
Koushien
850104e0fe Implement ^,$ navigating to 0%,100% in x-direction
This is made possible by also allowing the second
argument to be "x" or "y". We supply "y" as the
default to retain the current, more commonly
desired behavior.
2017-12-11 01:19:20 +00:00
Oliver Blanthorn
6e9bf93665
Merge branch 'master' of github.com:cmcaine/tridactyl into azuwis-master 2017-12-09 15:44:54 +00:00
Oliver Blanthorn
8c32dcb121
Use tab ID even if buffer has a trailing space (#223) 2017-12-09 15:34:12 +00:00
Oliver Blanthorn
baaa4cef61
Support multiple URLs for quickmarks 2017-12-08 11:56:21 +00:00
Zhong Jianxin
f4d4f8f74f Blacklist default newtab url from history completions 2017-12-07 10:03:25 +08:00
glacambre
91d8bd1e39 src/controller.ts: Use func instead of ex_str to check if command is "repeat" 2017-12-06 16:36:18 +00:00
glacambre
dab97fea10 src/{controller,excmds}.ts: Fix endless repeat, implement more intuitive behavior. 2017-12-06 16:31:53 +00:00
glacambre
e61358b63f src/{config,controller,excmds,state}.ts: Implement dot repeat. 2017-12-06 16:31:53 +00:00
Oliver Blanthorn
001fb17bd2
Fix set newtab failing to set newtab 2017-12-06 14:59:00 +00:00
Oliver Blanthorn
f38e75c62a
Merge pull request #199 from Skillmon/extended_amo
Improve the appearance on AMO
2017-12-06 12:47:20 +00:00
Oliver Blanthorn
469e8a6228
Merge pull request #211 from peff/quit-command
excmds: add `q`, `qa`, and `quit` synonyms
2017-12-06 10:58:51 +00:00
Jeff King
65ba4c03e4 excmds: add q, qa, and quit synonyms
Other vim-likes map `q` and `quit` to `tabclose`, so let's
do the same to appease their muscle memory.

While we're at it, we can add `qa` as a shortcut for `qall`
(vim also supports this shorthand).
2017-12-06 05:37:18 -05:00
Colin Caine
dcc816ff86 Clean up inputmode
Code quality, introduce config option.
2017-12-05 22:13:08 +00:00
Zhong Jianxin
01221f3052 Add inputmode
- Add `focusinput -n` and `focusinput -N`
- Press `gi` to focus input and enter inputmode
- When in inputmode, `Tab` to focus input after last focussed one, `Shift+Tab`
  to focus input before last focussed one
2017-12-05 22:12:34 +00:00
Colin Caine
79a2f5ce54 config: Make unset take effect on loaded pages
Previously required a page reload.
2017-12-05 22:09:49 +00:00
Jonathan Spratte
521d04c07e shift-esc and :help added 2017-12-05 14:17:57 +01:00
Jonathan Spratte
148f71eb85 better buffers-screenshots 2017-12-05 01:20:08 +01:00
Jonathan Spratte
f51ce53ac0 attractive(?) AMO text; new hintmode screenshot 2017-12-04 23:40:54 +01:00
Colin Caine
4ed2031d69 Small readme updates
Change to ircs:// link
Mention channels on newtab
2017-12-04 15:41:48 +00:00