Skip to content

add custom delimiter option#3

Merged
gdubicki merged 1 commit into
gdubicki:masterfrom
luckman212:add-custom-delimiter
Apr 29, 2024
Merged

add custom delimiter option#3
gdubicki merged 1 commit into
gdubicki:masterfrom
luckman212:add-custom-delimiter

Conversation

@luckman212

Copy link
Copy Markdown

This is a verbatim copy of my old PR from main (abandoned?) fork - see zmwangx#17


One problem that I had was the delimiter of a single space was making it hard to integrate with some other logging tools that I also use. I wanted to use \t tab instead, but I went ahead and made this PR that adds a -d / --delim flag to allow any custom delimiter that might be desired.

Examples

ets --delim ' - '
ets -d '\t\t'
ets -d ':  '

One little neat trick you can do with this is create a delimiter that causes the terminal to beep when new lines are logged, e.g.

$ ping 1.1.1.1 | ets -d '\t\x07'

Hope this patch is ok, but let me know 👍

Comment thread main.go Outdated
@luckman212 luckman212 force-pushed the add-custom-delimiter branch from 6d6ad16 to 20bb4b1 Compare April 29, 2024 20:17
@gdubicki gdubicki merged commit 372a23a into gdubicki:master Apr 29, 2024
@gdubicki

Copy link
Copy Markdown
Owner

Thanks again! I’ll make a new release tomorrow.

@gdubicki

Copy link
Copy Markdown
Owner

I need a bit more time for the release - updating the man page is a nightmare an „interesting” time-travel-like experience… 🦕😅

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

Successfully merging this pull request may close these issues.

2 participants