Skip to content
Kakoune extension to change-directory with additional switches
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
rc
CONTRIBUTING
README.md
UNLICENSE

README.md

change-directory

IRC

Usage | Documentation | Contributing

Kakoune extension to change-directory with additional switches.

Installation

Pathogen

pathogen-infect /home/user/repositories/github.com/alexherbo2/change-directory.kak

Configuration

Usage

change-directory [-buffer] [-git] [directory]

Example – Add a command to switch to the project root of the current buffer:

define-command change-directory-project-root %{
  change-directory-buffer
  try change-directory-git
}

alias global cd! change-directory-project-root

Example – Automatically switch to the project root of the current buffer:

hook global WinDisplay .* change-directory-project-root
hook global FocusIn .* change-directory-project-root

Commands

  • change-directory-buffer [buffer-name = current-buffer]: Change the working directory to the given (or current) buffer directory
  • change-directory-git: Change the working directory to the Git root
You can’t perform that action at this time.