Commit graph

449 commits

Author SHA1 Message Date
Oliver Blanthorn
1d38c8a3e1
Merge branch 'master' of github.com:cmcaine/tridactyl into jcrowgey-add_feedback_to_yank 2018-07-01 20:25:49 +01:00
Oliver Blanthorn
d716b48c85
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-notification_mechanism 2018-07-01 20:24:09 +01:00
Oliver Blanthorn
92d170c22f
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-remove_l 2018-07-01 20:15:57 +01:00
Oliver Blanthorn
b46d85d259
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-fix_#613 2018-07-01 20:10:38 +01:00
glacambre
95a1ae29b6
Make sure bind/unbind use the same binding format 2018-07-01 18:24:37 +02:00
glacambre
8211a435e4
fillcmdline_tmp: Don't close the cmdline if its content changed 2018-07-01 18:17:35 +02:00
glacambre
52f8cd7060
Implement notification mechanism that does not steal focus 2018-06-30 16:59:10 +02:00
glacambre
f041dbd25b
{excmds,webext,messaging}.ts: Remove l() promise logger
When a promise throws an error in l(), the error is automatically logged
in the console. This is a problem because it happens even when the error
is catched by the code that called l(), which might not want to log
errors at all.

l() was necessary when errors thrown in promises didn't reach the
toplevel. Now that they do, it is safe to remove l().

This will enable better error handling.
2018-06-30 13:35:35 +02:00
glacambre
7127106a25
excmds.ts: Fix jumplist not being correctly restored on reloads 2018-06-24 05:49:52 +02:00
Oliver Blanthorn
db780f2d69
Improve fixamo docs 2018-06-22 10:14:03 +01:00
Anton Vilhelm Ásgeirsson
5e920f0ae6 viewcontainers bugfix. fixes #717 2018-06-20 20:26:47 +00:00
Oliver Blanthorn
be5c4e2d75
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-impl_bufferall 2018-06-20 12:34:50 +01:00
glacambre
e335968de8
excmds.ts: Catch errors on urlincrement 2018-06-20 08:30:42 +02:00
glacambre
8fe7d039bc
Change bufferall argument to WINDOW_INDEX.TAB_INDEX 2018-06-19 19:42:35 +02:00
Anton Vilhelm Ásgeirsson
2a243db97f Documented that container related commands are now case insensitive. 2018-06-19 13:41:29 +00:00
Oliver Blanthorn
35bc7f9ea1
Merge branch 'master' of github.com:cmcaine/tridactyl into Snaipe-feature/hide-navbar 2018-06-19 11:49:20 +01:00
Oliver Blanthorn
384c56ccce
Merge branch 'master' of github.com:cmcaine/tridactyl into antonva-viewcontainers 2018-06-19 11:41:54 +01:00
Franklin "Snaipe" Mathieu
9bb77779ea guiset: added none option to navbar
This guiset navbar option completely removes the bar (except during
customization), rather than auto-hiding it when not in focus.

Since add-on panels are appended as children of #nav-bar, care has been
taken not to hide them to keep functionality.

Signed-off-by: Franklin "Snaipe" Mathieu <me@snai.pe>
2018-06-18 18:30:43 +01:00
glacambre
e27f93c913
Improve :bufferall, bind it to 'B' 2018-06-18 07:55:46 +02:00
Anton Vilhelm Ásgeirsson
656e4cc13f viewcontainers shows a list of the current containers in FF's JSON viewer. 2018-06-17 21:27:11 +00:00
Oliver Blanthorn
af61d8a42e
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-add_docend_event 2018-06-17 22:16:49 +01:00
Oliver Blanthorn
16e29a5ee7
Merge branch 'master' of github.com:cmcaine/tridactyl into peff-numeric-hints 2018-06-17 20:56:31 +01:00
Oliver Blanthorn
db5e98a77c
Merge branch 'master' of github.com:cmcaine/tridactyl into antonva-containers 2018-06-17 20:29:14 +01:00
Oliver Blanthorn
c2da27f82d
Merge pull request #638 from glacambre/fix_#433
excmds.ts: Make nativeopen behave like tabopen
2018-06-17 18:50:14 +01:00
glacambre
575693a65e
Implement :bufferall 2018-06-17 06:21:10 +02:00
Jeff King
a9dd3ca25f hinting: add "numeric" name mode
This is similar to setting "hintchars" to "1234567890", but
ends up with more predictable and stable hints (see the
included documentation).

Setting "hintfiltermode" to "vimperator-reflow" and
"hintnames" to "numeric" provides more or less the same
experience that pentadactyl did.
2018-06-14 16:23:26 -04:00
Jeff King
87529877b9 hinting: add "hintnames" config
We always generate hints using the "short" mechanism added
by 34aa42061e. In preparation
for adding a new mode, let's add a config option to select
this.

I've made "uniform" a separate mode. I don't actually care
about this mode myself, but it looks like there's no other
way to trigger the pre-34aa4206 behavior, even though we're
still carrying the code. It's possible that nobody cares and
it should simply be removed.
2018-06-14 16:22:37 -04:00
Jeff King
3bf95e648e excmds: use bullet list for "related settings"
When these comments get formatted into ":help open", etc,
the line breaks are eaten and we get a big jumble of text.
Let's space things out so that they get formatted in a sane
way.

Possibly a definition list would be better than bullets, but
this is at least an improvement over the status quo.
2018-06-14 15:56:06 -04:00
Anton Vilhelm Ásgeirsson
6bf8a5a1a4 clarify tabopen -c documentation. small formatting fixes in container related excmd documentation. 2018-06-14 15:25:38 +00:00
Anton Vilhelm Ásgeirsson
dace4fb378 containerclose now uses names instead of containerId 2018-06-14 14:09:59 +00:00
Anton Vilhelm Ásgeirsson
048698855c add/adjust documentation on container related excmds. 2018-06-14 13:47:43 +00:00
Anton Vilhelm Ásgeirsson
d85aa7b8d8 - containerupdate now throws an error properly
- added some logging
2018-06-14 12:58:09 +00:00
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
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
Oliver Blanthorn
9d1694a4de
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-fix_#632 2018-06-14 12:45:23 +01:00
Oliver Blanthorn
71961aebb2
Fix #667: broken link in source help 2018-06-08 21:26:18 +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
glacambre
63f7881ba0
excmds.ts: Fix composite 2018-06-08 09:04:02 +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
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