Skip to content

Commit

Permalink
modified: Uncompiled Applescript/Resources/ex_tabs_selection.applescript
Browse files Browse the repository at this point in the history
- Left selected indention by accident. When outputted to clipping #indent placeholder would double up on it.
- Removed with sed command.
  • Loading branch information
CiiDub committed Jan 30, 2022
1 parent 1544f4b commit 0b499bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Binary file modified Contents/Resources/ex_tabs_selection.scpt
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ tell application "BBEdit"
if item 1 of sel_list is "" or item 1 of sel_list is " " then set sel_list to rest of sel_list
if item -1 of sel_list is linefeed then set sel_list to reverse of rest of reverse of sel_list
repeat with _line in sel_list
set contents of _line to _indent & contents of _line
# Remove indention.
# The #indent clipping placeholder will indent correctly, otherwise it doubles up.
set _new_line to contents of _line
set _cmd to "echo " & quoted form of _new_line & " | sed -r 's/^[ ]+//g'"
set _new_line to do shell script _cmd
set contents of _line to _indent & _new_line
end repeat
set output to sel_list as string
set AppleScript's text item delimiters to old
Expand Down
Binary file modified Uncompiled Applescript/White Space/Clever Indent.applescript
Binary file not shown.

0 comments on commit 0b499bf

Please sign in to comment.