2019, Chrome 76, approach to autocomplete off

Update, January 2020: It appears that as of Chrome 79, Autocomplete (as defined here) no longer treats autocomplete=”some-unrecognised-value” as equal to autocomplete=”on”, so autocomplete=”nope” or similar is now effective at disabling both Autocomplete and Autofill. Update, April 2020: They changed it again. As of Chrome 81, autocomplete=”some-unrecognised-value” is no longer effective at disabling the Autocomplete … Read more

Getting compgen to include slashes on directories when looking for files

I ran into the same problem. Here’s the workaround I’m using: Register the completion function with -o default, e.g., complete -o default -F _my_completion. When you want to complete a filename, just set COMPREPLY=() and let Readline take over (that’s what the -o default does). There’s a potential problem with this — you might be … Read more

How to enable autocomplete for Google Apps Script in locally-installed IDE

I found the solution that partially works, but it may not be applicable to other software. The steps below are for Visual Studio Code: Install the NPM package containing type definitions for GAS using https://www.npmjs.com/package/@types/google-apps-script In your locally-saved script, create a ‘.js’ file and type import ‘google-apps-script’;

JQuery Autocomplete Where the Results are Links

This is simple. Change your source to an array of objects, such as: var source = [ { value: “www.foo.com”, label: “Spencer Kline” }, { value: “www.example.com”, label: “James Bond” }, … ]; The just use the select method to redirect to the ‘value’, e.g.: $(document).ready(function() { $(“input#autocomplete”).autocomplete({ source: source, select: function( event, ui ) … Read more

Makefile autocompletion on Mac

This seems to achieve simple bash completions for me on El Capitan: # .bashrc function _makefile_targets { local curr_arg; local targets; # Find makefile targets available in the current directory targets=”” if [[ -e “$(pwd)/Makefile” ]]; then targets=$( \ grep -oE ‘^[a-zA-Z0-9_-]+:’ Makefile \ | sed ‘s/://’ \ | tr ‘\n’ ‘ ‘ \ ) … Read more

tech