Comments (8)
Good idea; I donโt use another viewer than my editor, but I see how it can be useful.
Thanks a lot for contributing as much as you do, Iโm really grateful!
from pter.
I'm not sure yet how to do this, but have a look at this commit: it's possible to use the note
parameter in hooks.
Maybe there's a way here to (for example), have pter run in something like tmux and set up the on-select
hook to automatically open (reuse?) a note viewer in a split panel right next to pter. Maybe. I don't have the time to check how to do this in detail, but it should be possible.
Anyway, I'll still pull your changes in ๐
from pter.
After more testing, I've switched to viewer = nano --restricted --view --nohelp
instead of less
. I use nano
as the external editor, so this makes sense. And nano
is used as a fallback value for editor
anyway.
I've also discovered that when a pager like less
or batcat --pager always
is used, you can press Ctrl-C
to exit the viewer abnormally, which crashes pter. Perhaps Ctrl-C
can be trapped, I don't know, but I've set up nano
as both editor and viewer with a custom nanorc and this works great for me.
In any case, I would suggest defaulting to nano --view
as a fallback viewer.
from pter.
less
works fine once Ctrl+C
is caught. So I used less
and more
as the fallbacks. Also -- it's in!
from pter.
No problem, happy to help!
from pter.
Sounds like a good idea. I had some problems running pter
in tmux (I think some keys failed to work, but this may have been fixed by now.) I'll check it out!
from pter.
Just in case, here's the same patch set, only against https://codeberg.org/vonshednob/pter/commit/0f1a4bcfd045f0123be2604d75e4714a396740a9:
96-view-note-1.diff.gz
96-view-note-2.diff.gz
96-view-note-3.diff.gz
96-view-note-4.diff.gz
96-view-note-5.diff.gz
from pter.
less
works fine now, yes!
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.