Comments (3)
+1 having same issue
from tmux-open.
I originally reported this to TPM because it was returning 1
on load, but after digging through source and running bash -x
a few times, I was able to narrow it down. The underlying issue is in scripts/helpers.sh
, line 38, inside the stored_engine_vars
function:
stored_engine_vars() {
tmux show-options -g | grep -i "^@open" | cut -d '-' -f2 | cut -d ' ' -f1 | xargs
}
As suggested by @jandamm in the original issue, the best solution would probably be to add something like grep -vi "^@open-editor"
in that pipeline. For that matter, running this manually (tmux show-options -g | command grep -i "^@open" | cut -d '-' -f2 | cut -d ' ' -f1
) and comparing to the output without the cut
s shows that my @open
setting of C-f
is also included in the output, which it probably shouldn't be. Maybe changing the grep pattern to ^@open-
would also be useful? A quick test of tmux show-options -g | command grep -i "^@open-" | command grep -vi "^@open-editor" | cut -d '-' -f2 | cut -d ' ' -f1
excludes my grep
aliases and produces the expected output of just S
.
For anyone else still experiencing this issue, you can manually edit your local copy; TPM doesn't update plugins from the source repos until you specifically tell it to. The "is installed" check just looks for the directory, so even installing new plugins shouldn't be an issue as long as you don't trigger an update of existing ones. A quick test by changing line 38 in my own install has it working properly, even after manually running tpm/scripts/install_plugins.sh
and using the prefix + I
keybind to do so automatically.
To manually resolve this:
Open ~/.tmux/plugins/tmux-open/scripts/helpers.sh
(replace ~/.tmux/plugins
with your install location) and replace line 38 with the following:
tmux show-options -g | grep -i "^@open-" | grep -vi "^@open-editor" | cut -d '-' -f2 | cut -d ' ' -f1 | xargs
from tmux-open.
Thank you for narrowing this problem down. Fixed via a9d2971
from tmux-open.
Related Issues (20)
- Tilde unexpanded in paths HOT 2
- Override search keybinding
- tmux-open can not work with tmux-tpp HOT 1
- Debug help HOT 1
- Not working after tmux 2.4 HOT 2
- Can't set other editor than vim HOT 2
- Custom hotkey for search in browser HOT 3
- New release, please? HOT 1
- [PROPOSAL]Migrate from grep to ripgrep
- Question: Is it possible to open the path under the cursor without first selecting the path?
- README search keybinding description is inaccurate
- Not working for specific URLs HOT 2
- Not able to open file / directory when highlighting through search
- tpp fails to install tmux-open HOT 2
- Doesn't work on tmux 3 HOT 1
- Create release tag
- Doesnt work HOT 1
- If absolute path doesn't match, look relative to current directory of the pane
- [bug] url containing '#' will fail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-open.