GithubHelp home page GithubHelp logo

Comments (2)

FelixKratz avatar FelixKratz commented on June 8, 2024

Oh, thats a nice idea! Funnily enough I have already coded something like that for arrow key movement in scrollable views, i.e. the Finder file list or PDF viewers etc. for my personal movement keys and only compiled in when the appropriate flag is set (jklö -> left, down, up, right arrows):

SketchyVim/src/ax.c

Lines 241 to 264 in 75d24df

#ifdef GUI_MOVES
// NOTE: Gui movement is currently hardcoded for my movement keys jklö and
// NOTE: only available when compiling with the -DGUI_MOVES flag
if (ax->role == ROLE_TABLE || ax->role == ROLE_SCROLL) {
switch (character) {
case K: {
CGEventSetIntegerValueField(event, kCGKeyboardEventAutorepeat, false);
CGEventSetIntegerValueField(event, kCGKeyboardEventKeycode, 125);
} break;
case L: {
CGEventSetIntegerValueField(event, kCGKeyboardEventAutorepeat, false);
CGEventSetIntegerValueField(event, kCGKeyboardEventKeycode, 126);
} break;
case J: {
CGEventSetIntegerValueField(event, kCGKeyboardEventAutorepeat, false);
CGEventSetIntegerValueField(event, kCGKeyboardEventKeycode, 123);
} break;
case OE: {
CGEventSetIntegerValueField(event, kCGKeyboardEventAutorepeat, false);
CGEventSetIntegerValueField(event, kCGKeyboardEventKeycode, 124);
} break;
}
}
#endif //GUI_MOVES

this could be used to do exactly what you want with a bit of fiddling.

I would accept pull-requests where this is optional (via a compile flag) and well integrated with the synchronization.

from sketchyvim.

chrisgrieser avatar chrisgrieser commented on June 8, 2024

I would accept pull-requests where this is optional (via a compile flag) and well integrated with the synchronization.

(Just in case you are asking me, I unfortunately have zero knowledge of C and wouldn't be able to do that 🙈)

from sketchyvim.

Related Issues (20)

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.