Giter Club home page Giter Club logo

nnn-cppath's Introduction

cppath

A nnn (=n³) plugin to copy (relative) file paths in the clipboard.

Works on both X11 and Wayland.

Installation

  1. Run install.sh.
  2. Map to a keybinding by exporting
    NNN_PLUG='c:cppath;'
    

Usage

  1. Call a first time on file A.
  2. Call a second time on file B.
  3. If A≠B, the relative path from A to B is copied in the clipboard. If A==B, then the full path of A is copied in the clipboard.

nnn-cppath's People

Contributors

raffaem avatar

Stargazers

Andrew Davis avatar  avatar Pablo avatar

Watchers

 avatar

nnn-cppath's Issues

Tests for XDG_SESSION_TYPE will always revert to Wayland

I believe that in the tests for XDG_SESSION_TYPE the equality operator should have spaces around it, i.e., $XDG_SESSION_TYPE== wayland" should be $XDG_SESSION_TYPE == "wayland". Similarly for x11. In my FreeBSD 13 installation it always reverts to Wayland and wl-copy is not installed.

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.