Commit graph

2588 commits

Author SHA1 Message Date
Oliver Blanthorn
64230c8f3c
Merge pull request #1405 from glacambre/fix_1399
controller_content.ts: Fix typo in variable name
2019-03-09 17:38:33 +00:00
glacambre
03bfb3f825
controller_content.ts: Fix typo in variable name 2019-03-09 18:07:57 +01:00
Oliver Blanthorn
59a2147172
Merge pull request #1404 from max-sixty/patch-1
Fix readme link
2019-03-09 09:28:33 +00:00
Maximilian Roos
efca5e3f66
Fix readme link 2019-03-08 16:49:37 -05:00
Oliver Blanthorn
31e4777296
Merge pull request #1402 from glacambre/fix_windows_nativeopen_escaping
excmds.ts: Fix nativeopen using wrong escaping scheme on windows
2019-03-06 07:58:00 +00:00
glacambre
6a4e2e3c41
excmds.ts: Fix nativeopen using wrong escaping scheme on windows
See comment in patch for explanations.
2019-03-06 06:49:47 +01:00
Oliver Blanthorn
e3ae6f8a8c
Merge pull request #1401 from glacambre/improve_build_script
scripts/build.sh: Generate .bracketexpr.generated.ts before metadata
2019-03-05 17:41:41 +00:00
glacambre
1e104e4d76
scripts/build.sh: Generate .bracketexpr.generated.ts before metadata
Typescript will complain about it missing on clean builds otherwise.
2019-03-05 12:59:44 +01:00
Oliver Blanthorn
ca43aadafb
Merge pull request #1400 from glacambre/fix_completions
completions: Make sure completion computation has ended before resizeArea
2019-03-05 09:04:03 +00:00
glacambre
5dd1ec3a74
completions: Make sure completion computation has ended before resizeArea
Before this commit, Tridactyl had a bug where resizeArea could be called
before completion computation had ended, which resulted in completions
pushing the input field out of the viewport (easy way to reproduce this:
open a lot of tabs and press `b` to open buffer completions).
This happened because for some of the completion sources, `filter`
returned before completion computation had actually ended. This is fixed
by making sure that filter() (and all underlying calls to updateOptions,
onInput, updateChain...) return a promise that will only be resolved
once completion computation has actually ended.
2019-03-05 07:45:07 +01:00
Oliver Blanthorn
5e13b87ebd
Merge branch 'request_review' 2019-03-04 20:02:59 +00:00
Oliver Blanthorn
d34af73746
Update packages and fix build errors 2019-03-03 13:13:01 +00:00
Oliver Blanthorn
fb46d63b4a
Merge pull request #1396 from glacambre/fix_profile_not_auto_windows
native.ts: Fix profiledir != "auto" not working on windows
2019-03-01 12:09:44 +00:00
glacambre
689994eda5
native.ts: Fix profiledir != "auto" not working on windows
Somehow () => profiledir works on linux but doesn't on windows. () =>
profiledir doesn't make sense anyway.
2019-03-01 12:59:12 +01:00
glacambre
4e6e9aadac
Resize command line only once per available completion source
One of the problems of the command line was that it made a resizeArea()
call for each enabled completion, no matter whether its status was
"hidden" or "normal". This was a problem because a resizeArea call
results in 2 cross-script messages: a "show" and a "focus" message. This
means that for each keystroke, we sent 28 messages. This commit fixes
that thanks to modifications in multiple files:

- commandline_frame.ts: Stop accumulating event listeners on resizeArea
  calls. Make sure completion sources actually need a refresh before
  calling resizeArea().
- completions.ts: Add logic to know whether a completion source needs a
  refresh or not.
- {Rss,Sessions,Tab,TabAll,Window}.ts: Make sure that completions are
  actually needed before computing them.

This seems to make opening the command line slightly faster for me,
although I can't tell if this is placebo or not.
2019-03-01 06:18:07 +01:00
Oliver Blanthorn
11329c770a
Merge pull request #1393 from glacambre/deselect_completion
Implement deselect_completion ex command
2019-02-28 22:01:51 +00:00
glacambre
bdd3e04199
Implement deselect_completion ex command
Left unbound by default.
2019-02-28 18:27:21 +01:00
Oliver Blanthorn
24228b8937
Merge pull request #1391 from glacambre/fix_hint_j
excmds.ts: Fix hint -J
2019-02-27 08:08:20 +00:00
glacambre
4ff992f49e
excmds.ts: Fix hint -j
https://github.com/tridactyl/tridactyl/pull/1381 inverted the behavior
of -J. This commit fixes that.
2019-02-27 06:17:15 +01:00
Oliver Blanthorn
0f0ab74391
Merge pull request #1388 from glacambre/fix_hint_pipe
excmds.ts: Fix `hint -pipe` not working
2019-02-26 08:38:54 +00:00
glacambre
85b3e33719
Remove commandline_background
This commit removes commandline_background.ts. I believe this is useful
because the only thing it did was provide recvExStr, which just
triggered a synthetic "onLine" event the only consumer of which was the
parser. Since we already used controller_background + acceptExCmd in
some places, it made sense to me to directly use controller_background +
acceptExCmd everywhere.
2019-02-26 08:41:19 +01:00
glacambre
295471d592
excmds.ts: Fix hint -pipe not working
https://github.com/tridactyl/tridactyl/pull/1381 broke `hint -pipe`
(just try `:composite hint -pipe a href | tabopen` for example).
This commit makes `-pipe` work again.
2019-02-26 06:24:18 +01:00
Oliver Blanthorn
3208b75a64
Merge pull request #1387 from nfvs/fix_travis
Fix travis build
2019-02-25 17:56:22 +00:00
Nuno Santos
4c1f400401 Update to latest web-ext-types, which contains all the types we need.
Fixes travis build.
2019-02-25 14:50:01 +01:00
Oliver Blanthorn
60057e7a8d
Merge pull request #1386 from nfvs/build_errors
Fix build.sh to return proper exit code.
2019-02-25 13:10:31 +00:00
Nuno Santos
2e3263c544 Fix build.sh to return proper exit code.
Remove background scripts/wait from building script to allow proper return
codes to propagate.

