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

Open in external editor #5

Closed
maxigaz opened this issue Oct 16, 2021 · 2 comments
Closed

Open in external editor #5

maxigaz opened this issue Oct 16, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@maxigaz
Copy link

maxigaz commented Oct 16, 2021

Being used to (Neo)vim, I would be very pleased if I could open the current todo list or the highlighted task in an external editor. Is it possible to do this from pter?

@vonshednob
Copy link
Owner

Currently not, but sounds like an easy task. I’ll get on it.

@vonshednob vonshednob self-assigned this Oct 17, 2021
@vonshednob vonshednob added the enhancement New feature or request label Oct 17, 2021
@vonshednob
Copy link
Owner

It’s implemented as of version 2.0.0 (commit 395e06e).

By default pter will try to use VISUAL or EDITOR (in this order), but the configuration option editor (in [Global] overwrites these). If all fails, pter will just hope for the best and see if nano exists (at this point we’re looking at a user who never configured their environment variables, so launching the external editor was probably a mistake to begin with).

After editing pter will still apply the usual sugar coating (expand relative dates, auto-generate IDs, if requested).

It’s currently not possible to create a new task through an external editor, because that opens a whole new can of worms… if you want that, too, please create a new issue so we can discuss the odds and ends.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants