Skip to content

Dev Tools: Set <meta name="herb-default-editor"> for Herb#51

Merged
marcoroth merged 1 commit intomainfrom
set-herb-default-editor
Oct 22, 2025
Merged

Dev Tools: Set <meta name="herb-default-editor"> for Herb#51
marcoroth merged 1 commit intomainfrom
set-herb-default-editor

Conversation

@marcoroth
Copy link
Copy Markdown
Owner

@marcoroth marcoroth commented Oct 22, 2025

See marcoroth/herb#715

Resolves #3

@marcoroth marcoroth force-pushed the set-herb-default-editor branch from 27cdc19 to 7eb3512 Compare October 22, 2025 13:36
@marcoroth marcoroth merged commit 99ffb3d into main Oct 22, 2025
15 checks passed
@marcoroth marcoroth deleted the set-herb-default-editor branch October 22, 2025 13:41
marcoroth added a commit to marcoroth/herb that referenced this pull request Oct 22, 2025
This pull request updates the Herb Dev Tools to allow users to select
their preferred editor.

Tools like ReActionView can set a new `<meta
name="herb-default-editor">` tag that will be used for the `auto`
option, so you can use the new [`ActiveSupport::Editor` in Rails
8.1](https://github.com/rails/rails/blob/b22fd5a519f92e5c51c62e3b74b4407e492b89e2/activesupport/lib/active_support/editor.rb)
or fallback to the `RAILS_EDITOR` or `EDITOR` environment variables (see
accompanying pull request in ReActionView that sets this:
marcoroth/reactionview#51)

<img width="2296" height="1138" alt="CleanShot 2025-10-22 at 15 29
19@2x"
src="https://github.com/user-attachments/assets/5219c85e-6150-4ae1-9a8f-59cd2ce4e75e"
/>

<img width="2296" height="1138" alt="CleanShot 2025-10-22 at 15 29
30@2x"
src="https://github.com/user-attachments/assets/8bb91045-9fda-4f89-bb35-42b91287b87d"
/>


Resolves #599
Resolves #710
Resolves marcoroth/reactionview#3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request herb

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Customizable "Open in Editor" schema

1 participant