Code Monkey home page Code Monkey logo

Comments (6)

amirrezasadeqi avatar amirrezasadeqi commented on June 7, 2024

hi there again.

I actually found the problem. it is because i have used underline in the name of session like "setup_blah". so for eample in the bellow line it can't grep the correct name of session:
cur_win=$(tmux display-message -p | sed -e 's/^.//' -e 's/] /:/' | grep -o '[[:alpha:]|[:digit:]]*:[[:digit:]]*:' | sed 's/.$//g')
actually i am not expert in bash programming i just found this by running the individual parts in my terminal. so it actually does not support naming with underline. is there any way to solve this? as i mentioned i am not expert but if you guide me a little maybe i can find the solution.

thanks !

from tmux-fzf.

amirrezasadeqi avatar amirrezasadeqi commented on June 7, 2024

after a bunch of trials and errors (sed commands are too wierd. i don't understand them well!!!) i found an alternative and that is like bellow command:
tmux display-message -p | sed -e 's/^.//' -e 's/] /:/' -e 's/,.*$//' -e '$s/:\w*$//'
this supports the names with underline. i don't know if this could help to solve this problem globally.

from tmux-fzf.

sainnhe avatar sainnhe commented on June 7, 2024

Thank you! This should be fixed via 9f93734.

from tmux-fzf.

amirrezasadeqi avatar amirrezasadeqi commented on June 7, 2024

Thanks you for your fast fix. Now it works well. I manually applied the changes to the scripts and tested it(actually at the momment i don't know how to automatically update the plugin 😅, but i will search it.)

good luck!

from tmux-fzf.

sainnhe avatar sainnhe commented on June 7, 2024

actually at the momment i don't know how to automatically update the plugin

If you are using tpm, press prefix + U (shift+u).

Or cd ~/.tmux/plugins/tmux-fzf and then git pull origin master.

from tmux-fzf.

amirrezasadeqi avatar amirrezasadeqi commented on June 7, 2024

Thanks. I did the second way and now it is ok.

from tmux-fzf.

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.