Threads for toddmazierski

  1. 3

    Can anybody tell me how to disable the “preview tab” state, where you click on something once in the explorer (or more importantly open it with cmd-p), and it opens but in a “preview” tab that will be replaced? Or better yet, I’d like to promote “preview” tabs (I’m probably using the wrong term here) into real tabs once you’ve had it open and/or focused for a few minutes?

    1. 3

      I haven’t figured out how to disable, but I did learn double click opens for real. Now I use lame open on purpose for files I just want to preview.

      I wish the function was reversed.

      1. 8

        You can disable “preview” mode entirely with this setting:

        "workbench.editor.enablePreview": false
        

        …or just from Quick Open with this one:

        "workbench.editor.enablePreviewFromQuickOpen": false
        
      2. 2

        If you save the file (cmd+s) it will make the tab permanent. If I understand what you meant.

        1. 1

          That’s a useful trick I need to keep in mind, chur.

          1. 3

            Saving works—there’s also a command to just keep the file open named “View: Keep Editor” (workbench.action.keepEditor). The default keyboard shortcut is ⌘K Enter.

        2. 1

          I’ve disables preview, it’s annoying (see other comments for details). As for “promoting” you can double click on the tab to do that.

        1. 1

          I’m glad you asked. Just a few hours ago, my Moto G5 suddenly turned off and booted back up again. No problems with the device like this until today.

          The crashes continued (after about a minute of uptime) until I enabled the “Google App” app. I disabled it months ago to avoid seeing or interacting with the unremovable search bar widget.

          I’m very interested in hearing what happened. I have all auto-update functions disabled. Well, at least I thought I did!

          1. 1

            so now you have to deal with the search bar widget?

            1. 1

              I apparently do, unless I install a completely different launcher.

              1. 2

                Arrow launcher is amazing, I don’t know if you’ve tried it. :)

                1. 2

                  I have not. Thank you for the suggestion!

          1. 2

            Neat! As mentioned in the README, the author created an original_plus tag if you’re more interested in seeing the historical artifact than the modern enhancements.

            1. 1

              Neat! Inline tagging seems like it might be useful in some contexts.

              I wonder if you could express Hexadecimal, Base32, etc. with JSON Schema instead (example), though, which also has support for required fields and conditional dependencies, and is implemented in several languages.

              1. 1

                The goal of TJSON is to be a self-describing, schema-free format.

                1. 1

                  I don’t get why the type should be self describing, looks like that introduce a lot of clutter

              1. 12
                • par - A really handy utility for reflowing text in a particular column limit. Works well in source code with comments or email quotes. My favorite bit is that the man page contains an apology for its complexity. :-)
                • git gui is one of the few tools I’m willing to leave my terminal for. I use it in particular for committing things in patch mode.
                • bpython - A souped up Python interpreter. Not quite to the level of ipython, but has niceties like auto completion and doc string snippets.
                1. 9

                  git gui

                  Not tig?

                  1. 2

                    I do actually use tig daily but I thought it was just a viewer for history? git gui is nice because it makes effective use of the mouse for patch mode commits.

                    1. 1

                      For some reason I was sure tig could commit, but I was mistaken.

                      1. 4

                        You’re not mistaken. :-) In tig’s “Status view”, you can stage individual files, chunks, and lines for committing. This blog post is a nice overview of tig’s features.

                        I use tig every day and often recommend it to colleagues who git add or git add -i.

                        1. 1

                          I was mistaken about being mistaken! (I normally just git add -p and use tig only as a viewer.)

                  2. 1

                    I’m definitely addicted to git gui and gitg.