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

[feature] Option to highlight (background/foreground) of the output and keep track of some specific highlights (bookmarks) #109

Open
ddofborg opened this issue Dec 29, 2023 · 0 comments

Comments

@ddofborg
Copy link
Contributor

ddofborg commented Dec 29, 2023

I use mprocs to run background taks based on a producer / consumer queue (basically run forever). Very simple and effective tool, love it!!

It's helpful to be able to quickly find if some output contains a string which indicates something, like an error or some other message. Highlighting the output and keeping track a list (bookmarks) of these matches would be super helpful.

Example: highlight the output with color C if regex R matches a line. Then keep track of the position of this line in the scrol buffer and keep a list of matches (bookmarks) for quick navigation to the match. Also clearing of the bookmarks and keeping at most X recent bookmarks might be useful. Other option would be to keep a relative time or timestamp of each bookmark. Also an option to highlight the whole line or just the match.

procs:
  proc1:
    shell: "./start.sh"
    highlights:
      - regex: "^err:"
        bg: "red"
        bookmark: true
        highlight: line
      - regex: "^ok:"
        fg: green
        bookmark: false
        highlight: match
@ddofborg ddofborg changed the title Option to highlight (background/foreground) of the output and keep track of some specific highlights (bookmarks) [feature] Option to highlight (background/foreground) of the output and keep track of some specific highlights (bookmarks) Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant