Menu

#186 ":w" broken

Major
closed-invalid
nobody
None
5
2022-11-16
2015-01-14
No

Typing ":w<enter>" does not write changes. This is a bug IMO and should be fixed.</enter>

Discussion

  • Ernie Rael

    Ernie Rael - 2015-01-15

    Tell me what steps I need to do to reproduce this. Since this hasn't been reported before, it's either a cockpit error or unusual circumstance.

    (If this is about the autocompletion flag, then you need to fix your options)

     
  • Ernie Rael

    Ernie Rael - 2015-01-15
    • status: open --> open-works-for-me
     
  • John Morris

    John Morris - 2015-06-19

    I'm having the same problem as the reporter of this bug, but let me elaborate a bit.

    First, I have only noticed this in Netbeans on Mac.

    I think it is a case of the jvi command line entry box trying to autocomplete the ":w".
    For example if I quickly type ":w" and hit enter, it autocompletes this to ":write ", so I have to hit enter a second time to accept the ":write " autocomplete.

    I am attaching a couple screen shots. The "jvi w autocomplete.png" shows it trying to autocomplete the :w". The "jvi after enter.png" shows it after autocomplete, stopping at ":write" + a space, where I have to hit enter again (or type a filename).

    Note: One workaround is to type ":w!", but I have to remember to do that...

     
  • John Morris

    John Morris - 2015-06-19

    Attaching second references screenshot here.

     
  • Ernie Rael

    Ernie Rael - 2015-06-19

    Notice in the initial response to this report it says

    If this is about the autocompletion flag, then you need to fix your options

    I'm pretty sure that's what is going on in your case. (this issue was discussed elsewhere with the initial reported of this bug) Go to

    "menu > tools > options > jViConfig > platform"

    and uncheck

    ":" Command Completion Auto Popup

    Then the <return> finishes the command (since not in completion mode). You can use <ctrl-space> or <ctrl-d> to bring up the completion window.</ctrl-d></ctrl-space></return>

    Here's what is going on. In the completion popup window, notice that it says

    write ...

    the "..." indicates there is an optional argument (this isn't very useful in NB until there's a way to change the current directory, (some day)), so when you type <enter> it completes the command as far as it can and waits for the optional stuff.</enter>

    I never heard back from the original poster, so who knows...

     
  • John Morris

    John Morris - 2015-06-19

    Ah, my eyes glazed over your mention of autocomplete in the first response.

    Thanks for the tip. That fixed my problem.

     
  • Ernie Rael

    Ernie Rael - 2022-11-16
    • status: open-works-for-me --> closed-invalid
     

Log in to post a comment.

MongoDB Logo MongoDB