Skip to content
Commands to change or print working directory
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


kakoune commands to change or print the working directory.


Add cd.kak to your autoload dir: ~/.config/kak/autoload/.

Or via plug.kak:

plug 'delapouite/kakoune-cd' %{
  # Suggested mapping
  map global user c ': enter-user-mode cd<ret>' -docstring 'cd'
  # Suggested aliases
  alias global cdb change-directory-current-buffer
  alias global cdr change-directory-project-root
  alias global ecd edit-current-buffer-directory
  alias global pwd print-working-directory


This file provides 4 commands:

  • change-directory-current-buffer: cd to current buffer dir
  • change-directory-project-root: cd to root dir (location of.git dir in parent dirs)
  • edit-current-buffer-directory: open an edit prompt in the current buffer directory
  • print-working-directory: echo $PWD

A cd mode is also available with a few predefined locations. Feel free to map your own bookmarks on it.

See also



You can’t perform that action at this time.