Giter VIP home page Giter VIP logo

komodo-autotogglepanes's Introduction

I like to use Komodo without any panes or tabs showing - just the editor. Normally I would use keybindings to toggle the relevant panes when I need them but I wanted something more intuitive; so I wrote this macro.

Basically what this does is it shows/hides the relevant pane/tabs when you move your mouse cursor towards them. While editing your mouse cursor can rest somewhere centered on the editor, then when you want to access eg. the left pane you move your mouse cursor to the left editor edge and the left pane will automatically show itself.

Caveats

There are some caveats to consider that I'd still like to work out as much as possible (pull requests welcome)

  • You might be trying to position your cursor to select some text in the editor and in doing so accidentally trigger a pane
  • Currently when you move your cursor off Komodo entirely panes will open from the side where your mouse left the application (not an issue if you work with Komodo maximized)
  • Probabably more that I haven't ran in to yet

Configuration

There are a few preferences that you can tweak to your liking, you can set these with ko.prefs.setLong(pref,value) or ko.prefs.setBoolean(pref,value)

  • autoTogglePaneHotspotSizeLeft
  • autoTogglePaneHotspotSizeRight
  • autoTogglePaneHotspotSizeTop
  • autoTogglePaneHotspotSizeBottom
  • autoTogglePaneDelay (in ms, don't set this too low as it can make your UI jumpy)
  • toggleTopPane true/false, whether to enable toggling this pane
  • toggleBottomPane true/false, whether to enable toggling this pane
  • toggleRightPane true/false, whether to enable toggling this pane
  • toggleLeftPane true/false, whether to enable toggling this pane

komodo-autotogglepanes's People

Contributors

naatan avatar defman21 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

komodo-autotogglepanes's Issues

Vertical scrollbars

This seems like a useful macro - thanks!

One thing I've noticed is it doesn't play nice with the right pane when vertical scrollbar is present. In other words the hotspot area needs to exclude any vertical scrollbar.

As a tempo workaround I've excluded the rightmost 18 pixels from my copy: (line 66)

if (rightRelativeX < hotspotsizeRight && rightRelativeX > 18 && rightPane.collapsed)

but it would be better to detect if scrollbar is actually present and only then allow for its width (I'm not familiar enough with the api to know how to do this!)

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.