Comments (10)
Perfect requests! Yes, these are possible to implement, but I was too lazy and was hoping for someone to come around and complain ๐
from pter.
Being able to use Ctrl-based bindings when editing todos is very important to me since I'm currently grooming a large todo file. So I made a patch myself :) The code is probably ugly in places if only because I know next to nothing about curses. So I'll most certainly appreciate it if you could take a look.
Things seem to be working fine after a half day of usage, but give me a couple days to test it more thoroughly in the trenches and I'll post the patches, is that OK?
from pter.
By all means! Forking and patching is what open source is good for, after all ๐
from pter.
I've tested my patches for a couple of days, and they seem to be stable. So here you go:
80-ctrl-key-functions-1.diff.gz
80-ctrl-key-functions-2.diff.gz
90-ctrl-key-combos.diff.gz
I'm not 100% sure the detection of Ctrl-based combinations will work on every machine (I detect values of 524
, 550
and 565
), so I'd be curious about your experience. Key combos in curses-based apps can be tricky due to various terminals and environments used.
Also, I've redefined ^H
to work as Ctrl + Backspace
rather than plain Backspace
. This is a bit non-standard: e.g. bash doesn't do it, but then again bash has Alt/Meta + Backspace
which we can't have in pter yet. I reasoned the user can always map <ctrl_backspace>
to del-left
to make both ^H
and ^?
act as Backspace.
from pter.
Yeah, the keymap compatibility due to the various terminals has caused other issues, too. I have the nagging feeling that these types of issues will accumulate to a degree that might require a change of the backendโฆ well, thatโs for the future.
Iโll merge your changes with the next release! Thanks a lot!
from pter.
Aaaand merged! Soon I'm through all pending issues and then I'll release.
I might add the configuration option word-boundary-characters
or word-delimiters
or something.
from pter.
Absolutely! I intend to get all the open issues into the next release.
from pter.
So here we go -- until the end of this weekend I'll still assign new issues to the version 3.16 milestone but every subsequent new issue will have to wait longer. This'll do the trick to get a release out, I'm sure ๐
from pter.
Aaaand merged! Soon I'm through all pending issues and then I'll release.
Can't wait! :)
I might add the configuration option
word-boundary-characters
orword-delimiters
or something.
Yes!
P. S. Is this a good time to also take a look at #52 and possibly merge it?
from pter.
Alright, but releasing might take a while if I keep sending you patches :) I'll stop for now :)
from pter.
Related Issues (20)
- Commands to increase/decrease due dates HOT 11
- Distraction-free task editing/creation HOT 3
- Patch for help screen HOT 5
- Mouse-wheel scrolling broken after editing a task externally HOT 38
- Patch to fix caret key issues HOT 1
- Patch to improve line editing some more HOT 6
- Patch: UI proofreading/minor editing HOT 7
- Patch to invert completion highlighting HOT 2
- Helpbar improvements (configurable hints and key sorting) HOT 23
- Regression: pter crashes when choosing a filename to save the task to HOT 1
- Distraction-free mode should show task list on "jump-to" action HOT 6
- Bug: chained keybindings do not seem to work on the Help screen HOT 20
- What does "N" (edit note) do? HOT 6
- Request: Add filename in task format? HOT 13
- Add file name completion when searching HOT 8
- Bug: Editor keybindings not dumped? HOT 2
- Centralised archive with multiple todo.txt file HOT 1
- Support for different sources of tasks
- qpter not finding PyQt5 under python3 (No longer easily available under pip install) HOT 4
- new qpter issue (at least on my end!) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pter.