Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash ligatures #115

Closed
5 tasks
adrianparvino opened this issue Sep 16, 2018 · 5 comments
Closed
5 tasks

Bash ligatures #115

adrianparvino opened this issue Sep 16, 2018 · 5 comments

Comments

@adrianparvino
Copy link

adrianparvino commented Sep 16, 2018

It would be cool to have some ligatures for Bash, considering that #{ already has ligatures.

Off the top of my head, I can name the following that I would appreciate having ligatures for.

  • $(
  • $((
  • ${
  • ((
  • ))
@fabrizioschiavi
Copy link
Owner

How do you imagine the design of these ligatures?

@Porges
Copy link

Porges commented Sep 18, 2018

(( and )) would be difficult because they come up normally in 'unbalanced' situations: ((int)x + 1) * 2

@adrianparvino
Copy link
Author

adrianparvino commented Sep 18, 2018

@Porges FWIW, there are ligatures for [[ and ]], despite them being unbalanced sometimes.

@fabrizioschiavi I'm thinking similar to the design of #{. Just pack the spacing a bit, for example.

@fabrizioschiavi
Copy link
Owner

I agree with @Porges because spacing a bit can cause unbalancing situations.
[[ and ]] was removed since version 0.828 just for this reason (see #119) .
#{ it's ok for the weird 'nature' of #

@adrianparvino
Copy link
Author

Aww. :( Thanks anyway!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants