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

"ripgrep" snowblock #266

Merged
merged 1 commit into from
May 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions snowblocks/ripgrep/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright (c) 2016-present Arctic Ice Studio <development@arcticicestudio.com>
# Copyright (c) 2016-present Sven Greb <development@svengreb.de>

# Project: igloo
# Repository: https://github.com/arcticicestudio/igloo
# License: MIT

# Configuration for `ripgrep`.
# Run `ripgrep --help` to get a list of all possible configuration options.
#
# See:
# https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#configuration-file
# https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#colors

# Limit maximum columns to prevent ripgrep to vomit really long lines,
# but show a preview for such cases instead.
--max-columns=150
--max-columns-preview

# This is similar to `--ignore-case`, but disables itself if the pattern contains any uppercase letters.
--smart-case

# Adjust the color styles for match the "Nord" theme.
# Note that the "Nord" color palettes must be provided through the terminal.
# Due to the format of this configuration file it is currently not possible to use shell syntax like
# environment variables in order to dynamically pass color values.
# See:
# 1. https://www.nordtheme.com
# 2. https://github.com/BurntSushi/ripgrep/issues/1548

# Use `nord9` with an underlined font style for the column number of the matched line.
# It will be displayed next to the line number separated by a colon when the `--column` flag has been set.
--colors=column:none
--colors=column:fg:4
--colors=column:style:underline
# Use `nord9` for the line number of the search pattern match.
--colors=line:none
--colors=line:fg:4
# Use `nord1` as background and `nord8` as foreground color for the search pattern match.
--colors=match:none
--colors=match:bg:0
--colors=match:fg:6
# Use `nord7` with an bold font style for the file path of the search pattern match.
--colors=path:none
--colors=path:fg:14
--colors=path:style:bold
13 changes: 13 additions & 0 deletions snowblocks/ripgrep/snowblock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"clean": ["$RIPGREP_CONFIG_PATH"]
},
{
"link": {
"$RIPGREP_CONFIG_PATH": {
"create": true,
"path": "config"
}
}
}
]