GithubHelp home page GithubHelp logo

namedclips's Introduction

Named Clips

Give persistent names to things you copy and paste so you don't have to go through the whole kill ring til you find what you need.

Installing

Copy the named-clips.el file into your .emacs.d directory and add this line to init.el:

(load "~/.emacs.d/named-clips.el")

Or you could put it at some other path and load that path instead. If you prefer a different prefix for the keybindings, set the named-clips-keybinding-prefix variable before loading the file, or call nclip-set-keybindings with a new prefix as the argument:

;; This works:
(setq named-clips-keybinding-prefix "C-c q")
(load "~/.emacs.d/named-clips.el")

;; Or this:
(load "~/.emacs.d/named-clips.el")
(nclip-set-keybindings "C-c q")

Commands and Keybindings

All keybindings have a common prefix followed by a single key. C-c n is the default prefix and here are the default keybindings for the commands:

Keybinding Command
C-c n n If there is an active region, give it a name, otherwise name the last item on the kill ring
C-c n w Name active region as a clip
C-c n k Name last item on the kill ring
C-c n i Insert named clip at point in current buffer
C-c n c Put nammed clip on the system clipboard and add it to the kill ring
C-c n l Show list of all currently defined named clips
C-c n r Remove clip with name
C-c n X Clear all named clips

The first four commands will prompt you for the name of the clip you want. C-c n n is probably the most convenient way of naming clips since you can use it for both naming a region or the last item on the kill ring. This is is the equivalent of "copy". C-c n i is the equivalent of "paste" and has tab completion when it prompts you for the name. You will be prompted for confirmation if you attempt to create a clip with the same name as a clip that already exists.

namedclips's People

Watchers

James Cloos avatar Daniel Hones avatar

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.