Git Product home page Git Product logo

age-secret.nvim's Introduction

Neovim AGE Plugin

Description

This Neovim plugin provides seamless integration for handling AGE encrypted files, specifically focusing on files with the .age extension. It automates the encryption and decryption process, allowing for a smooth workflow within Neovim. Features

  • Automatically decrypts .age files upon opening.
  • Encrypts .age files before saving.

Installation

Using packer.nvim

use {
    'histrio/age-secret.nvim',
    config = function()
        require('age_secret').setup({
            -- Configuration options
        })
    end
}

Configuration

To configure, set the AGE_RECIPIENT and AGE_IDENTITY environment variables in your shell or operating system. Alternatively, you can configure these settings within Neovim:

require('age_secret').setup({
    recipient = "age1..." -- Replace with your AGE recipient
    identitry = "~/age-key.txt" -- Replace with your AGE recipient
})

Usage

  • Open a .age file - it will be automatically decrypted.
  • Save a .age file - it will be automatically encrypted.
  • Change AGE recipient or identity dynamically:
    :SetAgeRecipient age1...
    :SetAgeIndentitry ~/age-key.txt

Requirements

Neovim 0.5 or later.
Rage installed and configured on your system.

Contributing

Contributions are welcome! If you have a feature request, bug report, or suggestion, please open an issue on the GitHub repository.

License

This plugin is released under the MIT License.

age-secret.nvim's People

Contributors

histrio avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mindeng mathstuf

age-secret.nvim's Issues

Feature request: Read age parameters form environment variables

Hello,

I have to encrypt to various, often changing public keys. It is a bit tedious to have to edit the neovim configuration every time or use the commands, especially if you want to script the editing.

Would it be possible to read the age key location and the recipients from environment variables if set? (falling back to the current behaviour)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.