Git Product home page Git Product logo

Comments (5)

leechannl avatar leechannl commented on June 1, 2024

@tony

The autocomplete seems to escape all special characters in session name, not only spaces.

I just try session names like test-1, test_1, and it gives me test\-1, test\_1.

Is this behavior by design?

from tmuxp.

leechannl avatar leechannl commented on June 1, 2024

43ae67b#diff-a498a9add27795c3cfd1d480159f1697R304

Then it's by design.

And the About tmux page is really helpful!

from tmuxp.

tony avatar tony commented on June 1, 2024

@leechannl

This was a midway update experimenting with how to fix escaping on bash completion.

Previously, argparse appeared to accept multiple arguments. In practice, it concatenated unescaped spaces into a full session name.

Now, argparse accepts one argument, but what about argcomplete (our bash completer) where there is special symbols and spaces in the name?

Currently, the solution to this problem is going to require changes to argcomplete, the situation is a bit more complicated because it involves escaping for both zsh and bash, argcomplete's zsh and bash script, and argcomplete's way of returning the completions, and tmux allows many special chars for session names.

from tmuxp.

tony avatar tony commented on June 1, 2024

This is indeed a larger issue @leechannl. I moved the recent work to a branch in https://github.com/tony/tmuxp/tree/new_completion.

from tmuxp.

stale avatar stale commented on June 1, 2024

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

This bot is used to handle issues where the issue hasn't been discussed or
has gone out of date. If an issue isn't resolved and handled in a certain
period of time, it may be closed. If you would like your issue re-opened,
please create a fresh issue with the latest, up to date information and
mention this issue in it.

from tmuxp.

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.