why exit when exit from $EDITOR?
when I moar a.sh then click v to edit file, after I click key to exit my editor, it always exit moar together. I remember that less only return itself when exiting editor. my question is how to stay in moar after clicking exit key in editor? thanks a lot
Try this:
bash -c "while true ; do date ; sleep 1 ; done" | moar- Inside of
moar, pressvto launch your editor - Replace everything with
hello - Exit your editor
In your opinion, what should moar display now?
- The original stream of constantly updating timestamps?
hellofrom your edits?
For reference, in less (at least the version that ships with macOS) this is handled by just not accepting v when the input is a stream.
@walles thanks your feedback. you could try less [file] then click v, edit something then exit . check what is looks like? less always stay there to show all content edited. I think this should be better way than moar. you agree?
Kindly try my example and tell me what you think moar should show after the editor is done.
Kindly answer my questions from https://github.com/walles/moar/issues/231#issuecomment-2262078749 and re-open this ticket @qbai.
Closing while awaiting your response.