zellij icon indicating copy to clipboard operation
zellij copied to clipboard

Support for `~/foo/bar` patterns in configuration files

Open akhildevelops opened this issue 2 years ago • 6 comments

Zellij currently doesn't support shorthand representation of home directories i.e, ~ in configuration files.

It would be helpful if zellij can parse cwd having ~ in it.

Ex:

layout {
           ...
            pane {
                cwd "~/projects"
            }
      ...
}

akhildevelops avatar Dec 19 '22 05:12 akhildevelops

Maintainer told me to make an issue about this but I was too lazy 😂. Not only ~, but I hope environment variables like $HOME gets supported too 🙏

pseudoparenchymatous avatar Dec 19 '22 19:12 pseudoparenchymatous

@imsnif let me know if #2035 is in consideration. I would be happy to contribute.

akhildevelops avatar Dec 20 '22 06:12 akhildevelops

I'm having the same issue, this doesn't work with tabs either.

bkerz avatar Mar 08 '23 07:03 bkerz

I was a bit confused by the dafault config file mentioning default_shell being set to $SHELL by default, or scrollback_editor being set to $EDITOR.

This is because setting those options to those values doesn't work. Those environment variables are not expanded for those config options.

Can someone confirm if that is indeed the case, or whether I'm missing something?

If so, is that something being worked on? Because the docs seems to suggest it's possible to use the $EDITOR value for example, or some other environment variable.

MurtadhaInit avatar Jun 09 '23 19:06 MurtadhaInit

Should this issue be closed as completed due to #2291, part of Release v0.37.0?

sebastiancarlos avatar Jun 19 '23 19:06 sebastiancarlos

Should this issue be closed as completed due to https://github.com/zellij-org/zellij/pull/2291, part of Release v0.37.0?

I've just upgraded to the latest release and the issue is still present, as described above.

MurtadhaInit avatar Jun 19 '23 23:06 MurtadhaInit