Coder Social home page Coder Social logo

nanogestures's Introduction

Nano Gestures

This is a minimalistic mouse gesture WebExtension supporting four basic gestures:

  1. Hold right mouse button + drag left
  2. Hold right mouse button + drag right
  3. Hold right mouse button + drag up
  4. Hold right mouse button + drag down

The gestures can also be modified by the ctrl key, yielding a maximum of 8 distinct possible assignable actions.

Gesture assignment is fully configurable. The following actions are currently supported:

  1. Navigate back
  2. Navigate forward
  3. Create a new tab
  4. Reload current page
  5. Close current tab
  6. Switch to left tab
  7. Switch to left tab (skip special pages)
  8. Switch to right tab
  9. Switch to right tab (skip special pages)
  10. Restore last closed tab

Installation

nanogestures's People

Contributors

rotemdan avatar

Stargazers

Gitoffthelawn avatar  avatar  avatar Robert Orzanna avatar

Watchers

James Cloos avatar  avatar

nanogestures's Issues

Right mouse context menu not working

Hey @rotemdan thanks so much for your extension!

Tried it on Fedora 28 with GNOME 3.28 and Chrome 65.

However, my right mouse context menu is no longer functional.

It's not opening. Any ideas?

Thanks!

Investigate option to either disable, or reassign ctrl + mousewheel combination to navigate between tabs

The default behavior of this combination is to zoom the current page in or out. However that doesn't seem to work well with using ctrl as a "tab scope" mode modifier. Investigate if it is possible to disable the zooming behavior or allow it to be used to navigate between tabs instead.

(However a disadvantage of this is that pages not covered by the content script would fall back to the default zooming behavior, creating an unwanted effect).

Small error in the addons.mozilla.org descritpion

On AMO, an action list item is missing:

1. Navigate back
2. Navigate forward
3. Create a new tab
4. Reload current page
5. Close current tab
7. Switch to left tab
8. Switch to left tab (skip special pages)
9. Switch to right tab
10. Switch to right tab (skip special pages)
11. Restore last closed tab

Improve options UI

  • Use icons instead of text for 'RMouse' and 'Ctrl'
  • Gray out disabled options
  • Tooltips wherever possible
  • Button to reset to defaults

Linux(/macOS?): pressed ctrl key not recognized if keydown event occured outside of the extension context

In Windows it is not an issue as a continuously pressed key will generate a stream of keydown events (several times per second), so when the tab gains focus the pressed key is immediately identified. This doesn't seem to occur on Linux (Mac?).

In non-windows systems currently the script stores the state of the ctrl key globally (in the background script), however that's only helpful for the scope of the tabs where the content scripts runs.

It is possible there's no good solution.

Discuss about replacing OpenTab by CloseTab

I usually don’t need a mouse gesture for opening a tab, because I have to reach for the keyboard to type the search/URL anyway.

What do you think about replacing it by closing the tab?

Gesture detection conflicts with "Zoom Page WE" extension shortcut causing mouse wheel lock to page zooming after gesture

"Zoom Page WE" extension has the following option enabled by default:

  • Enable mouse Right+Wheel to zoom in/out

Due to the way this extension works, it suppresses some mouse events after the right mouse key has triggered a gesture. This causes the shortcut not work properly and to 'lock' to zooming in and out after a gesture was recognized, until the mouse right button is clicked again.

Users of both extensions: It is recommended to disable the above shortcut in "Zoom Page WE"'s options interface.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.