Giter Club home page Giter Club logo

Comments (4)

gpakosz avatar gpakosz commented on June 27, 2024 1

Hmm,

# command_prompt() {
#   _status_format_0=$(tmux show -gv 'status-format[0]')
#   tmux set 'status-format[0]' "$_status_format_0"
#   tmux set 'status-format[1]' "$_status_format_0"
#   tmux set status 2
#   tmux command-prompt
#   tmux set -u 'status-format'
#   tmux set -u status
# }

Is it better?

from .tmux.

gpakosz avatar gpakosz commented on June 27, 2024

Hello @Nicholas-Autio-Mitchell 👋,

You can try the following, ⚠️ pretty much untested and very specific to you needs...

Edit your .local customization file and so that it contains the following:

...

bind : run-shell "cut -c3- $TMUX_CONF_LOCAL | sh -s command_prompt"

# -- tpm -----------------------------------------------------------------------

...

# # /!\ do not remove the following line
# EOF
#
# # /!\ do not "uncomment" the functions: the leading "# " characters are needed
#
# command_prompt() {
#   _status=$(tmux show -v 'status')
#   _status_format_0=$(tmux show -v 'status-format[0]')
#   _status_format_1=$(tmux show -v 'status-format[1]')
#   tmux set 'status-format[1]' "$_status_format_0"
#   tmux set status 2
#   tmux command-prompt
#   tmux set status "$_status"
#   tmux set 'status-format[1]' "$_status_format_1"
# }

...

from .tmux.

Nicholas-Autio-Mitchell avatar Nicholas-Autio-Mitchell commented on June 27, 2024

Thanks for the quick reply!

That did open a new line for the command prompt, but at the same time made the status line disappear (and it never comes back).

from .tmux.

Nicholas-Autio-Mitchell avatar Nicholas-Autio-Mitchell commented on June 27, 2024

That works - thanks a bunch!

from .tmux.

Related Issues (20)

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.