Skip to content

dcomtois/pathToClip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Path To Clipboard (RStudio Addin)

This pathToClip addin allows you to store the active document's path to the clipboard.

While many editors have this feature built-in, RStudio doesn't (at least not yet).

On OS X and Linux, it uses the clipr package, which in turn relies on either "xclip" or "xsel", small utilities that can be installed in just a few seconds. See here, for Linux distro-specific instructions.

On Windows, no additional software is required.

Installation

It can be installed via 'addinslist', or using 'devtools' or 'remotes':

remotes::install_github("dcomtois/pathToClip")

Shortcut suggestion

As with any other addin, you can assign a keyboard shortcut to it.

I like to use < Ctrl + Alt + C >, since it's easy to remember and it's not pre-assigned (see animated demo if needed).

Simplified version

If you don't like having 3 entries in your Addins menu and need only the platform-specific path separator, install version 0.1.0:

remotes::install_github("dcomtois/pathToClip", ref="0-1-0")

Demo

Gif Demo

About

RStudio Addin -- Copy File Path to Clipboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages