You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Anything with "fi" gets unindented, even if not scoped inside of an "if" #101
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
When typing anything with "fi" inside of Atom editor, with the Shellscript language enabled, it gets unindented to the next level. Which forces you to have to go to the beginning of the line and properly indent it.
Steps to Reproduce
Open a file
Set syntax to shellscript
Press Tab
Type fi
Expected behavior:
It not to unindent until a space happens... and only if within the context of an if. At minimum though I would expect it to wait until I finish typing and press space, because the find command is quite common in any shell script, this gets in the way quite a bit when working with scripts.
Is it common to have a space character after a fi?
It's not common to have a space (I was just waking up and hadn't had coffee yet sorry about that crazy nonsensical comment.) 😂 the space was me thinking "wait till I hit space for 'find' before doing it" but that doesn't make sense really.
Is there a guide or something that shows how to use "tree-sitter"? It seems that searching in packages doesn't help, or must I build, or use a specific version of Atom or...?
Activity
winstliu commentedon Feb 5, 2018
This part should be fixed if you start using the new tree-sitter grammar included with language-shellscript.
Is it common to have a space character after a
fi? It seems to me likefis are usually at the end of the line, like so:envygeeks commentedon Feb 5, 2018
It's not common to have a space (I was just waking up and hadn't had coffee yet sorry about that crazy nonsensical comment.) 😂 the space was me thinking "wait till I hit space for 'find' before doing it" but that doesn't make sense really.
envygeeks commentedon Feb 5, 2018
Is there a guide or something that shows how to use "tree-sitter"? It seems that searching in packages doesn't help, or must I build, or use a specific version of Atom or...?
winstliu commentedon Feb 5, 2018
I think it'll be shipping in Atom 1.25.0 beta, and there will be a setting for you to turn on in Settings -> Core (
Use Tree Sitter Parsers).envygeeks commentedon Aug 15, 2018
Just updating to say that treesitter didn't fix this, when in the context of an if, when I start to type "fi" for "find" it unindents.