All Projects → TeddyDD → kakoune-edit-or-dir

TeddyDD / kakoune-edit-or-dir

Licence: Unlicense license
File browser for Kakoune

Labels

Projects that are alternatives of or similar to kakoune-edit-or-dir

kakoune-find
Find and replace on open buffers
Stars: ✭ 30 (+66.67%)
Mutual labels:  kakoune
one.kak
Atom "One" color schemes for Kakoune.
Stars: ✭ 19 (+5.56%)
Mutual labels:  kakoune
kakoune-sudo-write
Write to files using 'sudo'
Stars: ✭ 24 (+33.33%)
Mutual labels:  kakoune
Kakoune
mawww's experiment for a better code editor
Stars: ✭ 7,593 (+42083.33%)
Mutual labels:  kakoune
kakoune-colors
Color schemes for kakoune
Stars: ✭ 15 (-16.67%)
Mutual labels:  kakoune
snippet.kak
Snippets integration for Kakoune
Stars: ✭ 23 (+27.78%)
Mutual labels:  kakoune
smarttab.kak
Automatic handling different styles of indentation and alignment.
Stars: ✭ 52 (+188.89%)
Mutual labels:  kakoune
tagbar.kak
Tag viewer for Kakoune
Stars: ✭ 19 (+5.56%)
Mutual labels:  kakoune
kak-ansi
Kakoune support for rendering ANSI-colored text.
Stars: ✭ 30 (+66.67%)
Mutual labels:  kakoune
kakboard
Clipboard integration for Kakoune
Stars: ✭ 49 (+172.22%)
Mutual labels:  kakoune
connect.kak
Connect a program to Kakoune clients
Stars: ✭ 80 (+344.44%)
Mutual labels:  kakoune
powerline.kak
Kakoune modeline, but with passion
Stars: ✭ 49 (+172.22%)
Mutual labels:  kakoune
emmet-cli
Emmet command line interface
Stars: ✭ 27 (+50%)
Mutual labels:  kakoune
kaktree
File explorer side panel for Kakoune
Stars: ✭ 39 (+116.67%)
Mutual labels:  kakoune
kakoune-gdb
gdb integration plugin
Stars: ✭ 44 (+144.44%)
Mutual labels:  kakoune
kakoune.cr
A command-line tool for Kakoune
Stars: ✭ 42 (+133.33%)
Mutual labels:  kakoune
auto-pairs.kak
Auto-pairing of characters for Kakoune
Stars: ✭ 62 (+244.44%)
Mutual labels:  kakoune
kakoune-themes
Color schemes for kakoune , extra syntax highlighting and my config
Stars: ✭ 25 (+38.89%)
Mutual labels:  kakoune
kakoune-ghci-bridge
Get intellisense for Haskell in Kakoune via ghci
Stars: ✭ 13 (-27.78%)
Mutual labels:  kakoune
kakoune-extra-filetypes
Extra highlighters for the Kakoune editor
Stars: ✭ 20 (+11.11%)
Mutual labels:  kakoune

Kakoune Edit or Dir

Deprecated in favour of alexherbo2/explore.kak

@alexherbo2's implementation does the same thing but better 💚


GitHub tagGitHub license

Sometimes, when I use :edit command in Kakoune, I press enter too early. Kakoune complains foo is a directory. I know Kakoune, thank you very much. What if editing directory would show you interactive file browser instead?

GIF time!

GIF

Installation

Source edit-or-dir.kak from your kakrc or use plug.kak.

For convenience I recommend aliasing :edit-or-dir command to :e. I do not recommend aliasing or overriding built-in :edit command, since it might broke other scripts. Replacing :e alias is fine, scripts should not relay on aliases anyway.

unalias global e edit
alias global e edit-or-dir

Usage

edit-or-dir [PATH]

PATH - relative or absolute path to file or directory.
       . means current directory
       .. means parent directory
       If PATH is directory, file browser in temporary buffer *dir* will be opened

When in *dir* buffer you can use following bindings:

  • Return: Open selected files
  • Backspace: Go to parent directory
  • Alt h: Toggle hidden files
  • Escape: Close file browser

You can open multiple files by selecting them with x or other selection method like %sregexReturn

Related plugins

Changelog

  • 0.1 2018-09-26:
  • 0.2 2018-09-27:
    • FIX Replace basename with substitution, PR #1
  • 0.3 2018-09-28:
    • ADD Hidden files toggle, PR #2
    • ADD New bindings, PR #2
    • ADD EditorConfig for developers
    • FIX Remove new line from end of *dir* buffer
    • FIX Apply changes proposed by ShellCheck
  • 0.4 2018-10-13:
    • ADD support to edit multiple files, PR #4
    • ADD CONTRIBUTING document, PR #4
    • ADD edit-or-dir-{forward,back} internal (hidden) commands, PR #4
    • FIX Fix Typos, improve style and formatting of README, PR #4
    • CHANGE rename edit-or-dir-display-dir (internal command, not breaking), PR #4
    • CHANGE refactoring, PR #4
  • 0.5 2018-11-05:
    • Kakoune v2018.10.27
    • ADD issue template
    • CHANGE switch to directory layout with scripts in rc subdirectory (breaking: update source path in kakrc)
    • FIX remove --group-directories-first flag from ls call (MacOS compatibility)
  • 0.6 2019-06-16:
    • ADD expand ~ in :edit-or-dir #11
    • FIX don't show .. in root PR: #12
    • CHANGE refactoring PR: #11 #12
  • 2020-01-02 DEPRECATED
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].