Skip to content

Commit

Permalink
Fix list_packages_command.py quick item support
Browse files Browse the repository at this point in the history
  • Loading branch information
evandrocoan committed Nov 13, 2023
1 parent b8a036e commit e971356
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package_control/commands/list_packages_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,14 @@ def show_view():
total_count += 1;

# Efficient String Concatenation in Python - https://waymoot.org/home/python_string/
package_string_list.append( "%3d: <%s>\n" % ( total_count, package[0] ) )
package_string_list.append( wrapper.fill(package[1]) + "\n" + prefix_indent + "[" + package[2] + "]\n\n" )
if USE_QUICK_PANEL_ITEM:
package_string_list.append( "%3d: <%s>\n" % ( total_count, package.trigger ) )
package_string_list.append( wrapper.fill(
package.details if isinstance(package.details, str) else "\n".join(package.details)
) + "\n" + prefix_indent + "[" + package.annotation + "]\n\n" )
else:
package_string_list.append( "%3d: <%s>\n" % ( total_count, package[0] ) )
package_string_list.append( wrapper.fill(package[1]) + "\n" + prefix_indent + "[" + package[2] + "]\n\n" )

# https://forum.sublimetext.com/t/how-to-insert-text-on-view-with-no-indentation/28496
new_view.run_command("append", {"characters": "Packages list within %d entries, where:\n"
Expand Down

0 comments on commit e971356

Please sign in to comment.