Skip to content

pop-ecx/sigma_picker.nvim

Repository files navigation

sigma_picker.nvim

pick and convert to specific backends for sigma rules while inside neovim

I hate 2 things; excessive typing and Real Madrid 😂

I also write sigma rules a lot. To make my workflow a bit easier for me, I made this plugin to convert to a specific backend with a few keystrokes. Sigma_picker.nvim helps me to streamline my workflow and do conversions without even thinking. I have been using it for a while and thought maybe someone else will benefit from it.

🔥 How it feels

Once you are comfortable with the rule you wrote, call the backend picker and choose choose backend

Now choose the preferred config choose config

Your rule should be compiled and you'll get a result like this: generated rule

In action usage

⭐ Requirements

  • telescope.nvim
  • sigmac installed in your path

⚡ Installation

Using lazy for example:

require("lazy").setup({
    {
        "pop-ecx/sigma_picker.nvim",
        dependencies = { "nvim-telescope/telescope.nvim" },
    },
})

set your keymap like so

local spick = require("sigma_picker")
spick.setup({})
vim.keymap.set('n', '<leader>dz', spick.sigma_picker, {noremap = true , silent = true})

I'm using sigmac. I know it's deprecated. Thanks for reminding me

I also wrote a silly little lsp to help me when writing sigma rules. You can get it here. Works pretty well with the picker

Support

Has been tested on neovim 0.9.5.

Should work on neovim >=0.9.5

TODO

  • Add a few more backends to be converted
  • Move from sigmac to sigma-cli
  • Setup function is still WIP