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

Gesture manager: action suggestions #4727

Closed
1 task done
mayabtlaloc opened this issue Mar 4, 2019 · 23 comments
Closed
1 task done

Gesture manager: action suggestions #4727

mayabtlaloc opened this issue Mar 4, 2019 · 23 comments
Milestone

Comments

@mayabtlaloc
Copy link

mayabtlaloc commented Mar 4, 2019

I find it essential to navigate quickly between folders. Thanks

  • Folder shortcuts
@Frenzie
Copy link
Member

Frenzie commented Mar 4, 2019

And it would go nicely as the file browser equivalent default gesture for bookmarks.

Also:

  • Toggle scroll/page mode

@Frenzie Frenzie added this to the 2019.03 milestone Mar 4, 2019
Frenzie added a commit to Frenzie/koreader that referenced this issue Mar 4, 2019
@Frenzie Frenzie modified the milestones: 2019.03, 2019.04 Mar 5, 2019
@Frenzie Frenzie changed the title Gesture manager: add action - Folder shortcuts Gesture manager: action suggestions Mar 5, 2019
@poire-z
Copy link
Contributor

poire-z commented Mar 5, 2019

There is one (that I don't want to have anything to do with :) that is strangely missing (that one you use Suspend or your power button to have it, if I remember correctly):
Set Wifi off (and/or Toggle Wifi).

@Frenzie
Copy link
Member

Frenzie commented Mar 5, 2019

I occasionally use suspend as a quick wifi turn-off, yes.

Anyway, I think we've got a decent set of actions for release. More can just trickle in. :-)

Frenzie added a commit to Frenzie/koreader that referenced this issue Mar 5, 2019
As suggested by @poire-z.

koreader#4727 (comment)

I wanted to make the gesture a `W`, but that's a bit too unwieldy. Instead there's the suggestion of a (backward) `W`.
Frenzie added a commit to Frenzie/koreader that referenced this issue Mar 5, 2019
As suggested by @poire-z.

koreader#4727 (comment)

I wanted to make the gesture a `W`, but that's a bit too unwieldy. Instead there's the suggestion of a (backward) `W`.

The default gestures for wifi on and off are diagonal multiswipe half circles, like an turnable on/off knob.
@Frenzie
Copy link
Member

Frenzie commented Mar 5, 2019

Adding a reference to #3978. Because with a multiswipe of at least three strokes, ignoring touch could work on any device.

For example, an L for lock:

But definitely not for the stable. Something like that is a little too volatile to throw in last minute. ;-)

Frenzie added a commit that referenced this issue Mar 5, 2019
As suggested by @poire-z.

#4727 (comment)

I wanted to make the gesture a `W`, but that's a bit too unwieldy. Instead there's the suggestion of a (backward) `W`.

The default gestures for wifi on and off are diagonal multiswipe half circles, like an turnable on/off knob.
@gerhaher
Copy link

gerhaher commented Mar 6, 2019

I would like to see the multiswipe gesture manager itself among the actions opened with a multiswipe.

@Frenzie
Copy link
Member

Frenzie commented Mar 11, 2019

I would like to see the multiswipe gesture manager itself among the actions opened with a multiswipe.

For sanitary code organization purposes I would generalize that as opening a specific (sub)menu. Not likely to happen very soon I'm afraid but it is part of my overarching vision. :-)

@Galunid
Copy link
Member

Galunid commented Mar 13, 2019

It'd be nice to see "Next/Prev Highlight action" gesture(Document > Highlight action). Not sure how many people would be interested, but I'd like it for when I'm debugging stuff on my kindle and need to quickly go from Highlight to Ask.

@Frenzie
Copy link
Member

Frenzie commented Mar 13, 2019

You should know more about that than me. :-) What is it this action would do precisely?

@Galunid
Copy link
Member

Galunid commented Mar 13, 2019

Basically it should set default_highlight_action in G_reader_settings to one of the following
"highlight", "translate", "wikipedia", or nil, and display notification which one is enabled now. I'm not familiar with gesture manager, but sth like this would probably work:

local actions = {
    "highlight": "translate",
    "translate": "wikipedia",
   "wikipedia": nil
}
local current_action = G_reader_settings:readSetting("default_highlight_action")
if not current_action then
   G_reader_settings:saveSetting("default_highlight_action", "highlight")
       UIManager:show(InfoMessage:new{
           text = _("Default highlight action is now: highlight"),
           timeout = 1,
       })
else
   local next_action = actions[current_action]
   G_reader_settings:saveSetting("default_highlight_action", next_action)
       UIManager:show(InfoMessage:new{
           text = "Highlight action is now: " + next_action,
           timeout = 1,
       })
end

@Frenzie
Copy link
Member

Frenzie commented Mar 13, 2019

That looks okay to me, except you should try to keep the logical separation by putting those lines in something like ReaderHighlight:onToggleHighlightAction(). Then you can trigger the ToggleHighlightAction event from the gesture manager action.

