Login
Register
Feature Requests
Questions
Unanswered
Tags
Ask a Question
yEd Home page
Welcome to yEd Q&A!
Here you can ask
questions
and receive answers from other members of the community and yEd developers. And you can tell us your most wanted
feature requests
.
Most popular tags
import
node
export
labels
edge
nodes
bug-report
layout
excel
groups
graphml
yed
edges
properties-mapper
palette
svg
automatic-layout
swimlane
custom-properties
text
properties
error-report
pdf
group
linux
hierarchical-layout
macosx
bug
label
html
bpmn
kb
print
installation
uml
settings
family-tree
resize
color
label-placement
ui
grouping
url
windows
yed-live
graphmlviewer
line
import-excel
entity-relationship
printing
java
gedcom
background
save
font
arrow
flowchart
link
image
select
error
license
positioning
structure-view
open
icon
lines
data
search
default
arrows
tree
copy
size
graph
64-bit
diagram
fit-node-to-label
neighborhood-view
feature
description
paste
font-size
icons
xml
symbols
alignment
tooltip
custom
shape
move
selection
editing
edit
-
file-format
ubuntu
word
visio
user-defined-symbols
Categories
All categories
Feature Requests
(700)
Help
(2.9k)
Finished Features
(30)
Is there a find/replace for label text?
+16
votes
If I have a lot of node labels that say X and want to change them all to Y is there any sort of find/replace for label text?
labels
find
asked
May 3, 2013
in
Feature Requests
by
abarrie
(
970
points)
recategorized
May 16, 2013
by
abarrie
I second this request. Today I felt the need of a find/replace function that works by searching things in the labels' text and replacing them with a text of my choice.
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
2
Answers
0
votes
Perhaps this has been resolved time ago, but if you want to replace all texts you can just open a notepad, Find and Replace the texts you want and save. You have to be careful to not destroy the structure or the application texts!
answered
May 22, 2018
by
jzavala
(
150
points)
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
–2
votes
You can select all nodes or edges with the same (or similar) text using "Tools" -> "Select Elements" and with all the elements in question selected, enter the new text in the "Text" field in yEd's properties view in the lower right corner.
answered
May 6, 2013
by
thomas.behr
[yWorks]
(
161k
points)
but this will change the entire label right? If each label is unique but has the same phrase in it and I just want to replace that phrase I don't think this will work.
You are right, my suggestion will change the entire label text.
There is currently no way to replace only some text parts.
OK thanks, I moved this thread over to 'feature request'
You can use an external editor and edit the graphml file directly.
You can use the following sed command to replace all parts of label text with your replaces text. In my example below I replaced every occurrence of w with ω. Replace your old_file and new_file names below to your liking. The new file will contain the edited text labels.
sed 's/>\(.*\)w\(.*\)<y:LabelModel>/>\1ω\2<y:LabelModel>/g' old_file.graphml > new_file.graphml
tutorial please
The sed command saved me, thank you!
Good idea ! Also, a more graphical way to do it is to edit the graphml file with a text editor (I like Notepad++ on Windows), and replace to your liking.
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Legal Disclosure
|
Privacy Policy
...