mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #5881] [FR] Add more functionality to code blocks in addition to a shortcut key #2613
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#2613
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @usshauler on GitHub (Aug 5, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5881
Description
Currently, code blocks in most applications are pretty standard with a copy button and the ability to change the coding language with the use of a drop-down button as in Appflowy. Adding the line numbers to the left of the code block is a great feature. My suggestion here is to please enhance and add further functionality to the code blocks themselves to make this app stand out over the rest. I am sure a vast majority of users store code as YML files or other ENV's and because of this I believe it would be great to add the ability to toggle viewing spacing in the code blocks like in VS Code. Other great options would be to further enhance code blocks by adding toggle options in settings for this and perhaps allow resizing of the code boxes and appearance. The option to lock the blocks themselves from editing would also be a welcome update. Thank you for your time and I hope you take my input into consideration.
Impact
Code Blocks revamp. More options for code blocks is better.
Additional Context
No response
@Xazin commented on GitHub (Aug 5, 2024):
I've made a recap of your suggestions here:
Additionally you mentioned being able to resize the code block, do you mean its height? So that it's a fixed height and the code inside it is scrollable vertically instead.
@usshauler commented on GitHub (Aug 5, 2024):
I appreciate the recap. I see the width as being sometimes overly large for
the code contained within it. I am more concerned with this versus height.
Perhaps being able to customize the code block background color as well
would be nice. I’m all for code blocks if you can’t tell. Thank you !
On Mon, Aug 5, 2024 at 5:06 PM Mathias Mogensen @.***>
wrote:
@moojet commented on GitHub (Nov 8, 2024):
Being able to set the relative font size of code blocks would be great (eg. in Workspace settings, under 'workspace font').

Currently (set to Albert Sans & font size set to the 4th dot from left) the code text is larger than the sidebar text.
Imho it should be the same or smaller.