Technitribe

interesting problems (and a few solutions, too)

Technitribe
  • About the Authors
  • Log In
  • Log Out
  • Lost Password
  • Register
  • Reset Password
    • 3 Jan 2012

      Excluding in the Emacs file completion buffer

      Written by Tim Bielawa

      I realized tonight While hacking on Taboot that Emacs was showing particularly uninteresting files in the completion buffer when opening a file. For example, scripts.pyc.

      I assumed that there was a facility for customizing this, so I did some research on the topic. Trying emacs filter possible completions and emacs filter list of completions both came up with the same documentation. The GNU documentation describes a customization facility similar to the filtering I sought after via the completion-ignored-extensions variable (part of the Dired group). However, it stops a bit short of what I was looking for. Quote from describe-variable for the variable (emphasis added):

      Completion ignores file names ending in any string in this list. It does not ignore them if all possible completions end in one of these strings or when displaying a list of completions.

      I went through some more search results and sure enough, stackoverflow provides again. In that response the author provided a fantastic defadvice which did exactly what I was looking for. By default it uses the value of your existing completion-ignored-extensions variable.

      0 Comments
    • The Authors
    • Virtual Disk Guide

      Interested in virtualization? Do QCOWs rule your filesystem? Are you a libvirt or KVM+QEMU wizard? I wrote a book about virtual disk management. Check out the The Linux Sysadmin's Guide to Virtual Disks online for free at ScribesGuides.com.


      Consider supporting the author by purchasing a hard copy of the first edition for just $10.00 on Lulu.com.

    • bitmath

      bitmath is a Python library for dealing with file size units (GiB's, kB's, etc) in a sane way. bitmath supports arithmetic, rich comparison, conversion, automatic best human-readable representation, and many other utility functions. Read some examples on the docs site or check out the source on GitHub.

    • latest posts

      • Two Year Break — And we’re back! November 16, 2018
      • [Updated] GitHub + Gmail — Filtering for Review Requests and Mentions January 20, 2017
      • References in a sub-select January 19, 2017
    • tags

      bitmath blog conference css dblatex DNS DocBook eclipse Emacs Erlang Fedora fedora 22 GNU Screen Haiku Introduction java jboss LCSEE Linux locale locales fix slicehost ubuntu Macports module Modulus nist nXML-Mode opengl open source OS X package packaging pki prefix units presentation project pypi Python scholarship si summit Tutorial ubuntu xcode XML XMPP
    • h4ck teh world

      tbielawatbielawa
      • Push
        openshift/aos-cd-jobs
        February 21, 2019 - 8:39 pm UTC
      • Pull Request
        openshift/aos-cd-jobs
        February 21, 2019 - 8:38 pm UTC
      • Issue Comment
        openshift/aos-cd-jobs
        February 21, 2019 - 8:38 pm UTC
      • Push
        openshift/doozer
        February 21, 2019 - 7:04 pm UTC
      • Pull Request
        openshift/doozer
        February 21, 2019 - 7:03 pm UTC

Creative Commons License
Technitribe by Tim Bielawa is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.