Improve programmatic accessibility #376
jotaen
started this conversation in
Feature ideas & discussions
Replies: 2 comments
-
|
Could |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@vladdeSV yes, have implemented it that way now |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m currently experimenting with wrapping shell scripts around klog, e.g. to automatically create new
.klgfiles based on a date pattern. Say, you follow the conventionYYYY-MM.klgthen such a shell script could take care of creating a new file on the fly at the beginning of a new month. (Just for reference: incorporating such functionality directly into klog is out of scope.)In order to improve that kind of programatic access to klog, the following things would be handy:
-1.klog bookmark get→Current bookmark: /home/users/foo/myfile.klgklog bookmark get --quiet→/home/users/foo/myfile.klgThat way you can do
CURRENT_BOOKMARK=$(klog bookmark get --quiet)in a more robust way.total,bookmarkorversion--quietshould imply--no-colorBeta Was this translation helpful? Give feedback.
All reactions