Commit graph

2420 commits

Author SHA1 Message Date
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
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
Oliver Blanthorn
4c2a7025be
Merge pull request #1368 from vviikk/patch-1
Add Ctrl+g shortcut info to cycle through search results
2019-02-18 17:36:28 +00:00
Oliver Blanthorn
88ad368944
Merge pull request #1369 from rodrigoaguilera/master
Fix path to tutor page
2019-02-18 17:35:56 +00:00
Rodrigo
463593b22e
Fix path to tutor page 2019-02-18 16:11:45 +01:00
Vik Ramanujam
64880252d0
Add Ctrl+g shortcut info to cycle through search results 2019-02-18 20:17:48 +05:30
Oliver Blanthorn
00b6027e3e
Merge pull request #1364 from robertgzr/winopen-popup
Add -popup option to winopen excmd
2019-02-18 08:48:34 +00:00
Robert Günzler
f2541e4de9 Add -popup option to winopen excmd
Opens the new window as a popup without the usual browser UI.
This can be combined with -private in any order.

Resolves #1357
2019-02-16 13:56:37 +01:00
Oliver Blanthorn
317d3878f2
Merge pull request #1361 from glacambre/define_leavegithubalone
config.ts: Add leavegithubalone setting to config.ts
2019-02-14 21:44:46 +00:00
glacambre
bcb518221a
config.ts: Add leavegithubalone setting to config.ts
leavegthubalone is used in content.ts but wasn't defined in config.ts.
This didn't cause any bugs but prevented leavegithubalone from being
shown in command line completions. This commit fixes that.
2019-02-14 22:18:28 +01:00
Oliver Blanthorn
5466c1be04
Merge branch 'fix_234' 2019-02-13 13:43:57 +00:00
Oliver Blanthorn
7e844fe23b
Merge pull request #1356 from glacambre/win_fail_profiledir
native_background.ts: make getProfileDir fail on win if profiledir unset
2019-02-13 12:26:58 +00:00
glacambre
aed8338427
native_background.ts: Fail if profile couldn't be found on linux
profilecmd.code is not necessarily different from 0 if `find` doesn't
return any results. This commit makes sure getProfileDir() checks for
such situations.
2019-02-13 13:22:58 +01:00
glacambre
4734214f9e
native_background.ts: make getProfileDir fail on win if profiledir unset
`profiledir` defaults to "auto" which is not a valid profile path, yet
that's what getProfileDir() returned before this commit.
2019-02-13 12:58:53 +01:00
Oliver Blanthorn
c341ea47db
Merge pull request #1355 from glacambre/better_nativeopen
nativeopen: detect profile, enable space in URLs
2019-02-13 11:44:17 +00:00
glacambre
3c9fc84f6d
nativeopen: detect profile, enable space in URLs
This commit does two things:
- If the user didn't specify any arguments, try to detect what profile
  is currently being used and specify it in the command passed to
  firefox. This makes sure tabs opened with `:nativeopen` are opened
  with the right profile if multiple firefox profiles are running.
- Quote url argument to enable adding spaces and quotes to the URL
  (closes #555)
2019-02-13 07:51:42 +01:00
Oliver Blanthorn
f40689e47f
Merge pull request #1354 from glacambre/fix_build_error
commandline_frame.ts: Fix compile-time error
2019-02-13 00:17:18 +00:00
glacambre
f119a89ac5
commandline_frame.ts: Fix compile-time error
10cb692d72 broke the build bot by
introducing type incompatibilites. This is fixed by making sure .catch()
returns an array.
This enables removing the try/catch in the input event handler since
the await won't throw anymore.
2019-02-12 12:43:53 +01:00
Oliver Blanthorn
ec43f7bb1c
Merge pull request #1350 from glacambre/reverse_img_search_hint
config.ts: Add reverse-search bindings
2019-02-12 09:14:58 +00:00
glacambre
2d8481fcc8
help.ts: Display composite binds in help pages 2019-02-12 08:51:58 +01:00