Coder Social home page Coder Social logo

tmux-text-macros's Introduction

tmux-text-macros is a tmux plugin. It let's you define a bunch of strings, from which you can choose by pressing Prefix + e.

By default it contains all the emojis and a few emoticons

Demo

Requirements

Installation

  1. clone repository to ~/.tmux/plugins/
  2. add run-shell ~/.tmux/plugins/tmux-text-macros/tmux-text-macros.tmux to your ~/.tmux.conf
  3. run tmux source ~/.tmux.conf to enable the changes

Configuration

You can add your own custom macros to ~/.tmux/custom-macros. You can use the custom-macros file as a template.

If you want to disable all the default macros put set -g @ttm-load-default-macros off before loading the plugin in your .tmux.conf

Options

@ttm-load-default-macros (default: "on")

Disable all the default macros. Use this if you want to hide all emojis and just use your custom macros

@ttm-window-mode (default: "horizontal")

How to split the tmux window

  • horizontal
  • vertical
  • full -> new window

@ttm-keybind (default: "e")

Setting the keybind for tmux-text-macros to execute.

Usage

Press Prefix e (normally Ctrl+b e) and choose a string by choosing it with the arrow keys or by entering a search string and press enter.

tmux-text-macros's People

Contributors

joshsouza avatar neo-oli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tmux-text-macros's Issues

Error message when using prefix + e to invoke tmux-text-macros extension

Description:
When I press the prefix key followed by the "e" key to invoke the tmux-text-macros extension, it prints the following error message on the terminal:

"tmux split-window -h -n Macros "PANE='%0' /home/fedora/.tmux/plugins/tmux-text-macros/tmux-text-macros.tmux -r"' returned 1"

This error occurs even though I have not made any changes to the default keys.

Steps to reproduce:

  • Install the tmux-text-macros extension.
  • Open a tmux session.
  • Press the prefix key followed by "e" to invoke the extension.

Expected behavior:
The tmux-text-macros extension should be invoked and work as expected without any error messages.

Actual behavior:
An error message is displayed on the terminal as described above.

Environment:

Operating system: Fedora 36
Terminal emulator: xfce4-terminal
Tmux version: tmux 3.3a

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.