unittests: $(TEST_OBJS) libedit.a
--include *.d lib/*.d tests/*.d
\ No newline at end of file
+-include *.d lib/*.d tests/*.d
+
* shortcut to repeat previous operation
* implement command diffing logic to optimize the undo/redo log
-
The Future:
* Run commands in the background and don't block the main thread.
# Expand tabs to spaces
etabs(){ sed -e 's/\t/ /g'; }
+# Add a line number to each line of the file
+lnnum(){ sed -e = | sed -e 'N;s/\n/\t/'; }
+nolnnum(){ sed -e 's/^[0-9]\+\t//'; }
+
+# Trim trailing whitspace
+trim(){ sed -e 's/[\t ]\+$//'; }