How do I turn off autocomplete in Light Table?
Might user.behaviors looks as so
[
[:app :lt.objs.style/set-skin "dark"]
;; Automagically closes parentheses
[:app :lt.objs.settings/pair-keymap-diffs]
[:editor :lt.objs.editor/wrap]
[:editor :lt.objs.editor/line-numbers]
[:editor :lt.objs.style/font-settings "Menlo" "9" "1.2"]
[:editor :lt.objs.style/set-theme "monokai"]
[:editor.clojure :lt.objs.langs.clj/print-length 1000]
;; Turn off autocomplete
[:editor :lt.plugins.auto-complete/auto-show-on-input]
]
I have tried adding [:editor :lt.plugins.auto-complete/auto-show-on-input] but it is not working.
To turn of textual hints use:
[:editor :-lt.plugins.auto-complete/textual-hints]
If you want to turn off textual hints for say just javascript you do
[:editor.javascript :-lt.plugins.auto-complete/textual-hints]
If you want to turn off autocomplete all together:
[:editor :-lt.plugins.auto-complete/show-hint]
This is what you need to do:
[:editor :-lt.plugins.auto-complete/auto-show-on-input]
Try adding this:
:- {:editor [:lt.plugins.auto-complete/auto-show-on-input]}
What you want to do is subtract it from the diffs in the file. See this post for more details and an example behaviors file snippet.
Related
I am writing a query for work for a report that has some poorly written HTML code where only some of the tags have a CSS selector I can use for creating my columns but others don't. (Guess who wrote it?) I wrote some workarounds using nth-child and describing each step to the desired tab but, as expected, when scaled up to all the other reports it causes issues because not every table is alike with what it contains.
My working code:
{"Rule ID", "td[class='rule-id']"}
However the next column I used this:
{"Time", "div[class='panel-body'] > TABLE > TBODY > TR:nth-child(6) > TD:nth-child(2)"}
Which in some of the tables does grab the time, but in others it grabs the wrong tag. I'm wondering if there's a way I can refer to the information in-between the tags. The time code looks like this:
<table>
...
<tr>
<td>Time</td>
<td>2022-04-28T10:01:15+00:00</td>
</tr>
...
</table>
I tried this but it results in a 100% empty column:
{"Time", "td[contains='Time']"}
This is my first project in Power BI so I'm learning as I go and have found answers to most of my questions through Google but I couldn't quite phrase this question properly to find a good result. All of the code is on my GFE so I can't get it over here to share, hopefully the bits I could share are enough.
Thank you in advance for your help!
If you link the site I can give a better answer.
There's an optional 3rd parameter, that gives you more access to attributes.
{"Name", "Selector"} would become {"Name", "Selector", each _ }, ex:
= Html.Table(Source,
{
{"Name", "Selector", each _ }
}
)
selector
td[contains='Time']
This isn't looking for what your html, it would match this. Here's a good reference/cheatsheet
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors
https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors
<td contains='Time'>
Testing Selectors in a browser
In the web console, you can use a CSS Selector query to preview what it will select.
Firefox has shorthand using the function $ and $$ . otherwise use document.querySelector() and document.querySelectorAll()
Your RowSelector
If you were to use $$("TABLE.table > * > TR") as your RowSelector
Your columnNameSelectorPairs
And then TABLE.table > * > TR > :nth-child(1)
From:
ninmonkeys.com/Select_Tables_using_your_own_CSS_Selectors
https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors
I am working on an Angular app that displays selected Country codes in a text field. This input displays Country codes because of space constraints:
<input type="button" #countryListTrigger matInput readonly i18n-placeholder placeholder="COUNTRIES" [ngModel]="selectedCountries" />
Here's what the control looks like with Country codes displayed:
Countries Widget
Right now, screen readers would read the AU like the letter "o" and AT like "#". I know about the tag, but is there a way to achieve the same result on an input value? Otherwise, I could add another (hidden) control that is read instead perhaps?
It starts getting messy if you try to force a screen reader to announce things phonetically. If you add an aria-label that has aria-label="A U" or aria-label="A T", then braille users will be out of luck because they'll read "A space U".
It's unfortunate there isn't really a good solution for this. The screen reader user can read the input value one character at a time so if it sounds weird to them, they have a work around. It's not a great user experience but having screen readers mispronounce stuff has been a problem for a long time.
I am trying to have a condition in a FILTER function to show based on an IF condition
If G1 is open or close, show 'All Jobs'!P2:P=G1 else If G1 is All then do not show condition.
Below is my attempt. But it is not showing any matches. I am guessing my formula is not correct.
=FILTER('All Jobs'!A2:P,'All Jobs'!B2:B>=B1,'All Jobs'!B2:B<=D1,'All Jobs'!G2:G=F1&
IF(((G1="Open")+(G1="Closed")),","&'All Jobs'!P2:P=G1,G1="All",""))
perhaps you can use:
REGEXMATCH('All Jobs'!G2:G, "Open|Closed")
On VAX/VMS (or OpenVMS Alpha and its other names) there was an editor called TPU. In TPU you could enable selection of text independently of holding a key down. You pressed SELECT and then any cursor movement you made selected text between the editing point and the new cursor location.
You could also record macros. So you could use this text selection feature to create macros like:
find "abc"
select
find "xyz"
cut
stop recording
So this macro would find any line with "abc" in it and then cut all text between "abc" and "xyz". Massive time saver.
Making sense? How can I do that in VS2015? I can't find a macro extension that provides the selection behaviour I need to do this.
Cheers,
.pd.
EDIT
It occurred to me this could be done with a regex but it seems like a pretty big ask.
#Html.DropDownListFor(m => m.Property, Model.SelectListProperty, htmlAttributes: new { #class="whatever" })
// the regex would replace this with
#Html.MyDropDownListFor(m => m.Property, Model.SelectListProperty, Model.Property, htmlAttributes: new { #class="whatever"})
So I would be looking for a regex to
- find #Html.DropDownList
- replace the token 1 of that line split by ',' with token 1 of token 0 split by '.' and prefixed with "Model."
Assuming Model.Property comes from m => m.Property.
Search for
#Html\.DropDownListFor\(((\w+)\s*=>\s*\2\.(\w+)),\s*(Model\.\w+)(,(?:[^(){}]|\{[^{}]*\})*)?\)
Replace with
#Html.MyDropDownListFor($1, $4, Model.$3$5)
Demo: http://regexr.com/3f3io
I started using Webstorm, and I can't figure out to how cut/paste a line keeping the exact same indentation.
In Jade file:
.something
ul
li
label -->Cut this line<--
li
label some text
I put the cursor at the beginning of the above-specified line. Then, Edit -> Cut and Edit -> Paste. I end up with:
.something
ul
li
label -->Cut this line<--
li
label some text
I want the indentation to be exactly the same as before. How do I achieve this?
I tried all the options in Preferences -> Editor -> General -> Smart Keys -> Reformat on paste and none of them made any difference.
Yes, you can change the settings so that it doesn't alter the formatting when you paste.
File > Settings > Editor > General > Smart Keys .. then look for the 'Reformat on paste:' and select None from the drop-down.
When editing Jade, on pasting a code block the position of the 'top' element in pasted fragment is equal to current cursor position, other elements are indented to the same level relative to top element as in original fragment. So you have to make sure to put cursor not at the beginning of line, but at the desired position... For example, hit Enter after <li> and then paste
use Ctrl+Shift+Alt+V for simple paste
https://www.jetbrains.com/help/webstorm/2016.1/cutting-copying-and-pasting.html?origin=old_help