mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
shortcut: open item.link
This commit is contained in:
parent
af2a01eea2
commit
e3820d1c8e
@ -432,6 +432,10 @@
|
|||||||
<td><kbd>s</kbd></td>
|
<td><kbd>s</kbd></td>
|
||||||
<td>toggle an article as starred / unstarred</td>
|
<td>toggle an article as starred / unstarred</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><kbd>o</kbd></td>
|
||||||
|
<td>open an article's link</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -76,6 +76,11 @@ var helperFunctions = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
var shortcutFunctions = {
|
var shortcutFunctions = {
|
||||||
|
openItemLink: function() {
|
||||||
|
if (vm.itemSelectedDetails && vm.itemSelectedDetails.link) {
|
||||||
|
window.open(vm.itemSelectedDetails.link, '_blank')
|
||||||
|
}
|
||||||
|
},
|
||||||
toggleItemRead: function() {
|
toggleItemRead: function() {
|
||||||
if (vm.itemSelected != null) {
|
if (vm.itemSelected != null) {
|
||||||
vm.toggleItemRead(vm.itemSelectedDetails)
|
vm.toggleItemRead(vm.itemSelectedDetails)
|
||||||
@ -120,6 +125,7 @@ var shortcutFunctions = {
|
|||||||
|
|
||||||
// If you edit, make sure you update the help modal
|
// If you edit, make sure you update the help modal
|
||||||
var keybindings = {
|
var keybindings = {
|
||||||
|
"o": shortcutFunctions.openItemLink,
|
||||||
"r": shortcutFunctions.toggleItemRead,
|
"r": shortcutFunctions.toggleItemRead,
|
||||||
"R": shortcutFunctions.markAllRead,
|
"R": shortcutFunctions.markAllRead,
|
||||||
"s": shortcutFunctions.toggleItemStarred,
|
"s": shortcutFunctions.toggleItemStarred,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user