Skip to content

Commit

Permalink
Update rc_awesome.xsh
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-code authored Feb 18, 2024
1 parent 9dd46ad commit 0cb7ff1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions xontrib/rc_awesome.xsh
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,13 @@ if ON_LINUX or ON_DARWIN:

# Press F3 to insert the grep command
@bindings.add(Keys.F3)
def say_hi(event):
event.current_buffer.insert_text(' | grep -i ')
def add_grep(event):
event.current_buffer.insert_text(' | grep -i ')

# Clear line by pressing `Escape` key
@bindings.add("escape")
def clear_line(event):
event.current_buffer.delete_before_cursor(1000)


#
Expand Down

0 comments on commit 0cb7ff1

Please sign in to comment.