omerxx / tmux-sessionx

A Tmux session manager, with preview, fuzzy finding, and MORE
GNU General Public License v3.0
712 stars 63 forks source link

Using basename for finding current directory from a path. #96

Closed sarojregmi200 closed 4 months ago

sarojregmi200 commented 4 months ago

Solves #93.

Compatibility: basename package is listed in core utils of the GNU project and is also present in the POSIX commands list. It is also described in Single Unix Specification. Hence it should be compatible with almost all linux distros as well as Mac os.

References:

sarojregmi200 commented 4 months ago

Apparently, there are some more bugs that were later introduced after this implementation so, for the time being this pr has been converted to draft.

Will update it gradually ASAP;

sarojregmi200 commented 4 months ago

The changes made above do not have any compatibility issues as per my issue and the bugs that were caused due to limited understanding of bash are now solved.

If this is not the intended direction for this plugin pattern matching can be a viable option too.

omerxx commented 4 months ago

Thank you @sarojregmi200 !