Skip to content

sabof/switch-dir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

switch-dir

Switch between 2 related files. Can be used for unit tests or compiled files.

The files may be located in different directories and have different extensions. They may be located in sub directories, as long as the trees are the same. One directory may also contain the other.

Usage:

create a .dir-locals.el in your project root, and write a config similar to:

((js2-mode
  (switch-dir-spec
   . (("node/" "node-tests/"  "js" "spec.js")
      ("public/scripts/" "public-tests/" "js" "spec.js")))))

The extensions are optional and will be assumed to be identical if omited.

Calling switch-dir will switch to the "other" file. With a prefix argument the file will be created if it doesn't exist.

About

Switch between related files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published