Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch editing with natural language #54

Open
ryanraposo opened this issue May 8, 2024 · 0 comments
Open

Batch editing with natural language #54

ryanraposo opened this issue May 8, 2024 · 0 comments
Labels
feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ryanraposo
Copy link
Owner

ryanraposo commented May 8, 2024

Below is a proof-of-concept using ChatGPT 3.5 Turbo:

### Me
  
  Use this as reference:
  
  contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast
  contrastBorder: An extra border around elements to separate them from others for greater contrast
  focusBorder: Overall border color for focused elements. This color is only used if not overridden by a component
  foreground: Overall foreground color. This color is only used if not overridden by a component
  descriptionForeground: Foreground color for description text providing additional information, for example for a label
  errorForeground: Overall foreground color for error messages (this color is only used if not overridden by a component)
  widget.shadow: Shadow color of widgets such as Find/Replace inside the editor
  selection.background: Background color of text
  textBlockQuote.background: Background color for block quotes in text
  textBlockQuote.border: Border color for block quotes in text
  textCodeBlock.background: Background color for code blocks in text
  textLink.activeForeground: Foreground color for links in text when clicked on and on mouse hover
  textLink.foreground: Foreground color for links in text
  textPreformat.foreground: Foreground color for preformatted text segments
  textSeparator.foreground: Color for text separators
  button.background: Button background color
  button.foreground: Button foreground color
  button.hoverBackground: Button background color when hovering
  dropdown.background: Dropdown background
  dropdown.listBackground: Dropdown list background
  dropdown.border: Dropdown border
  ...
  [LIST TRIMMED FOR SPACE]
  
  I will describe elements in natural language. You will print them with no formatting. Okay?

### ChatGPT

  Sure, I understand. Just describe the elements, and I'll provide them without any formatting. Go ahead!

### Me

  All borders

### ChatGPT

  contrastActiveBorder
  contrastBorder
  focusBorder
  list.activeSelectionBorder
  list.inactiveSelectionBorder
  list.focusBorder
  list.hoverBorder
  list.dropBorder
  scrollbar.shadow
  scrollbarSlider.activeBackground
  scrollbarSlider.background
  scrollbarSlider.hoverBackground
  editorGroup.border
  editorGroupHeader.tabsBorder
  tab.border
  tab.activeBorder
  tab.unfocusedActiveBorder
  tab.hoverBorder
  tab.unfocusedHoverBorder
  tab.activeModifiedBorder
  tab.inactiveModifiedBorder
  titleBar.border
  panel.border
  statusBar.border
  statusBar.debuggingBorder
  statusBar.noFolderBorder
  statusBarItem.activeBackground
  statusBarItem.hoverBackground
  peekView.border
  peekViewEditorGutter.background
  peekViewEditor.matchHighlightBorder
  notificationCenter.border
  debugExceptionWidget.border
  debugToolBar.border
  activityBar.border
  activityBar.dropBorder
  sideBar.border
  sideBarTitle.foreground
  sideBarSectionHeader.border
  sideBarSectionHeader.border
  pickerGroup.border
  settings.dropdownBorder
  settings.dropdownListBorder
  settings.checkboxBorder
  settings.textInputBorder
  settings.numberInputBorder
  breadcrumb.border
  breadcrumbPicker.border 

Element list: data/vscodeElementsArray.json

Quick python for parsing:

import json

with open('./data/vscodeElementsArray.json', 'r') as file:
    data = json.load(file)

for item in data:
    print(f"{item['fullName']}: {item['info']}")
@ryanraposo ryanraposo added feature New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant