Commit graph

1602 commits

Author SHA1 Message Date
Anton Vilhelm Ásgeirsson
d0ba76c6b9 - Mention where container color/icon is specified.
- containerremove now closes all tabs that were open in said container prior to deleting.
- helper commands in lib/container.ts are no longer exported.
2018-06-14 12:58:09 +00:00
Anton Vilhelm Ásgeirsson
75f7c4097e Refactoring. 2018-06-14 12:58:09 +00:00
Anton Vilhelm Ásgeirsson
408c33630a containerCreate documentation now lists exactly which colors and icons are allowed. 2018-06-14 12:58:09 +00:00
Anton Vilhelm Ásgeirsson
7939b0dc79 Sanity checking for tabopen -c while in an incognito window 2018-06-14 12:58:09 +00:00
Anton Vilhelm Ásgeirsson
aed20cc93a tabopen -c now has fuzzy matching on container names. Errors out if there are no matches or if the string partial is too ambiguous. 2018-06-14 12:58:08 +00:00
Anton Vilhelm Ásgeirsson
a700724de1 Refactored tabopen -c to take a container name
- it throws an error if no container with that name was found.
- chooses the first available container with that name (other addons don't force name uniqueness on containers)

Changed containerExists to take a name instead of an id for tabopen -c to work.

Various updates to src/lib/containers.ts
2018-06-14 12:58:08 +00:00
Anton Vilhelm Ásgeirsson
36cd9220c4 tidying up some lint 2018-06-14 12:58:08 +00:00
Anton
45b79cdf43 refactored containers 2018-06-14 12:58:08 +00:00
Anton
0d4dda786e Work on containerUpdate started
./lib/containers updates:
containerCreate: now treats (name, color, icon) as a unique constraint
containerUpdate: not working right now, really needs non positional arguments
containerGetAll: returns all containers (probably useful for completions later)
containerFromString: takes in string arguments and returns a pseudo ContextualIdentity object for validation purposes.
containerExists: returns a boolean, true if container exists or if the query fails.
2018-06-14 12:58:08 +00:00
Anton
8e15b7e411 more work on containers logic, specifically containerExists 2018-06-14 12:58:08 +00:00
Anton
9b91430c25 tabopen: takes an additional -c flag followed by a container id. 2018-06-14 12:58:08 +00:00
Anton
ebd415b289 added containerclose excmd 2018-06-14 12:58:08 +00:00
Anton
ca563720df Started work on implementing contextual identity api for tridactyl. 2018-06-14 12:58:08 +00:00
Oliver Blanthorn
3649f692d6
Nothing is more permanent than a temporary joke 2018-06-14 13:06:58 +01:00
Oliver Blanthorn
c7ef55aa72
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-fix_#586 2018-06-14 12:55:53 +01:00
Oliver Blanthorn
e4cca9318b
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-fix_#471 2018-06-14 12:48:34 +01:00
Oliver Blanthorn
9d1694a4de
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-fix_#632 2018-06-14 12:45:23 +01:00
Colin Caine
335e994349 Fix reload bug on :help when there's no hash
@glacambre, also note that you don't have to assign a promise to a
variable to await it.
2018-06-10 15:52:17 +01:00
glacambre
49a959e995
styling.ts: Fix theme classes being overwritten by the page 2018-06-09 11:35:33 +02:00
Oliver Blanthorn
71961aebb2
Fix #667: broken link in source help 2018-06-08 21:26:18 +01:00
Oliver Blanthorn
e7ad3b74e9
.tridactylrc: fix profiledir for real 2018-06-08 16:26:25 +01:00
Oliver Blanthorn
beb0b7d740
Fix gitignore for tar on buildbot 2018-06-08 15:26:57 +01:00
Oliver Blanthorn
1e06fd3ebb
release 1.13.0 2018-06-08 15:19:34 +01:00
Oliver Blanthorn
fdef447d1d
Update changelog for next release 2018-06-08 15:18:33 +01:00
Oliver Blanthorn
5777ba6c00
Make the pun in credits worse 2018-06-08 15:14:47 +01:00
Colin Caine
e710296d70 Fix authors not appearing when run non-interactively
git shortlog behaves differently when it's run non-interactively.
2018-06-08 13:34:41 +01:00
Colin Caine
5458f67a69 Add debugging to author script
Trying to find issue with buildbot
2018-06-08 13:19:03 +01:00
Oliver Blanthorn
d474197451
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-improve_documentation 2018-06-08 12:27:09 +01:00
Oliver Blanthorn
c63ff4b41a
Make nmaps harder to read on bad displays 2018-06-08 12:25:23 +01:00
Oliver Blanthorn
9f90deef5d
Merge pull request #659 from glacambre/fix_composite
excmds.ts: Fix composite
2018-06-08 08:35:35 +01:00
glacambre
63f7881ba0
excmds.ts: Fix composite 2018-06-08 09:04:02 +02:00
Oliver Blanthorn
20cb100ef4
Merge pull request #658 from gsbabil/master
Fix `native_main.py` URL in `win_install.ps1`
2018-06-08 07:55:48 +01:00
Babil Golam Sarwar
683c3dc086 Fix native_main.py URL in win_install.ps1 2018-06-08 14:54:23 +10:00
Oliver Blanthorn
8ac10c1727
Merge pull request #655 from glacambre/update_changelog
Update CHANGELOG.md
2018-06-07 21:13:51 +01:00
glacambre
5f6140cdb7
Update CHANGELOG.md 2018-06-07 21:26:31 +02:00
Oliver Blanthorn
690ecc92bd
Merge pull request #654 from glacambre/fix_precommit_hook
Fix precommit hook
2018-06-07 18:44:17 +01:00
glacambre
434e1263b8
pre-commit: Rename cachedJS -> cachedFiles 2018-06-07 15:13:34 +02:00
glacambre
f902576227
excmds.ts: Fix nativeopen leaving stray event listeners on failure 2018-06-07 13:17:41 +02:00
glacambre
31805b7c7f
Update documentation, mention ':help key' everywhere 2018-06-07 12:52:11 +02:00
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