Giter Club home page Giter Club logo

Comments (6)

WhyNotHugo avatar WhyNotHugo commented on August 30, 2024

It might be simpler to configure ctrl+j, ctrl-k, etc (kinda like what fzf does). Modal editing might require more complicated changes (but should still be doable).

from todoman.

balejk avatar balejk commented on August 30, 2024

I have not spent any time trying to find out who is "guilty" for this (my terminal emulator/todoman/framework that todoman uses for interactive mode if any), but I accidentally discovered that Ctrl+o opens the currently focused field in external editor (vim in my case). I'm pretty sure that it is not a feature of my terminal emulator, which means it could work for you too. It will not help you with switching fields but it should if you are looking for a way to edit the individual fields in vim-like way.

Regarding switching fields: Ctrl+j/k would indeed be one natural possibility, another one would be (Shift+)Tab since Tab does not seem to currently insert an actual tab or do anything else. khal implements the latter.

Edit: it seems that the field jumping using tab is already being discussed in #204. Also my guess is that urwid is the one responsible for the open-in-editor feature.

from todoman.

WhyNotHugo avatar WhyNotHugo commented on August 30, 2024

The Ctrl+o thing is a todoman feature:

elif key == "ctrl o":
# Allow editing in $EDITOR
self._editor()

from todoman.

WhyNotHugo avatar WhyNotHugo commented on August 30, 2024

ctrl+k is mapped to "delete till end of line". I'm not sure why this is. Maybe readline compat?

from todoman.

balejk avatar balejk commented on August 30, 2024

from todoman.

WhyNotHugo avatar WhyNotHugo commented on August 30, 2024

The function that I linked above delegates any "unknown" key mappings to urwid. Arrow keys must be implemented by them.

from todoman.

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.