NB I haven't looked at the specific code involved so that's more of a generic statement even if it looks specific.

@gerhaher
Copy link

"View book description" would be nice to have too.

@Frenzie
Copy link
Member

Frenzie commented Mar 14, 2019

@gerhaher Is that something different than #4777?

@gerhaher
Copy link

@gerhaher Is that something different than #4777?

With #4777 you need to do 2 things to open the description: a multigesture & a tap.

The most common reason for me to open Book information, is to view the books description. So to bypass "Book information" and directly open the "Description" with a multigesture would be nice.

Well anyway, it's not superimportant.

@Frenzie
Copy link
Member

Frenzie commented Mar 14, 2019

Oh, I see what you mean. Perhaps @poire-z (who authored book info) would be interested in that?

@poire-z
Copy link
Contributor

poire-z commented Mar 14, 2019

(Come on, 2 things, a gesture and a tap! for something you'll do at most 2 or 3 times on a book :)

Anyway, using stuff from filemanagerbookinfo is a bit complicated, as it's more just the display parts that gets the bookprops dict from various callers (including CoverBrowser when the props are in the db) and set up kvpage and use the callback it provides.

It's just easier to get it from self.ui.document and launch the TextViewer directly in gesture manager.
Something like this as the action code seems to just work:

        local TextViewer = require("ui/widget/textviewer")
        UIManager:show(TextViewer:new{
            title = _("Description:"),
            text = self.document:getProps().description or _("N/A"),
        })

(@Frenzie : feel free to go on with that and pick a default gesture for it if it's worth one and you have an idea for it.)

@gerhaher
Copy link

How about disable/enable Reading Statistics? Is that posssible?

@gerhaher
Copy link

gerhaher commented Mar 15, 2019

OK, I'll add it.

There is an issue with it.
These things are added to description text:
<div> <p> <p class="description"> <em> <h3> et cetera

@poire-z
Copy link
Contributor

poire-z commented Mar 15, 2019

Right, forgot to use what's used in bookinfo:

        -- Description may (often in EPUB, but not always) or may not (rarely
        -- in PDF) be HTML.
        description = util.htmlToPlainTextIfHtml(description)

Frenzie added a commit to Frenzie/koreader that referenced this issue Mar 18, 2019
Frenzie added a commit that referenced this issue Mar 19, 2019
Also add Device:hasMultitouch() to control whether the configuration menu is shown.

Cf. #4727.
@lengyelimrezsolt
Copy link

I would find it useful to have gestures for fine-tuning font sizes, like one gesture for font size +1 and another for -1.

@Frenzie Frenzie modified the milestones: 2019.04, 2019.05 Apr 4, 2019
@Biep
Copy link

Biep commented Apr 15, 2019

One I really miss is "scroll here to top/bottom".
I read lots of PDFs, zoomed to content width. Now sometimes there is an image or diagram that straddles the page, and I'd like to draw a horizontal line at the top of the image, and then vertically up to the top rim of the screen, meaning: move this position to the top. Likewise with moving the bottom of the image to the bottom of the screen.
(And being left-handed, those horizontal parts would be right-to-left.)

@Frenzie Frenzie modified the milestones: 2019.05, 2019.06 May 8, 2019
@pazos pazos modified the milestones: 2019.06, 2019.07 Jun 8, 2019
@Frenzie Frenzie modified the milestones: 2019.07, 2019.08 Jul 2, 2019
@Frenzie Frenzie modified the milestones: 2019.08, 2019.09 Aug 3, 2019
Frenzie pushed a commit that referenced this issue Aug 7, 2019
)

* Add spread/pinch gesture to gesture manager
ability to disable: 
https://www.mobileread.com/forums/showthread.php?t=321818
#4815 (comment)

* Add increase/decrease font size action gesture
#4727 (comment)
@Frenzie
Copy link
Member

Frenzie commented Aug 31, 2019

Splitting out the feature request for new functionality and closing. The type of actions intended for this issue was existing functionality. I'll close this issue because we've reached quite a usable degree of gesture manager actions. Please create dedicated tickets if something should come up.

@Frenzie Frenzie closed this as completed Aug 31, 2019
mwoz123 pushed a commit to mwoz123/koreader that referenced this issue Mar 29, 2020
mwoz123 pushed a commit to mwoz123/koreader that referenced this issue Mar 29, 2020
…ader#4739)

As suggested by @poire-z.

koreader#4727 (comment)

I wanted to make the gesture a `W`, but that's a bit too unwieldy. Instead there's the suggestion of a (backward) `W`.

The default gestures for wifi on and off are diagonal multiswipe half circles, like an turnable on/off knob.
mwoz123 pushed a commit to mwoz123/koreader that referenced this issue Mar 29, 2020
mwoz123 pushed a commit to mwoz123/koreader that referenced this issue Mar 29, 2020
)

Also add Device:hasMultitouch() to control whether the configuration menu is shown.

Cf. koreader#4727.
mwoz123 pushed a commit to mwoz123/koreader that referenced this issue Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants