Commit graph

1563 commits

Author SHA1 Message Date
glacambre
37785508e1
typedoc: Make .TridactylSetting class stand out a bit 2018-06-07 11:56:09 +02:00
Oliver Blanthorn
db0a17d02f
Merge pull request #633 from glacambre/hide_modeindicator
content.{ts,css}: Make modeindicator disappear on hover
2018-06-07 10:25:13 +01:00
Oliver Blanthorn
f670f3a7e9
Merge pull request #641 from glacambre/fix_pretty
scripts/{pretty,common}: Fix pretty failing on multiple files
2018-06-07 10:20:06 +01:00
Oliver Blanthorn
56023ee049
Merge pull request #652 from gsbabil/gsbabil/fix-npm-audit-warnings
Fix security audit warnings from NPM
2018-06-07 10:09:23 +01:00
Babil Golam Sarwar
e1e85676dd Fix security audit warnings from NPM 2018-06-07 15:28:54 +10:00
glacambre
acc78b74ca
dom.ts: Fix error when focusing email input elements 2018-06-05 22:13:07 +02:00
Oliver Blanthorn
70b09fb357
Merge pull request #647 from glacambre/fix_#624
finding.ts: Fix error message popping up when pattern is not found
2018-06-05 20:20:25 +01:00
glacambre
b9ff5703a2
{excmds,controller}.ts: Fix race condition in state.mode synchronization
This fixes https://github.com/cmcaine/tridactyl/issues/613.
This was a really fun bug. What happened was this:
- First, the content script set state.mode to "hint", which was then
  synchronized
- The event listener in the background script noticed the update and set
  state.mode to "hint" in the background script
- Then, the content script translated the hint selection into an excmd
  that needed to be executed in the background script and sent said
  command to the controller, which lives in the background script
- The content script then set state.mode to "normal"
- The background script executed the command and saved it in
  state.last_ex_str, which was then synchronized
- The event listener in the content script noticed the update and set
  last_ex_str to the last executed str and "state.mode" to "hint"

So basically, the problem was that the background script didn't notice
the state.mode update right after it happened. I fixed this by moving
last_ex_str out of "state" since it doesn't need to be synchronized with
the content script.

This means that the same kind of race condition can still happen. I'm
not sure how to fix this. We could just kill state completely and
instead have state be updated through message passing, but this probably
wouldn't be very ergonomic.
Another solution, the one envisioned for Tridactylv2, is to move to the
content script entirely. This is probably the best option.
2018-06-05 21:13:29 +02:00
glacambre
7b7363aa6a
finding.ts: Fix error message popping up when pattern is not found 2018-06-05 19:56:22 +02:00
Oliver Blanthorn
46f1a3f830
Merge pull request #645 from MoSal/master
hinting: Add header, footer, and nav to killable selectors
2018-06-05 14:32:07 +01:00
Mohammad AlSaleh
a5d25f4abc hinting: Add header, footer, and nav to killable selectors
Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2018-06-05 15:18:46 +03:00
Oliver Blanthorn
5cd3f94c03
Merge pull request #644 from glacambre/update_faq
readme.md: Update FAQ
2018-06-05 08:44:36 +01:00
glacambre
a69be0391f
readme.md: Update FAQ 2018-06-05 06:25:21 +02:00
glacambre
a805f254c9
excmds.ts: Update comments for fillinput/editor 2018-06-04 18:51:56 +02:00
glacambre
d0df64ad15
{excmds,dom}.ts: Fix external editor updating the wrong field 2018-06-04 07:10:23 +02:00
glacambre
8435155d86
excmds.ts: Make searching for key bindings work 2018-06-03 17:37:17 +02:00
glacambre
fd7701c21d
excmds.ts: Make :help jump to aliases of aliases if needed 2018-06-03 17:32:04 +02:00
glacambre
a465bf9428
help.ts,main.css: Add user bindings to help page 2018-06-03 17:21:11 +02:00
glacambre
d89311cf17
help.ts: Hide empty alias divs 2018-06-03 16:38:03 +02:00
glacambre
54faf82428
scripts/{pretty,common}: Fix pretty failing on multiple files
When trying to run scripts/pretty with multiple ugly files staged, the
for loop would treat two space-separated file names as a single file
name. This prevented pretty from working on my machine.

I fixed this issue by making cachedJS() (renamed to cachedFiles since it
returns more than js files) return file names as a newline-separated
list and using IFS=$'\n' to split the filenames on this character.
2018-06-03 16:08:45 +02:00
glacambre
54e980499c
Add alias information to the :help page. 2018-06-03 15:04:50 +02:00
glacambre
99b2b6922a
excmds.ts: Document a few functions, hide a few others 2018-06-03 11:08:45 +02:00
glacambre
06f27cf243
excmds.ts: Make :help jump to aliased command if needed 2018-06-03 10:21:05 +02:00
glacambre
06215846fe
excmds.ts: Fix jumplist breaking help
Before this patch, navigating to a new page made Tridactyl scroll to its
very top. This broke jumping to the definition of a command using `:help
commandname`.
2018-06-03 10:06:51 +02:00
glacambre
22188e9eb0
excmds.ts: Make nativeopen behave like tabopen 2018-06-02 20:08:46 +02:00
glacambre
fa34a42a54
{config,excmds}.ts: Add DocEnd autocommand 2018-06-02 05:35:48 +02:00
Oliver Blanthorn
a9bb149bfa
Try to let multiple autocommands run per event 2018-06-01 09:57:40 +01:00
Oliver Blanthorn
80607484d0
Add blacklistadd helper command 2018-06-01 09:50:24 +01:00
glacambre
cd5078e9b6
Add TabEnter and TabLeft autocommands 2018-06-01 08:39:43 +02:00
glacambre
dcb6620240
content.{ts,css}: Make modeindicator disappear on hover
This fixes https://github.com/cmcaine/tridactyl/issues/565
I chose to append a TridactylInvisible class instead of setting the
modeindicator setting to false or manually removing the element from the
DOM because this seemed more robust (e.g. when "modeindicator" is set to
true, you expect it to stay set to true and for the element to exist
within the DOM).
2018-05-31 21:47:06 +02:00
Oliver Blanthorn
7fdb0afec4
Fix profiledir escaping in JS 2018-05-30 12:11:56 +01:00
Oliver Blanthorn
487cb5a4f1
Fix os check in tridactylrc, add profile dir 2018-05-30 11:56:20 +01:00
Oliver Blanthorn
999192b73d
Make Windows profile error more explicit 2018-05-30 11:49:47 +01:00
Oliver Blanthorn
ce019627ed
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-make_scrolling_faster 2018-05-30 11:28:46 +01:00
Oliver Blanthorn
0567c55e53
Merge branch 'master' of github.com:cmcaine/tridactyl into gsbabil-gsbabil/fix-restart-command-on-windows 2018-05-30 11:25:17 +01:00
Oliver Blanthorn
173e4fe896
Make gen_native_message executable 2018-05-30 11:25:05 +01:00
glacambre
ec0d783d16
scrolling.ts: Don't fetch preferences 2018-05-30 05:24:55 +02:00
Oliver Blanthorn
13080a9cf2
Set smoothscroll false until 'we can figure out what the hell is going on' 2018-05-29 20:38:12 +01:00
Oliver Blanthorn
e745a17b52
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-make_scrolling_faster 2018-05-29 20:34:40 +01:00
glacambre
8137cd5418
scrolling.ts: Cache various scrolling-related properties 2018-05-29 20:43:31 +02:00
glacambre
e249ce8fe9
excmds.ts: Cache lineHeight 2018-05-29 19:02:46 +02:00
Oliver Blanthorn
2efce9e1cf
Merge pull request #625 from gsbabil/gsbabil/add-appveyor-windows-build-support
Add additional fixes, clean-ups etc. to AppVeyor Windows build support
2018-05-29 12:58:05 +01:00
Babil Golam Sarwar
fd577f2a02 Add version numbers to Pip packages 2018-05-29 21:35:38 +10:00
Oliver Blanthorn
75e4f98d38
Stop newtab redirect from adding a page to history 2018-05-29 11:27:45 +01:00
Oliver Blanthorn
9e28583bbc
Prevent urlmodify from adding page to history 2018-05-29 11:14:50 +01:00
Babil Golam Sarwar
aba9ccd9de Add test_script section and some clean-ups 2018-05-29 19:08:11 +10:00
Babil Golam Sarwar
e3439a9af8 Enforce Pip installs under Python 3.6 2018-05-29 16:50:33 +10:00
Babil Golam Sarwar
1f7c042d64 Merge branch 'master' into gsbabil/fix-restart-command-on-windows 2018-05-29 12:38:03 +10:00
Babil Golam Sarwar
75f21da384 Add consistent Python formatting 2018-05-29 12:08:08 +10:00
Oliver Blanthorn
61a01efeab
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-js_pipes 2018-05-28 21:45:38 +01:00