...To support emoji and screenshots.
Last active
September 14, 2020 17:31
-
-
Save tooolbox/5cafd0d07de711b3d554d7b0087760e1 to your computer and use it in GitHub Desktop.
List of feature requests or bug reports for Chime
- Sometimes
gofmt
gets stuck and just won't format. I have to close the tab and re-open the file and then it works. πͺ² - Would be nice to have "developer mode" with debug output? Just to help with bug reports.
- Would be nice to have some sort of more global indicator as to when
gopls
has "loaded" and is "ready" and so on. In VSCode generally you see certain things underline and files in the listing change color. I know those aren't meant to be indicators ofgopls
loading, they're indicators of things thatgopls
is doing (linting or whatever) but having an equivalent in Chime would be handy. - Maybe start
gopls
in the background on startup so Chime is ready to use faster when you do open it? π - Typing
.
in a string shouldn't trigger auto-complete. πͺ² - Let's say I have a struct with a field of type
time.Time
. When I'm filling out a struct literal, if I have a function that produces atime.Time
, autocomplete will put the function into the field but not actually spell it out with arguments and return values and all that. πͺ² - Show hidden files & folders in the left pane (greyed out). π
Version 1.1.8!
(Seems like I had already downloaded v1.1.8 earlier?)
- Great on the type-through for
"
and'
. Marked this as fixed! - I just reworked my homegrown Monokai theme to be dark instead of light, noticed that (like all operators)
<-
isn't a different color, which kinda makes it blend in with surrounding text. Will append this to my list up above. - Excellent on the indentation when I hit
Tab
and all that. Seems a lot more robust. Marked as fixed! - Page Up/Page Down should move the cursor, not just the viewport.
- Hitting Save should close autocomplete.
- I can't seem to close Find In Project! Hitting the
X
does nothing. πͺ² - Autocompletion feels more precise or crisp somehow.
- Autocomplete options don't always sort in the most sensical fashion. Sometimes I'm typing the beginning of something, and it's in the list, but something that is not prefix-matching sorts to the top. πͺ²
- When I'm typing fast and try to choose an autocomplete, sometimes hitting "Enter" inserts a literal enter character instead of selecting the autocomplete. πͺ²
- Whenever the terminal command comes out, it should be
chm
becausechime
is hard to type. π - Quotes shouldn't double-up if you have an unmatched one earlier on the line. For example, if you have
"the quick brown fox |
and you hit"
you should get"the quick brown fox "|
. Currently Chime produces"the quick brown fox "|"
πͺ² - May have mentioned this earlier, but delimiters if you type an opening delimiter to the left of existing text, it shouldn't double-up. Meaning if you have
alpha |beta
and you type"
it should producealpha "|beta
. Right now chime producesalpha "|"beta
. πͺ² - Sometimes when I hit Save and it goes to format, it lags--I can still move my cursor around with the arrow keys, but the
Edited
status up top doesn't go away for a few seconds, then it sort of "jumps" (pointer rainbow-balls for a split second, cursor slows and then fast-forwards briefly) and saves. πͺ² - Weird line number bug; closing & reopening the file fixed it: ( πͺ² )
- When you have a dark theme, Chime starts up with the light theme, and then changes to dark once you open a file. πͺ²
- Autocomplete seems to trigger at the start of a line, and upon
.
and possibly other special characters, but often/always not when I'm in the middle of a line of text. πͺ² - Example of incorrect sorting from auto-complete: I typed
fals
and hit enter, and it auto-completed torequire.False
instead of just plainfalse
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A completion placeholder is itself not all that useful for anything except typing. Some ideas:
Enter
while you're on a placeholder should insert some text, put your cursor at the end of the text, and...possibly start autocomplete. I'll cover some rules for that below.Backspace
while you're on a placeholder should delete the placeholder and automatically prompt autocomplete, obviously showing what options are applicable for that spot.Placeholders
t.Errorf(οΏΌ[format], [args]οΏΌ)
. HittingEnter
on them inserts the text of the variable name and puts your cursor after it. If there is already an appropriately-typed variable with the same name available in your scope, don't start autocomplete. Otherwise start autocomplete, prioritizing the in-scope options of the appropriate type, but the current text that was just inserted is the first item on the list and pre-selected. HittingTab
right away just accepts the current value, dismissing auto-complete. Hitting it again jumps to the next placeholder if there is one.This is important, for example if you auto-complete a function like
func(err error, b []byte)
so you getfunc([err], [b])
and you hitEnter
you getfunc(err|, [b])
and if you have a variable callederr
in scope you can just hitTab
right away to jump to[b]
. If you don't have one, then autocomplete pops up and you can select your other weirdly-named variable callede
.Enter
on the placeholder should make a best-effort to insert the proper constructor for that type, so either a struct literal, a slice literal, a""
with your cursor in between like"|"
, or an empty space with autocomplete started for things likeerror
orint
. If it's a struct or a slice literal, it would have&
as appropriate if the field is a pointer type. If it's a*string
you wouldn't get&"|"
since that's invalid, you would just get&|
with autocomplete started as a hint that you need to pick an existing string. (HittingTab
on the placeholder should maybe start autocomplete, since you pretty much never mean to insert a tab character and there's only ever one placeholder in this scenario? Not totally sure if this is the best idea.)This is important because it lets you populate things quickly. If you want to just pick an existing thing rather than get a whole struct literal, then do
Ctrl+Space
orBackspace
, or better yet just start typing.Enter
then it inserts the package name as part of the constructor. (This was probably obvious.)Enter
and insert the text of the placeholder, and you don't have a matching variable in-scope and autocomplete is triggered, an option near the top should be the constructor for that type.Auto-completing...

Completed!

Hm, what are the exact types again? What if: (excuse the poor photoshopping)
