Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending the pages tag #1455

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions apps/adobe/adobe_acrobat_reader_dc_win.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,15 @@ def page_jump(number: int):

def page_final():
actions.key("end")

def page_rotate_right():
actions.key("shift-ctrl-0")

def page_rotate_left():
actions.key("shift-ctrl-1")

def page_go_back():
actions.key("alt-left")

def page_go_forward():
actions.key("alt-right")
12 changes: 12 additions & 0 deletions apps/foxit_reader/foxit_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,15 @@ def page_jump(number: int):
def page_final():
# actions.key("fn-right")
actions.key("end")

def page_rotate_right():
actions.key("shift-ctrl-keypad_plus")

def page_rotate_left():
actions.key("shift-ctrl-keypad_minus")

def page_go_back():
actions.key("alt-left")

def page_go_forward():
actions.key("alt-right")
5 changes: 0 additions & 5 deletions apps/foxit_reader/foxit_reader.talon
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,3 @@ tag(): user.tabs
tag(): user.pages

tab close all: key(ctrl-shift-w)

[page] rotate right: key("shift-ctrl-keypad_equals")
[page] rotate left: key("shift-ctrl-keypad_minus")

go back: key(alt-left)
12 changes: 12 additions & 0 deletions apps/sumatrapdf/sumatrapdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ def page_jump(number: int):
def page_final():
actions.key("end")

def page_rotate_right():
actions.key("shift-ctrl-keypad_plus")

def page_rotate_left():
actions.key("shift-ctrl-keypad_minus")

def page_go_back():
actions.key("alt-left")

def page_go_forward():
actions.key("alt-right")

# user.tabs
def tab_jump(number: int):
if number < 9:
Expand Down
12 changes: 12 additions & 0 deletions tags/pages/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,15 @@ def page_jump(number: int):

def page_final():
"""Go to final page"""

def page_rotate_right():
"""Rotates the document 90 degrees to the right"""

def page_rotate_left():
"""Rotates the document 90 degrees to the left"""

def page_go_back():
"""Goes back"""
AndreasArvidsson marked this conversation as resolved.
Show resolved Hide resolved

def page_go_forward():
"""Goes forward"""
4 changes: 4 additions & 0 deletions tags/pages/pages.talon
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ page next: user.page_next()
page last: user.page_previous()
go page <number>: user.page_jump(number)
go page final: user.page_final()
rotate right: user.page_rotate_right()
rotate left: user.page_rotate_left()
go back: user.page_go_back()
go forward: user.page_go_forward()