Skip to content

Create "Block Type Caret" action #49

@mkh-user

Description

@mkh-user

Note

This issue is a good first issue, so it's for newcomers and first-time contributors.
This issue needn't any complex action, everything you need is reading this guide and do it step by step!
If you like to close this issue, feel free! Others will help you here with answers!

There is option in View menu for change caret to block, this issue is for complete it.

Related Items

This option is a checkbox for view settings, so for examples you can see other checkboxes in View menu, related items:

  • View > Show Breakpoints
    action script: res://scripts/show_breakpoints.gd
    shortcut file: res://shortcuts/show_breakpoints.tres
  • View > Show Bookmarks
    action script: res://scripts/show_bookmarks.gd
    shortcut file: res://shortcuts/show_bookmarks.tres
  • View > Show Line Numbers
    action script: res://scripts/show_line_numbers.gd
    shortcut file: res://shortcuts/show_line_numbers.tres

Steps

Never participated in an open source project before? Here is a complete guide on how to contribute↗️

  • Fork repository, create a branch called block-type-caret
  • Open project in Godot (4.4 or later)
  • Create scripts/block_type_caret.gd (This is snake_case version of our option name, all action scripts work with this logic)
  • Write your code in _run_action() in this script (you can see res://scripts/show_line_numbers.gd for source, but reed whole code to be sure your action script is complete)
  • Run project with F5, try your action script in View > Block Type Caret
  • Create a pull request
  • Wait for reviews and implement the recommendations you receive so that your changes can finally be merged
  • End! You have joined Text Forge contributors, wait for the next release to see your name in the contributors list!

Tip

This is a good first issue, so you can ask any question is comments to learn how to fix it!

Metadata

Metadata

Assignees

Labels

action scriptsOfficial action scripts or action scripts features

Projects

Status

Completed

Relationships

None yet

Development

No branches or pull requests

Issue actions