GithubHelp home page GithubHelp logo

elxiki's Introduction

ElXiKi

Elxiki is a emacs minor mode that performs context-aware actions based on the line at point. For instance, on the line "+ /home/", it will list all files in the home directory below it. Activating one of those lines will find that file. Other examples are "google/emacs/" to bring up a google search, or "env/" to list all your environment variables, which can then be edited directly.

Inspired by Xiki, but this time implemented in elisp.

Xiki is really nice, but it (a) has a ton of extra dependencies, and (b) overwrites a lot of emacs's defaults. Elxiki is an attempt writing at some of the easier to implement features in emacs lisp while following (more of) the emacs style guidelines.

Features

At point, you can:

  • Fold/Unfold a directory.
    • Works with tramp too.
  • Run synchronous and asynchronous shell commands.
    • Also in subdirectories.
  • Run elisp.
  • Open files.
  • Open menus.
    • Have menu items run arbitrary code.
  • Filter output by typing.

Installation

Just require elxiki:

(add-to-list 'load-path "the/elxiki/folder/")
(require 'elxiki)

To get started, open up a buffer (scratch works fine), run M-x elxiki-mode, goto a new line, type elxiki/, and hit C-<return>.

Usage

Just M-x elxiki-mode, and then use elxiki-command (bound by default to C-<return> and M-<return>) to do things.

Open a directory:

Type a directory name on a new line starting with "~", ".", or "/" and ending with "/". Then you can open/close it with elxiki-command.

Run a shell command:

Any line starting with "$ " will run as a shell command inline. "% " Can be used for asynchronous commands. If the lines are indented below a directory, they are run as if they were in that directory.

Run emacs lisp:

"! " lines will run emacs lisp commands inline.

Menus:

"@ " or prefixless lines will open up menus, if you have them defined. The all/ menu lists all menus.

Stuff To Add

  • Saving menus.
  • Work on windows, etc.
  • Comment prefixes.

elxiki's People

Contributors

gwx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.