CARVIEW |
Select Language
HTTP/2 200
date: Tue, 15 Jul 2025 16:25:02 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/adobe/brackets.git
etag: W/"bb2bf78e3169dd6a37469b5755bee3a3"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=ehoL0oGMosaOXcutvLRR5uhBdPFZDmYqwjtiYCXxXv5jRICff2GPRuhLPIzQzXRH0YpDj7F9Ni942DT7U4mCrBaso2L3qGI6Lprl%2BPybwOnQNX1BKPHjtCnORm0NQudceNRR7nhn8ITwYnWxkF%2FSoA2OUsMS7hJDmi8YB2hlNit8oSdi%2B%2BPEdIk43S3IR439sQ2fDlVR3n5CJdEuUT6badLJnJ6r6JBj4epRxdY%2F6sT4XYnxHJiuInrc9BerrCu5LF1GVb%2Bjv6llw%2FmDNkKOHg%3D%3D--4WWP97fqAJyHEm%2F1--mvORr9hr9B0cykK%2FJTVLAA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.119809960.1752596701; Path=/; Domain=github.com; Expires=Wed, 15 Jul 2026 16:25:01 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 15 Jul 2026 16:25:01 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8A38:3E2C7A:415BA:4D97F:687680DD
Add drag and drop to move items in FileTreeView (#13546) · adobe/brackets@442678d · GitHub
Copy file name to clipboardExpand all lines: src/filesystem/FileIndex.js
Copy file name to clipboardExpand all lines: src/project/FileTreeView.js
Copy file name to clipboardExpand all lines: src/project/FileTreeViewModel.js
Skip to content
Navigation Menu
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Commit 442678d
Add drag and drop to move items in FileTreeView (#13546)
* Add drag and drop to move items in FileTreeView
Todo:
* Handle move errors.
* Add support for moving to root directory.
* Add support for moving items to root directory
* Check item dropped onto itself or parent directory
* Add support for moving items by dropping on files
* Create dragItem action
* Close directory on drag
* Open directory on Drop
* Open directory on drag over
* Address review comments
* Add tests for moveItem in FileTreeViewModel
* Fix style issues on drag
* Make styles fast
* Change fileindex to update the moved entry
* Fix lint mistakes
* Set drag image as item name
* Check if directory is open before opening directory on drop
* Refactor code
* Check if item is dropped onto itself or parent directory
* Move selected flag when item is moved
* Use filter instead of forEach
* Change implementation to reuse rename workflow
* Fix tests
* Add docs and comments
* Address review comments
* Add Error handling
* Make directory open and adding new item independent
This makes adding the moved item to the new directory independent of
whether the directory is loaded or not by creating a notFullyLoaded
directory for the new directory.1 parent 92b872e commit 442678dCopy full SHA for 442678d
File tree
Expand file treeCollapse file tree
8 files changed
+393
-72
lines changedFilter options
- src
- filesystem
- project
- styles
- test/spec
Expand file treeCollapse file tree
8 files changed
+393
-72
lines changedsrc/filesystem/FileIndex.js
Copy file name to clipboardExpand all lines: src/filesystem/FileIndex.js+29-1Lines changed: 29 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
| 33 | + | |
32 | 34 |
| |
33 | 35 |
| |
34 | 36 |
| |
| |||
110 | 112 |
| |
111 | 113 |
| |
112 | 114 |
| |
113 |
| - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
114 | 118 |
| |
115 | 119 |
| |
116 | 120 |
| |
| |||
138 | 142 |
| |
139 | 143 |
| |
140 | 144 |
| |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
141 | 169 |
| |
142 | 170 |
| |
143 | 171 |
| |
|
src/project/FileTreeView.js
Copy file name to clipboardExpand all lines: src/project/FileTreeView.js+138-10Lines changed: 138 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
176 | 176 |
| |
177 | 177 |
| |
178 | 178 |
| |
179 |
| - | |
| 179 | + | |
180 | 180 |
| |
181 | 181 |
| |
182 | 182 |
| |
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
198 | 289 |
| |
199 | 290 |
| |
200 | 291 |
| |
| |||
265 | 356 |
| |
266 | 357 |
| |
267 | 358 |
| |
268 |
| - | |
269 | 359 |
| |
270 | 360 |
| |
271 | 361 |
| |
| |||
363 | 453 |
| |
364 | 454 |
| |
365 | 455 |
| |
366 |
| - | |
| 456 | + | |
367 | 457 |
| |
368 | 458 |
| |
369 | 459 |
| |
| |||
504 | 594 |
| |
505 | 595 |
| |
506 | 596 |
| |
507 |
| - | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
508 | 600 |
| |
509 | 601 |
| |
510 | 602 |
| |
| |||
645 | 737 |
| |
646 | 738 |
| |
647 | 739 |
| |
648 |
| - | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
649 | 747 |
| |
650 | 748 |
| |
651 | 749 |
| |
| |||
656 | 754 |
| |
657 | 755 |
| |
658 | 756 |
| |
659 |
| - | |
| 757 | + | |
| 758 | + | |
660 | 759 |
| |
661 | 760 |
| |
662 | 761 |
| |
| |||
744 | 843 |
| |
745 | 844 |
| |
746 | 845 |
| |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
747 | 851 |
| |
748 | 852 |
| |
749 |
| - | |
| 853 | + | |
750 | 854 |
| |
751 |
| - | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
752 | 862 |
| |
753 | 863 |
| |
754 | 864 |
| |
| |||
1001 | 1111 |
| |
1002 | 1112 |
| |
1003 | 1113 |
| |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
1004 | 1127 |
| |
1005 | 1128 |
| |
1006 | 1129 |
| |
| |||
1042 | 1165 |
| |
1043 | 1166 |
| |
1044 | 1167 |
| |
1045 |
| - | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1046 | 1174 |
| |
1047 | 1175 |
| |
1048 |
| - | |
| 1176 | + | |
1049 | 1177 |
| |
1050 | 1178 |
| |
1051 | 1179 |
| |
|
src/project/FileTreeViewModel.js
Copy file name to clipboardExpand all lines: src/project/FileTreeViewModel.js+33-10Lines changed: 33 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
461 | 461 |
| |
462 | 462 |
| |
463 | 463 |
| |
464 |
| - | |
| 464 | + | |
465 | 465 |
| |
466 | 466 |
| |
467 |
| - | |
| 467 | + | |
468 | 468 |
| |
469 |
| - | |
| 469 | + | |
470 | 470 |
| |
471 |
| - | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
472 | 474 |
| |
473 |
| - | |
| 475 | + | |
474 | 476 |
| |
475 | 477 |
| |
476 | 478 |
| |
477 |
| - | |
478 |
| - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
479 | 482 |
| |
480 | 483 |
| |
481 |
| - | |
| 484 | + | |
482 | 485 |
| |
483 |
| - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
484 | 489 |
| |
485 |
| - | |
486 | 490 |
| |
487 | 491 |
| |
488 | 492 |
| |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
489 | 511 |
| |
490 | 512 |
| |
491 | 513 |
| |
| 514 | + | |
492 | 515 |
| |
493 | 516 |
| |
494 | 517 |
| |
|
You can’t perform that action at this time.
0 commit comments