Commit graph

481 commits

Author SHA1 Message Date
John Beard
f0dfe1d5da Refactor document CSS selector queries with dom.ts
The DOM.getElemsBySelector function makes it a bit less verbose to
construct an array of filtered elements matching a selector.

Also, this function is expanded to take multiple filters, applied
sequentially.
2017-11-29 02:27:49 +00:00
John Beard
a3ca5cd2c1 Add yank anchor hint submode (;#)
THis yanks the page URL with the hinted elements id or title as a hash
fragment, which can be used to link to the page at that element's
location.

For example: https://en.wikipedia.org/wiki/Vim_(text_editor)#History

;# nmap added, from Vimperator
2017-11-29 02:27:23 +00:00
Colin Caine
2be3646b21 release 1.6.1 2017-11-28 18:37:39 +00:00
Colin Caine
4a271805bb build: BSD compatibility for git_version.sh 2017-11-28 17:36:40 +00:00
Colin Caine
3cae9a5334 Revert "excmd: fix :version"
This reverts commit baa5a9b861.
2017-11-28 17:23:16 +00:00
Colin Caine
4a3a25751c hinting: Fix #136.
Hints still don't work for images, but I don't see any way we can detect that they're clickable, besides special casing instagram.
2017-11-28 17:19:50 +00:00
Colin Caine
e933c100d3 excmd: Replace tabchoose with tabprev_gt
The gT and gt maps in vim aren't symmetric, this better preserves
those semantics while removing a confusingly named excmd
2017-11-28 16:16:41 +00:00
Colin Caine
baa5a9b861 excmd: fix :version 2017-11-28 16:05:08 +00:00
Colin Caine
fc02d21da7 excmd: fix wrapping on tabnext/prev 2017-11-28 16:04:16 +00:00
Oliver Blanthorn
de84cd42f5
Fix #134: [count]gt now goes to nth tab
Known issues: count is ignored on gT
2017-11-28 14:28:20 +00:00
Oliver Blanthorn
c255d1a2e9
Fix #151: version is now Colin-proof and does not rely on tags 2017-11-28 14:17:51 +00:00
Oliver Blanthorn
758c91a5f4
Fix #150: tab{next,prev} now wrap again 2017-11-28 13:53:22 +00:00
Colin Caine
4e9355e5ce build: Helper for stable releases 2017-11-28 02:52:10 +00:00
Colin Caine
074393332f release 1.6.0
New features:

 - auto-completion for `:open`, `:tabopen`, etc.
 - Tab selects autocompletion options
 - New hint modes!
	;i - open image
	;I - open image in new tab
	;; - focus
 - Better commandline history completion (substring matching!)
 - Better completion for `:buffer`, `:tabmove`, etc.
 - Focus inputs
 	gi -- last input
	focusinput -p -- first password input
	focusinput -b -- largest input
 - Better documentation!
 - More search URLs
 - Yank the short or canonical link (see :help clipboard)

Contributors to this release:

John Beard
 - Image hinting
 - Focus input

Olie Blanthorn
 - Both types of history completion
 - Merging a bunch of PRs
 - Some documentation

Colin Caine
 - Improved buffer completion
 - Documentation

Olle Fredriksson
 - Make searches including hashes work.

Jake Beazley
 - CSS

@chocolateboy
 - Improved pagination [[,]]

@glacambre
 - More search URLs

Robbie McMichael
 - Fix build for BSD sed (OSX)
 - tabfirst, tablast

emanresusername
 - Select more elements in hints
2017-11-28 02:45:28 +00:00
Colin Caine
c57a829aa8 excmd: document hint 2017-11-28 02:12:07 +00:00
Colin Caine
cd82433633 excmd: Document tabs and buffers 2017-11-28 00:20:54 +00:00
Colin Caine
7dda663a47 excmd: Simplify IPC for geturlsforlinks
This is more about maybe expanding the macro system in the future. Need
to look at how other projects do it.
2017-11-28 00:20:49 +00:00
Colin Caine
ca9e3b25f0 excmd: improve tab commands 2017-11-28 00:01:41 +00:00
Colin Caine
56da023ee6 build: Fix make_docs on some shells 2017-11-27 19:59:43 +00:00
Colin Caine
1c8e88693c excmd: document new buffer functions 2017-11-27 19:59:43 +00:00
Colin Caine
edd53f197b completions: Support numbers for buffer 2017-11-27 19:59:43 +00:00
Colin Caine
9b68e94d94 excmd: arg to buffer is not optional 2017-11-27 19:59:43 +00:00
Robbie McMichael
53ee803bc9 Reduce code duplication in buffer function 2017-11-27 19:59:43 +00:00
Robbie McMichael
87aa3ee225 Add tabfirst and tablast commands 2017-11-27 19:59:43 +00:00
Oliver Blanthorn
8ef19cb1ae
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-impl_yank_shortlink 2017-11-27 19:15:14 +00:00
Oliver Blanthorn
f9ee2a3e9a
Add documentation for yankshort,canon 2017-11-27 19:15:04 +00:00
Robbie McMichael
6f244162ab Fix builds when using BSD sed 2017-11-27 18:54:39 +00:00
Oliver Blanthorn
eef773f44a
Add binding to yankcanon, yankshort 2017-11-27 18:51:33 +00:00
glacambre
dd1365f269 excmds.ts: Add yankshort and yankcanon. 2017-11-27 19:48:49 +01:00
Oliver Blanthorn
e4b17c4eaa
Merge pull request #139 from glacambre/add_search_engines
excmds.ts: Add search urls.
2017-11-26 15:52:40 +00:00
glacambre
cb58814da3 excmds.ts: Add search urls.
This commit adds a Github, Searx, Cnrtl, OpenStreetMap, the Mozilla Dev Network
and the Gentoo wiki to the list of SEARCH_URLS.
2017-11-26 16:36:07 +01:00
Oliver Blanthorn
2ce1f9a64a
Fix #99: misleading help for bind 2017-11-26 14:56:09 +00:00
Oliver Blanthorn
11155e82ba
Add fish-style history search, fix clamp bug, improve variable names 2017-11-26 14:06:13 +00:00
Oliver Blanthorn
1775e100ef
Make focus listener only store editable inputs 2017-11-26 12:27:54 +00:00
Oliver Blanthorn
38ff3f7ca4
Merge branch 'master' of github.com:cmcaine/tridactyl into johnbeard-focusinput 2017-11-26 12:18:14 +00:00
Oliver Blanthorn
8f49130c63
Add listener to store last focused element 2017-11-26 12:18:06 +00:00
Oliver Blanthorn
d65acf9f64
Fix #117: add :version command
:version currently fills the command line with the version number in
order to display it to the user (hacky) and copies it to the clipboard.
2017-11-26 00:06:02 +00:00
Oliver Blanthorn
9e2c21123f
Revert async history update and number of history items
The async history issue was too annoying, and the number of history
items being above 50 meant that it was too slow.
2017-11-25 23:26:16 +00:00
Oliver Blanthorn
347c1f5d7a
Prevent focus from leaving the command line 2017-11-25 23:15:45 +00:00
Oliver Blanthorn
c66ca2ab62
Merge branch 'master' of github.com:cmcaine/tridactyl into ollef-URIEncode 2017-11-25 16:14:05 +00:00
Oliver Blanthorn
ccd0c6a9ab
Merge branch 'master' of github.com:cmcaine/tridactyl into johnbeard-hintfocus 2017-11-25 15:23:42 +00:00
Oliver Blanthorn
86662e1dbc
Prevent Firefox from giving focus to omnibar from cmdline 2017-11-25 15:16:08 +00:00
Oliver Blanthorn
88298b7bc9
Move ^j,^m nearer to enter, fix tabs 2017-11-25 15:12:40 +00:00
Arkadiusz Drabczyk
d5eb22e4a8 Add C-j and C-m keybindings 2017-11-25 16:03:53 +01:00
Oliver Blanthorn
bf8d65f14d
Only add visible items to HTML, make update more async
Introduces an issue where the commandline cannot be seen until a
character is typed on *open.
2017-11-25 13:00:15 +00:00
Oliver Blanthorn
fae01efc0c
Make completion choose from 100 history items since records began 2017-11-25 12:44:56 +00:00
Oliver Blanthorn
cdad491e5f
Add padding to tab decorations on :buffer 2017-11-25 12:10:16 +00:00
John Beard
221b94c8ff Add hint focus mode (;;)
This focuses the hinted element with excmd ":hint -;".

Includes VImperator binding to ";;"
2017-11-25 01:47:56 +00:00
John Beard
6a48990751 Add focusinput command (gi)
Can focus the nth input from the start or end of a page.

Also has some special modes:

  -l: last focussed input
  -p: first password input
  -b: the largest input by area
2017-11-25 01:41:38 +00:00
Olle Fredriksson
4870a967ff URI-encode search query string
This enables searching for e.g. 'C#'.

Also remove a now no longer valid comment.
2017-11-24 23:30:24 +01:00