Fixes #1088
2019-02-25 13:52:12 +01:00
Oliver Blanthorn
6555d2d9c0
Merge pull request #1385 from glacambre/fix_getprofile
native.ts: Fix buggy profile detection
2019-02-25 12:15:24 +00:00
glacambre
1d12fb614c
native.ts: Fix buggy profile detection
This happened because of a refactoring gone wrong.
2019-02-25 13:08:19 +01:00
Oliver Blanthorn
1e152a1aa4
Merge pull request #1383 from nfvs/bodgecss_sh
MacOS build fixes.
2019-02-24 14:09:43 +00:00
Nuno Santos
b0bf0f1bb7
Shorten Google exemplar in RC file 2019-02-24 14:04:53 +00:00
Oliver Blanthorn
026f409add
Merge pull request #1381 from nfvs/hint_t
Added `hint -t`, `hint -tc` and `hint -Jtc`, to open links in a new tab.
2019-02-24 14:03:11 +00:00
Nuno Santos
31c1d52641 Added hint -t, hint -tc and hint -Jtc, to open links in a new tab.
Using `-w newtab` wouldn't allow us to use selectors with `-c`, and
using composite would always open a new empty tab on cancel (esc).

Other changes:
- Better flag handling in hint().
- `-c` is now a flag (can be combined with others like `-t`), and is
handled in the `default` case
- support flags `-c`, `-J` and `-t` in any position
2019-02-23 23:08:26 +01:00
Oliver Blanthorn
ba2b47c1f3
Merge pull request #1384 from glacambre/guiset_completions
Implement guiset completions
2019-02-23 15:24:17 +00:00
glacambre
f9fa447a24
Implement guiset completions 2019-02-23 16:17:05 +01:00
Oliver Blanthorn
1f5d44e8bd
Merge pull request #1382 from glacambre/fix_1355
native.ts: implement proper profile-checking
2019-02-23 14:59:51 +00:00
glacambre
02c133fa0b
native.ts: implement proper profile-checking
https://github.com/tridactyl/tridactyl/pull/1355 introduced a bug on
systems where profile names do not match profile paths. Fixing it
required implementing proper profiles.ini parsing, which should help
making profile discovery work on windows.

The new getProfileDir() function breaks compatibility with previous
versions. The previous version turned backslashes into slashes on
windows. I believe doing this is wrong since paths such as
`C:/Users/Bob` do not make any sense on windows. They might work in
mingw and wsl but I believe we should aim to have everything work on
'normal' windows.
2019-02-23 14:22:49 +01:00
Nuno Santos
69f21ce91f MacOS build fixes.
- Fix `find` in bodgecss.sh appending an extra /
- Remove bashism from bodgecss.sh which doesn't work in 3.2 (macos
default)
- Remove `-p .` from mktemp which is unnecessary and doesn't exist on macos.
2019-02-22 16:47:17 +01:00
Oliver Blanthorn
ac6de140c0
Merge pull request #1373 from tridactyl/feedme
Add gentle invitation for donations on newtab
2019-02-21 23:22:13 +00:00
Oliver Blanthorn
ee7bf293b0
Add issue link 2019-02-21 23:21:41 +00:00
Oliver Blanthorn
b6417355e0
Merge pull request #1363 from glacambre/content_editor
Content editor
2019-02-20 07:55:57 +00:00
glacambre
755e42bb9a
excmds.ts: Move :editor to the content script
Having `:editor` in the background script and constantly messaging the
content one to update the page doesn't really make sense. This commit
moves `:editor` to the content script and thus simplifies the code a
little bit.
2019-02-20 07:09:32 +01:00
glacambre
68a8fccb50
Mobe background/native_background.ts to lib/native.ts
All functions in native_background.ts use browserBg in order to interact
with the native messenger. This means that these functions can also be
used in the content script. This means that there's no point in keeping
these functions in the background/ folder and that there's no point in
having a native_background message type.
2019-02-20 07:09:01 +01:00
Oliver Blanthorn
c734e3982a
To the moon! 2019-02-19 21:40:37 +00:00
Oliver Blanthorn
c0a1e2a9b9
Merge pull request #1372 from MannySchneck/scrollto-hint
feat/minor: add hint that scrolls element to the top of a page
2019-02-19 21:38:14 +00:00
Oliver Blanthorn
6703e5b0d8
Merge pull request #1375 from antonva/bsd-build
Portable builds
2019-02-19 21:33:43 +00:00
Anton Vilhelm Ásgeirsson
ce10ef2fba Refactor bodgecss to use portable tooling. 2019-02-19 20:31:21 +00:00
Anton Vilhelm Ásgeirsson
66b36cf5ae Replace OSTYPE with uname and add yet another sed variant. 2019-02-19 17:49:40 +00:00
Anton Vilhelm Ásgeirsson
d3e2d3dbec Use utf-8 explicitly for macro script. 2019-02-19 16:58:46 +00:00
Manny Schneck
862fd2de94 feat/minor: add hint that scrolls element to the top of a page 2019-02-19 10:49:19 -06:00
Oliver Blanthorn
15a8b3d031
Add gentle invitation for donations on newtab 2019-02-19 14:53:33 +00:00